How do change the ssh keys

Posted April 24, 2015 14k views
UbuntuSecuritySystem Tools

I I try to change the ssh keys in my droplet but can"t works all times when I try to connect the msg are:

server refused our key

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.

Submit an Answer
3 answers

The ssh keys for your droplet are located in /root/.ssh/authorized_keys you can paste your public keys in this file and remove ones you no longer wish to use.

ahh is in there..

thanks a lot works

I tried it and it doesn’t work.
Ples you can give me more details to change the ssh keys in my droplet .