I need to add a public key to the .ssh/authorized_keys file on my server, how do I do this as I already see an key in there and I need to add a second one?
Thanks,
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!
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.
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.
Just add the new key on a new line in the same file.
Hello there,
You can check our article on How to Upload an SSH Public Key to an Existing Droplet
I will recommend you to edit the
.ssh/authorized_keys
via ssh using an ssh-client and not using the DigitalOcean console.Hope that this helps! Regards, Alex
I can paste anything into that shell. I am unable to ssh in from my terminal. When did this become such hassle?