Kali连接不上ssh

人盡茶涼 提交于 2019-12-03 23:14:18

**Kali连接不上ssh**

       1.修改sshd_ config文件
             vim /etc/ssh/sshd_ config
             将#PasswordAuthentication yes的注释去掉
             将#PermitRootL ogin prohibit-password的注释去掉,prohibit-password改为yes
             
     2.重启服务
                 service ssh restart
                 
      3.如果还不行,执行
                #ssh-keygen -t rsa -f /etc/ssh/ssh_ host _rsa_ _key
                  设置ssh开机自启
                  update-rc.d ssh enable //设置ssh开机自启
                  update-rc.d ssh disabled //设置关闭

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!