Sftp 設定檔于/etc/ssh

由於一直抱錯所以以下的順序要對粗體字在上

UseDNS no
AddressFamily inet
PermitRootLogin yes
SyslogFacility AUTHPRIV
PasswordAuthentication yes
**

Subsystem sftp internal-server
Match user nginx
ForceCommand internal-sftp
ChrootDirectory /home/www
AllowTcpForwarding no
X11Forwarding no
ForceCommand internal-sftp -u 0002 -d html

猜你喜欢

转载自blog.csdn.net/weixin_43137382/article/details/88793364