Re: Allow execution of commands via ssh but not to login

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux