ssh works; sftp client fails to connect

Asked by ig on 2011-04-12

Can connect to server via ssh but sftp fails:

Trying to use sftp on Ubuntu 10.10. Connecting to my server using ssh keys, no password. Other clients, such as psftp (PuTTY on Windows), have been connecting to it successfully for years. No changes made. From Ubuntu, ssh works fine but any sftp attempt (Nautilus, command line) fail. No obvious traces of anything wrong in the logs.

This is what happens:

=== ssh works:
me-local@ubuntu:~$ ssh me-remote@my-server
Last login: Tue Apr 12 07:45:18 2011 from
me-remote@my-server:~$ logout
Connection to my-server closed.

=== sftp fails:
me-local@ubuntu:~$ sftp me-remote@my-server
subsystem request failed on channel 0
Couldn't read packet: Connection reset by peer

Can anybody help with this? Thank you.

Question information

English Edit question
Ubuntu openssh Edit question
No assignee Edit question
Last query:
Last reply:

Try using filezilla, should connect ok

ig (ubuntu-sindyakov) said : #2

Thank you actionparsnip! Actually, filezilla indeed solves 1/3 of the problem:

1. + yes, it logs in.
2. - but with password authentication only rather than ssh certificates - and ssh works like a charm
3. - and this is, unfortunately, is all about GUI rather than batch (which is used for backup on other platforms)
This seems to have to do with the certificates - but, again, ssh the tunnel works.

Meanwhile, found a workaround: scp. Requires rewriting some scripts, but doable.


Ok then use the scp command in your scripts. The filezilla connecting means all is well on the server side

Can you help with this problem?

Provide an answer of your own, or ask ig for more information if necessary.

To post a message you must log in.