The command written in authorized_keys for ssh publickey authentication is not executed.
Issue
- As written in man sshd, it's possible to specify the command variable in authorized_keys.
- The following command is specified, ssh login from a client hanged.
command="logger -p auth.info -t LOGIN 'new user logged in'; login -p -f root" ssh-rsa ....
- If the first logger command is removed, it works.
Environment
Red Hat Enterprise Linux 6.4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.