I can’t connect through ssh or sftp. I’ve been hours around this and now I think I have found the problem. When I enter on the console of my droplet I type vi ~/.ssh/authorized_keys . I see an old key there. I would like to remove and paste the new one, but when I do paste the output is different from what I have copied. So I can’t update it. On my account I do have the correct ssh key inserted. I also have tried ssh-copy-id email@example.com I get Permission denied (publickey).
When I try to connect with SFTP (FileZilla): Status: Using username “root”. Status: Server refused our key Error: FATAL ERROR: No supported authentication methods available (server sent: publickey) Error: Could not connect to server
So my question is, if I can’t use the DigitalOcean Console to change the ssh/authorized_keys I will never be able to connect with ssh or sftp. How can I solve this ?
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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!