kali2 ssh时间:2023-03-10 02:13:34 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 start4.验证SSH服务状态,命令为:/etc/init.d/ssh status .