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

Views All Time
Views All Time
36
Views Today
Views Today
1

Leave a Reply

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