Ssh – I can SSH but can’t SFTP

sftpsshubuntu-12.04

I am dumfounded at this issue. Brand new Ubuntu 12.04 Server install, I can SSH in, but can't use SFTP (Using Filezilla). It seems to authenticate fine .. But then it errors:

The error is:

Error:  Connection timed out
Error:  Could not connect to server

Here is the full transaction:

Status: Connecting to 10.2.1.102...
Response:   fzSftp started
Command:    open "username@10.2.1.102" 22
Command:    Trust changed Hostkey: Once
Error:  Connection timed out
Error:  Could not connect to server

Here is my sshd_conf file:

Port 22

Protocol 2

HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key

UsePrivilegeSeparation yes

KeyRegenerationInterval 3600
ServerKeyBits 768


SyslogFacility AUTH
LogLevel INFO


LoginGraceTime 120
PermitRootLogin yes
StrictModes yes

RSAAuthentication yes
PubkeyAuthentication yes


IgnoreRhosts yes

RhostsRSAAuthentication no

HostbasedAuthentication no

PermitEmptyPasswords no

ChallengeResponseAuthentication no

X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes


AcceptEnv LANG LC_*

Subsystem sftp /usr/lib/openssh/sftp-server

UsePAM yes

I am going around in circles, I don't know what to check next etc .. Any help guidance on what to check next and or test, would be greatly appreciated.

Best Answer

FileZilla has done this to me in the past to. The problem was that filezilla tryed to use the ftp protocol when in fact sftp was needed even when i entered port 22 as my port. To solve this, enter: sftp://YOUR_IP_HERE as your host.