We can use ssh to connect between servers, but many times it is required to setup a password less connectivity between the servers.

We can follow below steps to quickly setup password less ssh.

 

1) Generate ssh keys on Source system using below command.

ssh-keygen

2) Copy the ssh keys to the remote system where we need password less connectivity.

ssh-copy-id userid@remote-host

It will prompt for password first time.

3) Once above step is completed, Please try ssh and it will connect without password.

ssh ramkumar@lfcs.lab
Recommended Posts

Start typing and press Enter to search