1- Generate public and private keys by using puttygen.
Save public and private keys with or without passphrase.
2- Public key which is seen as selected in picture, needs to be added to authorized_keys file in GIT server. While copying make sure that:
- Key starts with “ssh-rsa”
- Key does not include “ rsa-key-20140505”
- Key must be single line.
3- In GIT server, generated key needs to be added to ~/.ssh/authorized_keys
file. Make sure public key is copied according to remarks above. A sample public key is as below:
ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAi6ZlUMEIwB4UAhE8WQL0BFzDK/4dnQzSHhhIGgqmrunLd4IkK1lGDF3YpqMOz5VLFggfJZPx+VgGkqliOvHdHn4GVsqOQZOiIku3ZuipvWIR4ZC6IBO31N/2nZaeRYXWPVdT9WzcT8mWi6Xh+0ULZdf++b8CqyFa4uuziqw7qb15dIczhDfsZfxpJovYwb/HDKFKznFtehrLG1Xc3VlfUzq2SO89+7vWFjLBaSPG5y7Fcx20SreJiF4ESV0wBdAh7N6ab1vYpK++ab1sNxD5rrdbgqsoUT7yFcGroBPmFuIfqKyP6QWwNYFjH2urhmG5efiLTbRWOQEXsL1nt9PMPQ==
4- In client open putty enter “host name” as address of GIT server. Go to Connection->SSH->Auth and set private key file that is created at step 1 as “Private key file for authentication:”. Back in “session” section give a name and save session for later use.
5- Open connection. Enter ‘gituser’ as username. If passphrase for private key is provided before, it will be asked, enter it.
For each user, key should be created and added to authorized_keys files of git server.
~/.ssh/authorized_keys
file. Make sure public key is copied according to remarks above. A sample public key is as below:
Comments
Post a Comment