SSH_ORIGINAL_COMMAND and no forced command

frank f_mohr at
Wed May 11 22:49:01 EST 2005

i just noticed that the env. variable SSH_ORIGINAL_COMMAND is no more
set if there is no forced command.

was there a reason to do so?

I'm using a wrapper that can be used as forced command and as shell.
(most of the time as forced command, but now I had a task where it had
to be used as shell)

The wrapper currently only gets its parameters by parsing the 
variable and ignores anything after the -c option.
This worked when I implemented it (OpenSSH 2.9).


More information about the openssh-unix-dev mailing list