create sftp user ubuntu

adduser -d /some/path user

Match User user
ForceCommand internal-sftp
PasswordAuthentication yes
ChrootDirectory /some/path
PermitTunnel no
AllowAgentForwarding no
AllowTcpForwarding no
X11Forwarding no

chown root.root /some/
chown user.user /some/path

Leave a Reply

Your email address will not be published. Required fields are marked *