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

From: Boris Samorodov <bsam_at_ipt.ru>
Date: Wed, 12 Sep 2007 18:49:58 +0400
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
Received on Wed Sep 12 2007 - 12:48:46 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:17 UTC