Thursday, June 11, 2020

SSH : Passwordless Login Using SSH Keygen


Client : 192.168.0.100
Remote : 192.168.0.254

1. Create Authentication SSH-Keygen Keys Client
#ssh-keygen -t rsa
2. Create .ssh Directory on Remote
#ssh root@192.168.0.254 mkdir -p .ssh
3. Upload Generated Public Keys to Remote
#cat .ssh/id_rsa.pub | ssh root@192.168.0.254 'cat >> .ssh/authorized_keys'
4. Set Permissions on Remote
#ssh root@192.168.0.254 "chmod 700 .ssh; chmod 640 .ssh/authorized_keys"
5. SSH Login from Client to Remote host without Password
#ssh root@192.168.0.254
Source:

Related Posts:

0 comments:

Post a Comment