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 ?
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.