Able to access via SSH but not Filezilla

January 13, 2015 3.9k views

I didn't change anything on server config recently. Yesterday I was trying to access my file via Filezilla but it returned Connection closed by server with exitcode 127 error code.

I can access via ssh (using iTerm) Do you know what happened?

Ubuntu 14.04 x64, Wordpress running

2 Answers

In Filezilla, choose on the menu Edit->Settings, On the left panel expand to Connection->SFTP. On the right side make sure you have the correct private key file, or add if missing the correct entry.

Using the DO web console, login as root and do 'tail -f /var/log/auth.log'. Then try to login with Filezilla and note any messages.

  • I always logged in with username & password via Filezilla. Why do I need private key file now?

    'tail -f /var/log/auth.log' returning some of logs but doesnt mean anything for me :(

@gndo

Logs are here:

Jan 14 15:07:35 aa sshd[17609]: reverse mapping checking getaddrinfo for myIP.dynamic.ttnet.com.tr [myIP] failed - POSSIBLE BREAK-IN ATTEMPT!
Jan 14 15:07:35 aa sshd[17609]: Accepted password for root from myIP port 62180 ssh2
Jan 14 15:07:42 aa sshd[17612]: reverse mapping checking getaddrinfo for myIP.dynamic.ttnet.com.tr [myIP] failed - POSSIBLE BREAK-IN ATTEMPT!
Jan 14 15:07:43 aa sshd[17612]: Accepted password for root from myIP port 62181 ssh2
Jan 14 15:07:48 aa sshd[17625]: Invalid user testing from 180.169.1.207
Jan 14 15:07:48 aa sshd[17625]: inputuserauthrequest: invalid user testing [preauth]
Jan 14 15:07:48 aa sshd[17625]: error: Could not get shadow information for NOUSER
Jan 14 15:07:48 aa sshd[17625]: Failed password for invalid user testing from 180.169.1.207 port 35719 ssh2
Jan 14 15:07:48 aa sshd[17625]: Received disconnect from 180.169.1.207: 11: Bye Bye [preauth]
Jan 14 15:09:01 aa CRON[17769]: pamunix(cron:session): session opened for user root by (uid=0)
Jan 14 15:09:01 aa CRON[17769]: pam
unix(cron:session): session closed for user root
Jan 14 15:10:12 aa sshd[17842]: Invalid user aaron from 106.186.126.40
Jan 14 15:10:12 aa sshd[17842]: inputuserauthrequest: invalid user aaron [preauth]
Jan 14 15:10:12 aa sshd[17842]: error: Could not get shadow information for NOUSER
Jan 14 15:10:12 aa sshd[17842]: Failed password for invalid user aaron from 106.186.126.40 port 49286 ssh2
Jan 14 15:10:12 a sshd[17842]: Received disconnect from 106.186.126.40: 11: Bye Bye [preauth]

  • @mumcuibrahim - I'm not exactly sure if this is related, but your reverse IP lookup for the machine your logging in from is failing (see entry [17612]). What I'm seeing is that you logged in from 'myIP' using ssh, and even though it accepted your password, the reverse mapping failed. This could be a firewall configuration on your Mac/PC. If so, then sftp may be failing because of the failure to validate your Mac/PC's IP address. You may need to open up a support ticket with DO to help you setup your firewall on your Mac/PC to allow reverse IP lookups.

Have another answer? Share your knowledge.