How to restrict ssh clients to execute arbitrary commands on the remote host.
Issue
- Do not allow ssh clients to execute commands on the remote host instead of a login shell.
- Force ssh clients to execute the specified command.
Environment
- Red Hat Enterprise Linux
- ssh
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.