How to Setup SSH Passwordless Login in Linux [3 Easy Steps]
In this example, we will set up SSH password-less automatic login from server 192.168.0.12 as user server1 to 192.168.0.11 with user server2.
Step 1: Create Authentication SSH-Keygen Keys on – (192.168.0.12)
First login into server 192.168.0.12 with user server1 and generate a pair of public keys using the following command.
Step 2: Upload SSH Key to – 192.168.0.11
Use SSH from server 192.168.0.12 and upload a new generated public key (id_rsa.pub) on server 192.168.0.11 under server1 2 .ssh directory as a file name authorized_keys.
Step 3: Test SSH Passwordless Login from 192.168.0.12
From now onwards you can log into 192.168.0.11 as server2 user from server 192.168.0.12 as a server1 user without a password.
No comments:
Post a Comment