Passwordless auth with RSA key

How to connect to a SSH server without password.

Setup the client

Create your RSA key

ssh-keygen -t rsa -b 4096

Accept all default (do not input a password)

Copy the content of the following file:

cat ~/.ssh/

Setup the server

Edit the following file:

nano ~/.ssh/authorized_keys

And paste the content from the client.

Last updated