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

next in thread | previous in thread | raw e-mail | index | archive | help
In message <89849832@srv.sem.ipt.ru>, Boris Samorodov writes:
>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.)

Try:
	ssh <the_host> you_need_to_give_a_command_to_actually_see_it



-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



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