How to I add a second key to the authorized_keys file

August 7, 2017 8.7k views
Security Ubuntu

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,

4 Answers

Just add the new key on a new line in the same file.

Thanks. It was that simple.

I can paste anything into that shell. I am unable to ssh in from my terminal. When did this become such hassle?

We all know how valuable Gems are in the game Dragon City. With them you can skip waiting times of buildings or expand main buildings. A lot of players are buying them with their own money. But with our hack this isn’t necessary anymore! Try it out now and get Gems, Gold and Food totally for free.
https://dragoncitytips.kinja.com/dragon-city-tips-welcome-dragon-masters-dragon-city-t-1831567105

Have another answer? Share your knowledge.