From 6447cf726ec61c19317dbca8071b00f285aafd79 Mon Sep 17 00:00:00 2001 From: yikth Date: Thu, 2 Feb 2023 21:20:09 +0800 Subject: [PATCH] more tutorial on ssh keygen --- README.md | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f0e36ee..2bc0b94 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,12 @@ **Pre-requisite** -1. ssh client (built-in on Windows 10. Preinstall with Git installation). For windows 7 alternative, try Putty +1. ssh client (built-in on Windows 10. Preinstall with Git installation). For windows 7 alternative, try [Putty](https://www.putty.org/) +```shell +# use windows package manager +$ winget install PuTTY.PuTTY +``` + 2. [git](https://git-scm.com/) ```shell # use windows package manager @@ -24,9 +29,12 @@ $ winget install tailscale.tailscale ``` --- **Configuration** -1. setup sshkey. Run below to generate the private / public key. [SSH key-pair](https://www.techtarget.com/searchsecurity/tutorial/Use-ssh-keygen-to-create-SSH-key-pairs-and-more) +1. setup sshkey. Run below to generate the private / public key. + - [Tutoria](https://git-scm.com/book/en/v2/Git-on-the-Server-Generating-Your-SSH-Public-Key) + - [Tutorial Windows 10](https://phoenixnap.com/kb/generate-ssh-key-windows-10) + - [SSH key-pair](https://www.techtarget.com/searchsecurity/tutorial/Use-ssh-keygen-to-create-SSH-key-pairs-and-more) ```shell -$ ssh-keygen +$ ssh-keygen ``` 2. Pass the `c:\users\\.ssh\id_rsa.pub` to administrator to authorise the access to server (xxx.xxx.xxx.xxx) ```shell @@ -64,7 +72,8 @@ $ ssh -L 3000:172.16.16.2:3000 -L 222:172.16.16.2:222 mitpenang@100.72.57.125 ``` 2. Open Chrome. Browse to Source Control Server [Mitech : Gitea](http://dev.mitech.com.sg:3000) -3. To clone, use `git ssh://...` +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://...` --- **Git**