一.修改ip及dns
1.1 修改网卡配置文件
vi /etc/network/interfaces
auto eth0
iface eth0 inet static
address 172.16.1.88
netmask 255.255.255.0
gateway 172.16.1.1
1.2 修改dns
vi /etc/resolv.conf
nameserver 114.114.114.114
1.3 重启网络服务,使配置生效
systemctl restart networking
二.开启ssh远程
2.1 修改ssh配置文件
vi /etc/ssh/sshd_config
PermitRootLogin yes
PasswordAuthentication yes
2.2 重启ssh服务,使配置生效
systemctl restart ssh
三.修改安装源
vi /etc/apt/sources.list
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