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

Poul-Henning Kamp phk at phk.freebsd.dk
Wed Sep 12 07:39:37 PDT 2007


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.


More information about the freebsd-current mailing list