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@server ls",  but disallow the same user to login on this server
with "ssh user@server" ?

Google "ssh restrict to single command".

First hit covers using the command option in authorized_keys.

jh
_______________________________________________
CentOS mailing list
[email protected]
https://lists.centos.org/mailman/listinfo/centos

Reply via email to