sftp now asking for password

November 18, 2014 1.1k views

Hi I'm on Ubuntu 14 trying to access sftp via the terminal. I am able to ssh in but when I try to sftp it asks for a password - it also doesn't accept any of my passwords (root or user).

I was able to sftp into the server yesterday. This morning I did a server reboot after I was prompted to on log in. I also did apt-get update and upgrade. Would this have changed any settings related to sftp?

1 comment
  • what application are you using to sftp in to your server?
    when you sftp in, are you using the correct user?

    are you using an alternative ssh port? (other than 22)

2 Answers

Just terminal.

I am using a different port but it's specified in the sftp command. It's the same command I've always used.

  • permissions perhaps? are you trying to sftp into a directory your user does not have permissions for? or changed recently?

    www folder is usually owned by www-data...you might add your user to www-data group:

    sudo usermod -a -G www-data $USER

Well just tried it again and it worked. So not really sure what happened. Probably just a typo.

Have another answer? Share your knowledge.