Cannot Access SSH Remotely

I have reviewed every document I could find and have not found a solution to my problem. I am attempting to access my Droplet using SSH from Windows PowerShell.

SSH is running and I can access the droplet console through the Droplet control panel on the web site. From there I can log in using SSH (as a test) with two users (root and my own).

/etc/ssh/sshd_config has

  • PasswordAuthentication yes
  • ChallengeResponseAuthentication no

I know the passwords are correct.

After my login is denied I can see the following lines in the SSH log:

  • pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=<ipaddress> user=<username>
  • Failed password for <user> from <ipaddress> port 52463 ssh2
  • Connection reset by authenticating user <user> <ipaddress> port 52463 [preauth]

Any ideas?

Submit an answer
Answer a question...

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!

Sign In or Sign Up to Answer

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.

Site Moderator
Site Moderator badge
September 12, 2022

Hello there,

I had a similar issue in the past and this thread came handy for me


Hi there,

It looks like the password that you are trying to use is incorrect or possibly it contains a special character like @ which might not be interpreted by Powershell correctly.

What I could suggest is changing your password so that it does not have any special characters as a test and giving it another try.

Let me know how it goes!



Want to learn more? Join the DigitalOcean Community!

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.