Able to access the server with SSH, but not with SFTP

1

I have access to the server via SSH (using Putty Client), but I am not able to connect via SFTP, using same port (using FileZilla, or other clients).

Server requires public key authorization, and keys are configured properly in all clients.

What might be solution for this?

Edit: The solution in this case was using SCP protocol.

Vlad Pavlov

Posted 2014-03-11T10:55:58.877

Reputation:

1It is possible that SFTP is disabled on the server but this is unusual (at least as a default install).

Do you have any logging output from your SSH and SFTP connection attempt? What is the actual failure message? – None – 2014-03-11T10:59:19.343

This is the Filezilla only error log:

Error: Connection closed by server with exitcode 127

Error: Could not connect to server – None – 2014-03-11T11:02:54.623

Are you able to log into the server and follow the log output from sshd? – None – 2014-03-11T11:04:03.190

This is only output from /var/log/auth.log

Mar 11 11:05:01 localhost CRON[4163]: pam_unix(cron:session): session opened for user root by (uid=0) Mar 11 11:05:01 localhost CRON[4165]: pam_unix(cron:session): session opened for user www-data by (uid=0) Mar 11 11:05:01 localhost CRON[4164]: pam_unix(cron:session): session opened for user www-data by (uid=0) Mar 11 11:05:01 localhost CRON[4163]: pam_unix(cron:session): session closed for user root – None – 2014-03-11T11:07:49.343

Hmm none of that's SSH. Try one of the other log files? Also your sshd_config (usually in /etc/ssh/) should have a line like this: "Subsystem sftp /usr/libexec/openssh/sftp-server" – None – 2014-03-11T11:12:27.330

Thank you very much @GerdBusker, I solved the issue, the Filezilla doesn't support SCP protocol, and once I tried the same config via SCP it worked. – None – 2014-03-11T11:19:54.563

No answers