如果你的kali没有安装ssh,可以运行如下命令,安装ssh:
sudo apt-get install ssh
ssh的启动和重启:
/etc/init.d/ssh restart
/etc/init.d/ssh start
查看服务状态:
etc/init.d/ssh status
设置可通过root完成ssh连接:
在配置文件/etc/ssh/sshd_config中添加如下内容:
#PermitRootLogin prohibit-password
PermitRootLogin yes
#PasswordAuthentication yes
PasswordAuthentication yes