From cca584e55bf39ff853c64b031e6d6fb873711154 Mon Sep 17 00:00:00 2001 From: Yik Teng Hie Date: Wed, 8 Feb 2023 10:02:53 +0800 Subject: [PATCH] add ssh server setup guide --- README.md | 6 ++++++ ssh-guide.md | 3 +++ 2 files changed, 9 insertions(+) create mode 100644 ssh-guide.md diff --git a/README.md b/README.md index 2d0d5c7..743ea57 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,12 @@ $ ssh -L 3000:172.16.16.2:3000 -L 29419:172.16.16.2:29419 mitpenang@100.72.57.12 2. Open Chrome. Browse to Source Control Server [Mitech : Gitea](http://dev.mitech.com.sg:3000) 3. Setup Gitea repo SSH access. [Reference from Github]](https://jdblischak.github.io/2014-09-18-chicago/novice/git/05-sshkeys.html) 4. To clone, use `git ssh://...` +5. Alternatively, use below command to keep the ssh port forwarding active in background +```shell +# -N : not to execute remote command +# -f : run in the background +$ ssh -N -f -L 3000:172.16.16.2:3000 -L 29419:172.16.16.2:29419 mitpenang@100.72.57.125 +``` --- **Git** diff --git a/ssh-guide.md b/ssh-guide.md new file mode 100644 index 0000000..e9ba74b --- /dev/null +++ b/ssh-guide.md @@ -0,0 +1,3 @@ +# ssh Guides + +- [Windows SSH Server access Setup](https://askme4tech.com/how-install-and-configure-open-ssh-server-windows-10) \ No newline at end of file