sshd and a "command" option at ~/.ssh/authorized_keys

Boris Samorodov bsam at ipt.ru
Wed Sep 12 07:48:46 PDT 2007


On Wed, 12 Sep 2007 14:39:35 +0000 Poul-Henning Kamp wrote:
> In message <89849832 at srv.sem.ipt.ru>, Boris Samorodov writes:

> >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.)

> Try:
> 	ssh <the_host> you_need_to_give_a_command_to_actually_see_it

Well, I see I'm a moron. :-(

Poul-Henning, thank you for you kind answer.


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