On Fri, Nov 24, 2006 at 03:06:32PM +0100, Ingo Schwarze wrote:
> In some situations, just executing /bin/sh -c <ForceCommand>,
> regardless of the command supplied to the sshd(8), certainly is
> the best thing to do. In this speacial case, returning an error
> message in case of a command mismatch might even be nicer.
> But that probably won't warrant adding yet another option to
> sshd_config(5).
Actually, this is already implemented.
ssh -v somehost:
debug1: Remote: Forced command: <ForcedCommand>
Of course, this requires someone to go 'hey, what's happening?' and know
that ssh -v is useful in this kind of situation.
Joachim