By default, if we want to access the Linux server using ssh then we have to enter the username and password of the server. But it is very inconvenient for a sysadmin if always write a password when want to access the Linux server using ssh. So, this article will explain how to access Linux server using ssh without using a password. I use CentOS 7 and should this article be applicable to OS other than CentOS.
Suppose we have 2 servers with IP 192.168.56.101 with hostname vps1 and 192.168.56.102 with hostname vps2. We want to access from server vps1 to server vps2 but need not enter the password of the server vps2. So, on the server vps1 type the following command:
Press enter key only when told to answer, then type the following command: