Question

Cant add SSH keys to known hosts file

I’ve created my SSH keys but I’m unable to add them to my “known hosts file” I followed these instructions: https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys--2 everything works fine until I get to the “Are you sure you want to continue connecting (yes/no)? yes” after that I get nothing

Basically I’m using wordpress, server pilot, and digital ocean and want to create SSH keys as my droplet was created without them.

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Another way to do this with Userify is to paste the Userify shim installer into the “UserData” portion when creating your droplet (or, since you’ve already created it, just paste it right into the server console.). Then, it’s easy - Userify just creates the user account, set up the SSH keys, and set up sudoers for that user account so you can sudo. Don’t forget to enable MFA :)