ssh-v
useraddwoodragon
vim/etc/ssh/sshd_config
Subsystemsftp/usr/libexec/openssh/sftp-server
Subsystemsftpinternal-sftp
MatchUserwoodragon
ChrootDirectory/home/%u
ForceCommandinternal-sftp
AllowTcpForwardingno
X11Forwardingno
chownroot:woodragon/home/woodragon
chown755/home/woodragon
servicesshdrestart
欢迎光临 仓酷云 (http://ckuyun.com/) | Powered by Discuz! X3.2 |