ssh works, but sftp doesn't

kannappan kannappan at
Fri May 9 22:21:18 EST 2008

Hi Damien,

It seems that sftp-server is working.

I have performed the following:

[root at 10 opt]# sftp -P /usr/sbin/sftp-server
Attaching to /usr/sbin/sftp-server...
sftp> ls

Please suggest me some other options.



-----Original Message-----
From: Damien Miller [mailto:djm at] 
Sent: Friday, May 09, 2008 3:25 PM
To: kannappan
Cc: openssh-unix-dev at
Subject: Re: ssh works, but sftp doesn't

On Fri, 9 May 2008, kannappan wrote:

> Hello All,
> I have built the OpenSSH provided with the "buildroot" package for ARM
> board. OpenSSH version is openssh-4.7p1. 
> After starting the SSHD, I am able to ssh to my ARM board, from my PC,
> but SFTP fails.
> Attached is the log I got from the daemon.  Any help is appreciated.

For some reason your sftp-server is exiting immediately. Check that
/usr/sbin/sftp-server exists, is executable and doesn't crash
when executed.

For a better test of sftp-server, you can run it directly from
sftp: "sftp -P /usr/sbin/sftp-server blah"


More information about the openssh-unix-dev mailing list