How to restrict user access via SFTP
Issue
-
How to restrict access via SFTP
-
How to limit the users who have access to SFTP
-
Trying to restrict user ID's access to use SFTP login. Have set the userlist_deny=NO tried to use user_list to allow and no success. The userlist_file option did not provide success.
-
There is a need for the shell sftp-server be added on all Red Hat servers to support restriction of login by an account for sftp to only use sftp login. This shell (/usr/libexec/openssh/sftp-server) must be added to the /etc/shells list. My question for Red Hat is do you support this? Any issues with doing this?
Environment
Red Hat Enterprise Linux 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.