sshd and a "command" option at ~/.ssh/authorized_keys
Boris Samorodov
bsam at ipt.ru
Wed Sep 12 07:33:20 PDT 2007
Hi!
With 'command="/bin/echo You are $USER!"' at ~/.ssh/authorized_keys:
$ ssh <the_host>
You are duser! <-- is'a real username
But with 'command="/bin/echo You invoked $SSH_ORIGINAL_COMMAND!"':
$ ssh <the_host>
You invoked !
^^^^^^^^^^^^^
Is this a bug? (Yes, I know about security issues etc.)
If I use a script at the "command", the invoked command is shown.
The man page says:
-----
The command originally supplied
by the client is available in the SSH_ORIGINAL_COMMAND environ-
ment variable. Note that this option applies to shell, command
or subsystem execution.
-----
The system is (from Sep 02):
$ uname -srm
FreeBSD 7.0-CURRENT amd64
Thanks!
WBR
--
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve
More information about the freebsd-current
mailing list