kali ssh服务连接问题,无法远程管理


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


2、将#PasswordAuthentication no的注释去掉,并且将NO修改为YES

3、将#PermitRootLogin yes的注释去掉

4、启动SSH服务,命令为:/etc/init.d/ssh start // 或者
service ssh start


5、验证SSH服务状态,命令为:/etc/init.d/ssh status

使用SSH登录工具(PuttySecureCRTXShell)登录kali

成功!
-----------------------------------------------------------------------
***********************************************************************
-----------------------------------------------------------------------
如果不成功, 开始下面的分配密钥:

输入用户名、密码后,如果使用SSH连接工具还是连不上kali 2.0

那么要先生成两个密钥:

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

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

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

原文地址:https://www.cnblogs.com/chenglee/p/7161553.html