添加国内更新源
1.切换到root用户
su
2.判断kali版本
lsb_release -a
3.添加更新源
leafpad /etc/apt/sources.list
复制下面的更新源,保存文档。
kali-rolling版本 (Kali 2.0 Kali2017)更新源
#中科大
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.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
#官方源
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
4.更新:系统 工具
apt-get clean
apt-get update && apt-get upgrade && apt-get dist-upgrade
#linux内核更新
apt-get install linux-headers-$(uname -r)
配置并开启sshd - 修改sshd配置文件
vi /etc/ssh/sshd_config
1.增加一行PermitRootLogin yes
2.将#PasswordAuthentication no
改为PasswordAuthentication yes
按esc 输入:wq!
保存文件。
/etc/init.d/ssh start #启动sshd
/etc/init.d/ssh status #查看SSH服务状态是否正常运行
在其他机器ssh连接即可