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 192.168.1.1
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
me-local@ubuntu:~$

Can anybody help with this? Thank you.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu openssh Edit question
Assignee:
No assignee Edit question
Last query:
2011-04-12
Last reply:
2011-04-12

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.

Thanks

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.