解决Xshell连接不上kali
xshell连接kali
连接不上可能是ssh没有开启
systemctl status ssh
systemctl start ssh
systemctl enable ssh update-rc.d ssh enable 开机自启动
修改ssh配置文件vim /etc/ssh/ssh_config
取消passwordauthentication前注释 yes
密码拒绝登陆解决:vim /etc/ssh/sshd_config
systemctl restart ssh