如没安装ssh,输入命令安装:apt-get install openssh-server
然后打开ssh服务,
1:修改sshd_config文件,命令为:vi /etc/ssh/sshd_config
2:将#PasswordAuthentication no的注释去掉,并且将NO修改为YES
3:将#PermitRootLogin yes的注释去掉
4:验证SSH服务状态,命令为:/etc/init.d/sshd status
5:重新启动SSH服务,命令为:/etc/init.d/sshd restart
开机自动启动ssh命令输入:update-rc.d ssh enable
kali静态IP
/etc/network 下:interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.111
netmask 255.255.255.0
gateway 192.168.1.1
vi /etc/resolv.conf
在之前的步骤完成后保存,然后在终端里边重启网络,命令如下:/etc/init.d/networking restart