How do change the ssh keys

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


Submit an 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.

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

ahh is in there…

thanks a lot works