Press "Enter" to skip to content

Passwordless SSH Login

bist 0

On the host create the private and the public key:

ssh-keygen

Just hit enter to keep the default values.

Usually, I only needs this for some uncritical test- and development-setups where security does not matter that much.

There will be two files in ~/ssh.

One is private key id_rsa and id_rsa is the public key.

Now copy the public key to the server with:

ssh-copy-id <username>@<host>

Check if it is possible to log into the server without having to provide the password:

ssh <username>@<host>

Yes, it is really that simple.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.