PawwordLess SSH Login (Ubuntu 14.04)

Passwordless Host 192.168.5.72
Accessable from 192.168.5.78

--------------------------------------------------------------------------
Step 1
--------------------------------------------------------------------------
Run the below command which ip/host you want to access without password....in my case 192.168.5.72


root@pc022:/home/arvind# ssh-keygen -t rsa


--------------------------------------------------------------------------
Step 2
--------------------------------------------------------------------------
Go to the /etc/ssh/ssh_conf and edit uncomment/edit some lines....
root@pc022:/home/arvind# nano /etc/ssh/sshd_config

PubkeyAuthentication yes
AuthorizedKeyFile    .ssh/authorized_keys
PasswordAuthentication no

Restart the SSH server and you’re done.

root@pc022:/home/arvind# sudo service ssh restart


--------------------------------------------------------------------------
Step 3
--------------------------------------------------------------------------
Run the below command on 192.168.5.78 (where you want to access the 192.168.5.72)

arvind\user28@pc028:~$ ssh-copy-id arvind@192.168.5.72

and type password of 192.168.5.72


--------------------------------------------------------------------------
Step 4
--------------------------------------------------------------------------
Now access your 192.168.5.72 from 192.168.5.78

arvind\user28@pc028:~$ssh arvind@192.168.5.78
Welcome to Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-57-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

271 packages can be updated.
131 updates are security updates.

Last login: Wed Apr 12 10:25:49 2017 from 192.168.5.78
arvind@pc022:~$


Here we done.....Successfull



Popular posts from this blog

Setup MySQL on Ubuntu Droplet getting error ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

Remote Desktop Sharing Dconf Tool in Linux (Ubuntu 14.04)

Configure Telnet & SSH on Router for Remote access.