Disable ssh access for particular user but allow command execution over ssh
Issue
- User should be allowed to execute all commands over ssh without having access to server.
Environment
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.