首页 > 系统服务 > 详细

解决kali linux 开启ssh服务后连接不上的问题

时间:2017-10-24 22:00:13      阅读:960      评论:0      收藏:0      [点我收藏+]

今天在手机端装了NetHunter 想连接PC的kali ,可是怎么都连不上

综合网友的经验:

1.修改sshd_config文件,命令为:vi /etc/ssh/sshd_config

   将#PasswordAuthentication no的注释去掉,并且将no修改为yes

   将#PermitRootLogin prohibit-password的注释去掉 ,prohibit-password 改为yes

2.重启服务

  service ssh restart


再次连接OK

据说如果还不行,可以尝试:(未经测试)

#ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key

 

#ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key


执行命令后都会让输入密码,直接敲回车设置为空即可

解决kali linux 开启ssh服务后连接不上的问题

原文:http://www.cnblogs.com/lanqie/p/7725864.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!