FTP keeps prompting for password? Can't login.

Posted April 27, 2016 7.2k views
Linux BasicsUbuntuDigitalOceanFirewall

Hey guys. I’m still very new to all of this. Lately I’ve been experiencing a DDoS attack and I’ve had to learn all the steps to securing my website more than it was. I’m now using something called CloudFlare, which seemed to help. I believe the DDoS took up a lot of memory on my droplet (I may be wrong, I’m very new to this). My website kept getting a 524 error every couple times I would try to load a page. About an hour ago I updated a bunch of packages through the console on my droplet. When I say “a bunch” I mean about 150 packages, 85 of which were security. I hired someone to build this website for me, and it turns out they knew less than I did. Now I’m trying to learn as much as I can to fix the current issues. After the package update, I’m noticing that my website isn’t seeing any 524 errors and the pages seem to be loading ok.

I’m trying to login to SFTP through Text Wrangler and it keeps asking me for a password. The password I’m entering is correct, but it won’t allow me to connect. It keeps saying the connection timed out.

Does anyone know why this may be happening? Any help/guidance/advice will be much appreciated.

  • Hi,

    Which account are you attempting to use for SFTP? Are you able to login to that account with the same credentials? What happens when you try sftp username@yourserveripaddress from a terminal window?

  • Thanks for your answer. I’m trying to login to my root username. I was able to do it a few weeks ago. Now for some reason it won’t allow me. When I login with those credentials on my Digital Ocean Console it allows me. After typing that command into a terminal window is says permission denied.

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.

Submit an Answer
2 answers

This may help. I’ll be re-working part 2, but part 1 should help you learn what you need to learn.

Yeah. I just “outed” myself on reddit, but I did that a while back when I gave links to my GitHub.

Hello, all

You can use the root username and password in order to access your droplet using sFTP. If you’re unable to access the droplet using the ssh you can also reset your password.

You can check these two tutorials:

Hope that this helps!

by Justin Ellingwood
SFTP is a secure way to transfer files between local and remote servers. Much more secure than FTP, this protocol uses an SSH tunnel to establish a connection and uses encryption to transfer files in an interactive session.