Browsed by
Tag: SSH

SSH Keyless Login

SSH Keyless Login

Useful Guide

$ ssh -keygen -t rsa

Accept default file name and don’t set a pass phrase if you don’t need one.

$ ls .ssh
$ cat .ssh/id_rsa.pub

Then Login via ssh

$ ssh user@www.example.com
$ nano .ssh/authorized_keys

Add the key copied from id_rsa.pub to authorised_keys on a new line.

CTRL + O to save

CTRL + X to exit nano

$ logout

Then try going to ssh again to login and it should auto login without asking for a password

$ ssh www.example.com