Re: sshd’s ForceCommand and ssh’s "–N Do not execute a remote command"

Oleg Verych olecom at gmail.com
Tue Aug 2 15:34:55 EST 2011


2011/8/1 Damien Miller <djm at mindrot.org>:

Hi, Damien.

> No, our sshd can't refuse -N. Such a thing is hackish to implement
> (how do you distinguish between a client that doesn't open a cmd/shell channel
> from one that is merely slow in doing so? what about multiplexing?)

If "sshd_config" has 'ForceCommand', `sshd` must not wait anything:
1) "$SSH_ORIGINAL_COMMAND"
2) `ssh -N`
It just runs 'ForceCommand' with stdio <>/dev/null until connection alive...

_______


More information about the openssh-unix-dev mailing list