SSH连接Kali
1.配置静态IP地址和网关
root@wgxy:~# vim /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.112.200
netmask 255.255.255.0
gateway 192.168.112.2
2.配置DNS
root@wgxy:~#vim /etc/resolv.conf
nameserver 202.103.24.68
nameserver 8.8.8.8
3.重启网络服务
root@wgxy:~# systemctl restart networking
4.允许root用户登录sshd服务
root@wgxy:~# vim /etc/ssh/sshd_config
修改第32和37行
PermitRootLogin yes
PubkeyAuthentication yes
5.重启ssh服务
root@wgxy:~# /etc/init.d/ssh restart
6.配置sshd服务开机自动启动
root@wgxy:/etc/init.d# update-rc.d ssh enable
7.使用Xshell连接kali
root@wgxy:~# ifconfig #查看IP地址
Windows的Xshell中,新建连接,终端-VT模式:设置为普通
远程连接到kali
阿里源
#vim /etc/apt/sources.list
第7行
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
#apt update
#apt upgrade
安装VM-Tools实现物理机和kali间复制文件
#apt update
#apt install open-vm-tools-desktop fuse
重启生效
关闭自动锁屏功能

