How to I add a second key to the authorized_keys file

August 7, 2017 2.8k 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?


4 Answers

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

Thanks. It was that simple.

Microsoft's Windows 10 operating system offers a lot of compelling features, ... What happens if you install a bad piece of software or a defective driver if you need then visit this awesome website

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

Have another answer? Share your knowledge.