标签:apt access sources htm lis 清华 logs code list
https://www.cnblogs.com/Hi-blog/p/5958252.html#_label02
vim /etc/apt/sources.list
#中科大 deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib deb-src http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib #阿里云 deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib #清华大学 deb http://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free deb-src https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free #浙大 deb http://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free deb-src http://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free #东软大学 deb http://mirrors.neusoft.edu.cn/kali kali-rolling/main non-free contrib deb-src http://mirrors.neusoft.edu.cn/kali kali-rolling/main non-free contrib #官方源 deb http://http.kali.org/kali kali-rolling main non-free contrib deb-src http://http.kali.org/kali kali-rolling main non-free contrib
apt-get update && apt-get upgrade
apt-get install vsftpd
创建用于上传下载的目录:
mkdir /home/uftp
chmod 777 /home/uftp/
useradd -d /home/uftp/ -s /bin/bash uftp
passwd uftp
vim /etc/vsftpd.conf
在文件开头添加以下内容
userlist_deny=no userlist_enable=yes userlist_file=/etc/allowed_users #允许登录的用户 seccomp_sandbox=no
取消下面的注释:
write_enable=YES #取消注释,使其生效,不然无法写入文件
vim /etc/allowed_users
uftp
# /etc/ftpusers: list of users disallowed FTP access. See ftpusers(5). root daemon bin sys
ftp ip-address
输入用户名和密码
put #发送文件
local-file: path
remote-file: path
get #接收文件
local-file: path
remote-file: path
标签:apt access sources htm lis 清华 logs code list
原文地址:https://www.cnblogs.com/linuxws/p/11032849.html