Report this

What is the reason for this report?

How do change the ssh keys

Posted on April 24, 2015

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



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.

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 .

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.