kali2 ssh

vi /etc/ssh/sshd_config

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

2.将#PermitRootLogin without-passwd  的注释去掉 ,改为 PermitRootLogin yes

3.启动SSH服务,命令为:/etc/init.d/ssh start  // 或者service ssh start
4.验证SSH服务状态,命令为:/etc/init.d/ssh status

.

原文地址:https://www.cnblogs.com/outline/p/ssh.html