Configure SSH login without password

Secure Shell (SSH) is a very popular cryptographic network protocol to connect securely to your remote server. One reason why it’s so popular is that it’s so easy to use. E.g. you need to execute three commands, only and you don’t need to enter a password to connect to your remote machine.

The first step is to generate a ssh key for you local machine.

 # ssh-keygen

The second step is to add your created authentication key on your remote machine.

# ssh-copy-id -i ~/.ssh/id_rsa.pub user@remoteServer

The last step adds your private key to the ssh agent

# $ ssh-add

That’s it. Now you can access your remote machine via SSH without prompting a password.

chevron_left
chevron_right

Leave a comment

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

Comment
Name
Email
Website

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