Skip to main content

SSH Passwordless connection between 2 linux hosts

 In Host1:

# ssh-keygen -t rsa

#ssh-copy-id root@<Host2>


Thats all:

Now from the Host1 try login with below command and it won't ask password.

 # ssh root@Host2 


Repeat same steps on Host2 for accessing Host1 without password.

Comments