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

From: Poul-Henning Kamp <phk_at_phk.freebsd.dk>
Date: Wed, 12 Sep 2007 14:39:35 +0000
In message <89849832_at_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_at_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.
Received on Wed Sep 12 2007 - 12:39:37 UTC

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