kali-国内源-更新系统
1.更换国内源
vim /etc/apt/sources.list
deb https://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb-src https://mirrors.aliyun.com/kali kali-rolling main non-free contrib
2.更新
apt update
apt upgrade:升级时,如果软件包有相依性的问题,此软件包就不会被升级。
apt dist-upgrade升级时,如果软件包有相依性问题,会移除旧版,直接安装新版本.
3.启用ssh
systemctl start ssh 启动服务
systemctl enable ssh 添加开机启动
4.开启root远程登陆
vim /etc/ssh/sshd_config
PermitRootLogin prohibit-password 改成PermitRootLogin yes
PubkeyAuthentication yes 前面#去掉 开启公钥登录也可以不开启
systemctl restart ssh (centos下叫sshd))(查看服务:ls /etc/init.d/)