4.11.7. HOWTO Enable SFTP Restricted Accounts¶
This section describes the method for restricting an account to SSH File Transfer Protocol (SFTP) access only.
4.11.7.1. Add a User¶
Create a user account based on the following example.
user { "foo":
uid => <UID>,
gid => <GID>,
shell => '/usr/libexec/openssh/sftp-server'
}