Question

I can't connect to my droplet using putty or WinSCP, but in the digitalocean the username and password work

The title says it all, I can’t connect to my droplet anymore, it worked before but now i can’t access it via putty or WinSCP, it just says access denied everytime. How can I fix that?

Subscribe
Share

I still have not fixed this.

  • I checked for firewall,
  • I checked for “PermitRootLogin yes”,
  • I tried to add a SSD Key via the console, but I couldn’t, it won’t paste right into the console (the key),
  • I tried to uncheck the box for GSSAPI in putty. I tried to look at the log, it said: “Failed password for root from <my ip adress> port 58458 ssh2”, idk why port is 58458 tho, I tried to change it from 22 to 58458 in putty.

Also please don’t forget I’m a very new beginner to linux in general, so it may be a really stupid error. The login i’m using is root, from looking for a solution i saw that is really bad practice to use password and root login, but that’s something I can change later if i’m able to access the droplet via putty and winscp.


Submit an 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.

Accepted Answer

Hello,

Have you tried generating an SSH key for Putty and then adding this key toy our ~/.ssh/authorized_keys folder?

From what I understand there is access to your droplet however only by using the console. This would mean your SSH key is most probably incorrect or you don’t have one added from the system you are connecting to. In such a case as said, I’ll recommend generating the key with the Putty program and inserting it on your server.

Regards, KFSys

This comment has been deleted