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
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!