kali linux 开启ssh服务

kali linux 一般默认不开启ssh服务,可使用命令查看ssh服务是否开启
  命令:service ssh status

  

如果显示ssh服务没有开启需要修改ssh配置文件将ssh服务开启,kali linux开启ssh服务需要修改2个配置文件ssh_config和sshd_config这两个配置文件在 /etc/ssh/ 目录下

  ssh_config需要将PasswordAuthentication yes如果没有PasswordAuthentication yes则在下面添加一个,如果不是yes 改为yes

  

  sshd_config配置文件将PermitRootLogin 注释放开,并且修改为yes,如果没有则在最下面添加

   

  启动或重启ssh复位

    启动命令:service ssh start  

    重启命令:service ssh restart

  查看ssh状态

    命令:service ssh status

  

原文地址:https://www.cnblogs.com/wangjinyu/p/12212536.html