ftp服务器vsftpd
ftp : 上传下载功能
优点 :交互式 传输稳定 19,20,21端口 区别用户
vsftpd
安装 apt-get install vsftpd
配置文件 /etc/vsftpd.conf
命令 sudo service vsftpd start/stop/restart
常见配置
anonymous_enable 匿名用户登录
anon_upload_enable
anon_mkdir_write_enable 建立目录
anon_root=/home/ 设定匿名用户家目录
anon_umask
local_enable
write_enable
chroot_local_user 限制宿主文件夹
chroot_list_enable chroot_list_file= 指定限制用户的列表
local_umask
message_file=.message 设定每个目录的提示信息,写在目录下的.message里
ftpd_banner
更多参见:man vsftpd.conf
浏览器登入:ftp://115.156.228.12
终端登录ftp:
ftp localhost 或者 ftp 115.156.228.12
常用命令 ftp>? bye chmod delete ls pwd rename size rmdir mkdir
这里面的命令比较有限,有点意思,可以实现一些简单的操作,如删除,查看,新建
get temp /home/xing/Music/test 下载
Stay hungry
Stay foolish