#创建sftp用户目录 mkdir -p /data/user1 #创建sftp用户并设置密码 groupadd user1 useradd -g user1 -d /data/user1 user1 && echo '123456' | passwd --stdin user1 #增加配置限制sftp用户在自己工作目录下 echo 'Match user user1' >> /etc/ssh/sshd_config echo ' ForceCommand internal-sftp' >> /etc/ssh/sshd_config echo ' ChrootDirectory /home/user1' >> /etc/ssh/sshd_config #重启ssh服务 systemctl restart sshd #centos7
分类: 发行通用
1 条评论
casinobetarco · 2025-12-19 20:03
Casinobetarco? Heard some good things about it, and yeah, it’s pretty decent. Had fun playing there last night. Easy to find what you are looking for. Go see for yourself at casinobetarco.