Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Cannot login to droplet using ssh
I am having an issue connecting to my droplet over ssh.
Whenever I try to loging in using ssh. I get and error:
email@example.com: 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 firstname.lastname@example.org” 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/iddsa
debug3: no such identity: /root/.ssh/iddsa: No such file or directory
debug1: Trying private key: /root/.ssh/idecdsa
debug3: no such identity: /root/.ssh/idecdsa: No such file or directory
debug1: Trying private key: /root/.ssh/ided25519
debug3: no such identity: /root/.ssh/ided25519: No such file or directory
debug1: Trying private key: /root/.ssh/idxmss
debug3: no such identity: /root/.ssh/idxmss: 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/iddsa” , but I do have “/root/.ssh/idrsa”
It seems to me that digital ocean is expecting a dsa style key and I only have a rsa style key???
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.×