ssh hang with ForceCommand=internal-sftp

Peter Stuge peter at stuge.se
Thu Mar 12 03:34:15 EST 2009


Richard Theis wrote:
> > /usr/sbin/sshd -oForceCommand=internal-sftp
> > sftp user at host  # This connects as expected.
> > ssh user at host   # This hangs...at least from an end-user's perspective.
> 
> It would be ideal if the connection terminated gracefully.  Do
> others see this same behavior?  If so, is there a fix or
> configuration change that can implemented to eliminate the hang?
> I'm using OpenSSH 5.0p1.

If the server is configured to behave in an ill fashin, of course
clients shall suffer.

It's the job of the server admin to make sure that the server does
what is intended.

Now, what is actually going on here?

Is the user talking to internal-sftp when invoking ssh - or does the
login/shell channel request just fail?

In case there is or should be a protocol failure in the ssh case - of
course the client should error out.


//Peter


More information about the openssh-unix-dev mailing list