Question

How to fix error: server refused our keys

I am using MobaXterm. when I go for login to the server, I get error: “server refused our keys” Please anybody help me with MobaXterm how can I fix this problem.


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Hi @pramod0021a,

It seems like your key doesn’t match the ones you have on your droplet. What I’ll recommend is to add the key from your local environment

  • ~/.ssh/id_rsa.pub on the droplet here - ~/.ssh/authorozied_keys.

If this doesn’t work again, I’ll recommend trying to regenerate the key on the local environment you are connecting from.

Regards, KFSys