The command written in authorized_keys for ssh publickey authentication is not executed.

Solution Unverified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content