[CentOS] Allow execution of commands via ssh but not to login

Wed Jan 11 15:38:04 UTC 2017
John Hodrien <J.H.Hodrien at leeds.ac.uk>

On Wed, 11 Jan 2017, Bernard Fay wrote:

> Hi,
> Is there a way to allow a user to execute commands via ssh, for example:
> "ssh user at server ls",  but disallow the same user to login on this server
> with "ssh user at server" ?

Google "ssh restrict to single command".

First hit covers using the command option in authorized_keys.