I am having an issue connecting to my droplet over ssh.
Whenever I try to loging in using ssh. I get and error:
firstname.lastname@example.org: Permission denied (publickey). I copied my public key to the digital ocean server and then tried to login.
Still I get the same thing.
I tried “ssh —v email@example.com” and get tons outoutput that I don’t understand.
The only thing I see in the logs that looks suspicious is this:
debug1: Authentications that can continue: publickey debug1: Trying private key: /root/.ssh/id_dsa debug3: no such identity: /root/.ssh/id_dsa: No such file or directory debug1: Trying private key: /root/.ssh/id_ecdsa debug3: no such identity: /root/.ssh/id_ecdsa: No such file or directory debug1: Trying private key: /root/.ssh/id_ed25519 debug3: no such identity: /root/.ssh/id_ed25519: No such file or directory debug1: Trying private key: /root/.ssh/id_xmss debug3: no such identity: /root/.ssh/id_xmss: No such file or directory debug2: we did not send a packet, disable method debug1: No more authentication methods to try.
I don’t have the files “/root/.ssh/id_dsa” , but I do have “/root/.ssh/id_rsa”
It seems to me that digital ocean is expecting a dsa style key and I only have a rsa style key???
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.