[Bug 1365] sftp exits immediately after connection (fgets EAGAIN)

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Tue Sep 18 23:07:18 EST 2007


http://bugzilla.mindrot.org/show_bug.cgi?id=1365





--- Comment #5 from Roberto A. Foglietta <roberto.foglietta at gmail.com>  2007-09-18 23:07:15 ---
(In reply to comment #4)
> Can you replicate the problem running with OpenSSH ssh, or by bypassing
> ssh entirely and having sftp talk directly to sftp-server? 

  no as far as I can see.

> You can do
> the latter using a commandline like the following:
> 
> sftp -P /usr/libexec/sftp-server blah

~ # sftp -P /usr/libexec/sftp-server
Attaching to /usr/libexec/sftp-server...
sftp> ls
pippo       strace.log
sftp>

~ # sftp -S /mnt/tmpfs/ssh.gzexe foglietr at 172.16.119.6
Connecting to 172.16.119.6...
foglietr at 172.16.119.6's password:
sftp> quit

> 
> If I had to guess what the problem is, it would be that dropbear is
> detecting a tty on stderr and putting /dev/tty into non-blocking mode
> though it isn't clear why this should interfere with sftp, which is a
> separate process.
> 

 anyway do you think this patch could hurt in sane enviroment?
 I used a usleep(10*1000) in order to not overload the system.


-- 
Configure bugmail: http://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.


More information about the openssh-bugs mailing list