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
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.
Click below to sign up and get $100 of credit to try our products over 60 days!
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 myfiile_rsa.pub | ssh myusername@1.1.1.1 “cat >> ~/.ssh/authorized_keys” <br>myusername@1.1.1.1’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 (1.1.1.1 and my username )
THank you! <br>
Personally, I’d recommend this tutorial: https://library.linode.com/securing-your-server - it’s very detailed.
Take a look at this article <br> <br><a href=“https://www.digitalocean.com/community/articles/how-to-set-up-ssh-keys--2”>https://www.digitalocean.com/community/articles/how-to-set-up-ssh-keys--2</a>