I am using the lastest version of Ubuntu and I added SSH Key via Digital Ocean when I created the Droplet.
Here is my sshd_config (I pointed with arrows what I changed and still does not work):
What should I do?
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.
Click below to sign up and get $200 of credit to try our products over 60 days!
What is the exact error that you get when you try to login? Also what SSH client are you using?
Can you try adding the
-vvflag to your SSH command, that will show you the reason why the connection is not working.
If you’ve added your SSH key to the Droplet, before creating it, there should be no changes to the SSH config required. If the SSH key was added to your DigitalOcean account after the Droplet creation, you would need to add your public SSH key to your Droplet manually: