修改文件
vi /etc/ssh/sshd_config
#PasswordAuthentication no的注释#去掉,并且将NO修改为YES //kali中默认是yes
#PermitRootLogin prohibit-password下边增加一行
PermitRootLogin yes
启动 ssh
/etc/init.d/ssh start
vi /etc/ssh/sshd_config
#PasswordAuthentication no的注释#去掉,并且将NO修改为YES //kali中默认是yes
#PermitRootLogin prohibit-password下边增加一行
PermitRootLogin yes
/etc/init.d/ssh start