Secure connection without a password

Reading Time: < 1 minute

There are numbers of tutorials on the net on how to configure access from one machine to another without typing a password.
Here is the real way to do it.
First generate a pair of keys:

ssh-keygen -t rsa 

It’s important to choose a passphrase. Don’t leave it blank.
Then you need to copy the public key to the other server

ssh-copy-id -i .ssh/id_rsa.pub>

Make sure that ssh-agent is running.
Add a key using ssh-add

ssh-add

Try connecting
Should be working.

Reading Time: < 1 minute

There are numbers of tutorials on the net on how to configure access from one machine to another without typing a password.
Here is the real way to do it.
First generate a pair of keys:

ssh-keygen -t rsa 

It’s important to choose a passphrase. Don’t leave it blank.
Then you need to copy the public key to the other server

ssh-copy-id -i .ssh/id_rsa.pub>

Make sure that ssh-agent is running.
Add a key using ssh-add

ssh-add

Try connecting
Should be working.

By Marc Olivier Meunier

Marc has spent the past few years putting oil on the fire of a hyper growth ad tech company. At Smartly.io he was in charge of scaling the support and its culture. At Eficode he is now leading an engineering team and running operations. He leads by example and puts a lot of emphasis on diversity and inclusion, constantly working to create a safe environment. A warm leader with a passion for memorable experiences and innovation.
Find Marc on Linkedin

Leave a Reply

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