#创建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

13 条评论

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.

jiliplaydonnalyn · 2025-12-24 10:44

Jiliplaydonnalyn… sounds interesting! Giving it a whirl tonight. Hopefully, it’s a fun and potentially rewarding experience! Worth trying : jiliplaydonnalyn

9apisologin · 2026-01-11 04:01

https://www.it9apisologin.com I am thanksful for this post!

tg77com · 2026-01-13 21:25

tg77com https://www.tg77com.org

jililuck 22 · 2026-01-14 19:10

jililuck 22 https://www.jililuck-22.com

2222ph · 2026-01-14 19:33

2222ph https://www.be2222ph.org

balato88 · 2026-01-14 19:59

balato88 https://www.balato88u.com

98jili · 2026-01-14 23:30

98jili https://www.98jilig.com

gkbet · 2026-01-15 00:08

gkbet https://www.gkbeth.org

gojackpot · 2026-01-20 04:41

gojackpot https://www.nugojackpot.org

funbetcasino · 2026-01-23 01:28

Funbetcasino? Well, the name doesn’t lie! Had some fun times checking it out. Nothing extraordinary,but definitely worth a look. Give it a roll: funbetcasino

w888slot · 2026-01-23 01:29

W888slot, I played it last night. Seemed pretty decent, good graphics, and the gameplay was smooth. Had a good time actually! Thinking of playing it again soon. Roll the dice: w888slot

dr88casino · 2026-01-23 01:29

Dr88casino… hmmm. Tried it out, had mixed feelings. Needs a little polishing, but has potential. It all depends on what you’re looking for I guess. Give a check if you feel adventurous: dr88casino

回复 funbetcasino 取消回复

Avatar placeholder

您的邮箱地址不会被公开。 必填项已用 * 标注