Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Sep 2007 18:49:58 +0400
From:      Boris Samorodov <bsam@ipt.ru>
To:        "Poul-Henning Kamp" <phk@phk.freebsd.dk>
Cc:        freebsd-current@FreeBSD.org
Subject:   Re: sshd and a "command" option at ~/.ssh/authorized_keys
Message-ID:  <07763369@srv.sem.ipt.ru>
In-Reply-To: <18073.1189607975@critter.freebsd.dk> (Poul-Henning Kamp's message of "Wed\, 12 Sep 2007 14\:39\:35 %2B0000")
References:  <18073.1189607975@critter.freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 12 Sep 2007 14:39:35 +0000 Poul-Henning Kamp wrote:
> In message <89849832@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?07763369>