当前位置:科普知识站>IT科技>

linux|sftp服务器搭建

IT科技 阅读(7.55K)

1、输入命令: rpm -qa | grep vsftpd,检测Linux系统是否安装vsftp;

linux sftp服务器搭建

2、输入命令: yum -y install vsftpd,空白表示未安装,继续安装;

linux sftp服务器搭建 第2张

3、启动ftp服务,命令: service vsftpd start,再次查看是否安装;

linux sftp服务器搭建 第3张

4、命令: useradd -s /sbin/nologin -d /home/ftp_test ftp_test,创建用户ftp_test,密码test;

linux sftp服务器搭建 第4张

5、输入命令:passwd ftp_test,修改密码;

linux sftp服务器搭建 第5张

6、输入命令:vi /etc/vsftpd/vsftpd.conf,编辑vsftpd配置文件, 不允许匿名用户登录;

linux sftp服务器搭建 第6张

7、centos7之后,输入命令:systemctl restart vsftpd.service,重启vsftpd服务器即可。

linux sftp服务器搭建 第7张