主机SSH连接Kali虚拟机

1、首先修改一下网络配置


修改虚拟机的连接方式为桥接

主机SSH连接Kali虚拟机_第1张图片



运行:leafpad /etc/network/interfaces

修改文件为:

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp

#iface eth0 inet static
#address 192.168.1.200
#netmask 255.255.255.0
#gateway 192.168.1.1
waddress ether 00:50:56:23:6E:40(虚拟机的MAC地址,不同虚拟机不一样)



2、打开虚拟机的ssh服务

 打开:

/etc/init.d/ssh start


查看状态:
/etc/init.d/ssh status

sshd is running表示开启



3、主机利用SSH工具进行连接

主机SSH连接Kali虚拟机_第2张图片


你可能感兴趣的:(主机SSH连接Kali虚拟机)