How do I create a ssh key to connect to server

  • Posted September 21, 2013

I know that I could create a ssh key file to connect to server via ssh without having to use the root password or some other user password

can you please post a link to steps or tell me how. thanks


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I created the directory .ssh and now it works… <br>

Hi, <br>I started the tutorial (digital ocean) and I was able to get to this point <br>cat | ssh myusername@ “cat >> ~/.ssh/authorized_keys” <br>myusername@’s password: <br>bash: /home/myusername/.ssh/authorized_keys: No such file or directory <br> <br>Do I have to create the directories? install a package ? <br> <br>Note I replaced my ip and username with fake ones ( and my username )

THank you! <br>

Personally, I’d recommend this tutorial: - it’s very detailed.