今天在手机端装了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


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

相关文章:

  • 2021-11-23
  • 2021-11-23
  • 2021-05-06
  • 2021-12-07
  • 2022-12-23
  • 2021-09-21
  • 2021-07-24
  • 2021-06-19
猜你喜欢
  • 2022-12-23
  • 2021-05-15
  • 2021-11-24
  • 2022-12-23
  • 2022-01-05
  • 2022-12-23
相关资源
相似解决方案