How to restrict user access via SFTP

Solution Verified - Updated -

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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.