Report this

What is the reason for this report?

How to fix error: server refused our keys

Posted on July 12, 2020

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.



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.

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

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.