[Solved] Install SSH Key Pair on CentOS and Putty on Windows
Posted: Tue May 05, 2020 7:34 pm
I had to spend hours and hours on internet to find a way to install SSH Key Pair for SSH Login on CentOS Server.
1. Login SSH as root
2. ]# ssh-keygen -t rsa
See this https://phoenixnap.com/kb/how-to-genera ... y-centos-7
3. It will create private and public key with the name you give in the current folder. In my case file name I gave is private_key so it creates 2 files private_key and private_key.pub
4. ]# cp private_key.pub .ssh/authorized_keys
The above command will copy the public key to authorized_keys.
5. ]# chmod 700 ~/.ssh && chmod 600 ~/.ssh/authorized_keys
6. ]# nano private_key
7. copy the text using mouse right click.
8. Paste the private_key in NotePad file private_key.txt
9. Open command prompt in Windows.
10. >puttygen private_key.txt -o private_key.ppk
11. This will convert the private key to putty format.
12. Now create a session in Putty and Under the Auth tab add the private_key.ppk file.
13. Now you can loging without password and using the
1. Login SSH as root
2. ]# ssh-keygen -t rsa
See this https://phoenixnap.com/kb/how-to-genera ... y-centos-7
3. It will create private and public key with the name you give in the current folder. In my case file name I gave is private_key so it creates 2 files private_key and private_key.pub
4. ]# cp private_key.pub .ssh/authorized_keys
The above command will copy the public key to authorized_keys.
5. ]# chmod 700 ~/.ssh && chmod 600 ~/.ssh/authorized_keys
6. ]# nano private_key
7. copy the text using mouse right click.
8. Paste the private_key in NotePad file private_key.txt
9. Open command prompt in Windows.
10. >puttygen private_key.txt -o private_key.ppk
11. This will convert the private key to putty format.
12. Now create a session in Putty and Under the Auth tab add the private_key.ppk file.
13. Now you can loging without password and using the