将PermitRootLogin without-password修改为:PermitRootLogin yes
找到#PasswordAuthentication yes 把#的注释去掉
启动ssh服务:/etc/init.d/ssh start
设置开机启动:update-rc.d ssh enable
然后重启kali,用xshell连接。

将PermitRootLogin without-password修改为:PermitRootLogin yes
找到#PasswordAuthentication yes 把#的注释去掉
启动ssh服务:/etc/init.d/ssh start
设置开机启动:update-rc.d ssh enable
然后重启kali,用xshell连接。