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 ssh between 2 droplets nor to localhost
I have public keys setup for droplet creation and i am able to remote into both droplets from my computer using the key pair but if I try to ssh from Droplet 1 to Droplet 2 it fails with the following info:
Apr 23 15:03:21 18 sshd: Connection closed by authenticating user root 127.0.0.1 port 38042 [preauth]
Permission denied (publickey).
This happens on both droplets and even when connecting to localhost on the same Droplet.
UFW is disabled and sshd_config is set to the default that DO sets it to when it creates a droplet with a key file.
I have dug through everything i can find but i cannot get past this error.
Both droplets are using ubuntu 18.04
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.×