ftp服务器搭建-安装、配置及验证
#安装
sudo apt-get install vsftpd
#配置文件
cat > /etc/vsftpd.conf
#创建用户
echo test > /etc/vsftpd.chroot_list
#设置密码
password test
#建立主目录
mkdir /home/test sudo chmod -R 777 /home/test touch test #放一个测试文件
#本地验证
root@localhost:/home/ftp# ftp localhost Connected to localhost. 220 (vsFTPd 3.0.5) Name (localhost:root): test 331 Please specify the password. Password: 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files. ftp> dir 200 EPRT command successful. Consider using EPSV. 150 Here comes the directory listing. -rw-r--r-- 1 0 0 13 Nov 24 15:46 test 226 Directory send OK. ftp> get test local: test remote: test 200 EPRT command successful. Consider using EPSV. 150 Opening BINARY mode data connection for test (0 bytes). 226 Transfer complete.
到此这篇关于ftp服务器搭建-安装、配置及验证的文章就介绍到这了,更多相关ftp服务器搭建内容请搜索IT俱乐部以前的文章或继续浏览下面的相关文章希望大家以后多多支持IT俱乐部!
