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

Wed Jan 11 15:34:21 UTC 2017
Bernard Fay <bernard.fay at gmail.com>

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" ?


Thanks,
Bernard