useradd -g sftp -d /alidata1/zbdata -s /bin/false zb
passwd zb
# override default of no subsystems
# #Subsystem sftp /usr/libexec/openssh/sftp-server
Subsystem sftp internal-sftp
# Example of overriding settings on a per-user basis
#Match User anoncvs
# X11Forwarding no
# AllowTcpForwarding no
# ForceCommand cvs server
Match Group sftp
ChrootDirectory %h
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp
阅读(1346) | 评论(0) | 转发(0) |