飚尘叔叔

博客园 首页 联系 订阅 管理

**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 //设置关闭

posted on 2019-11-07 11:20  飚尘叔叔  阅读(629)  评论(0编辑  收藏  举报