root@kali:~# vi /etc/ssh/sshd_config
/Password
#PasswordAuthentication yes
将#去掉,为
PasswordAuthentication yes
/Permit
#PermitRootLogin yes
将#去掉,为
PermitRootLogin yes
:wq
root@kali:~# service ssh restart
转载于:https://my.oschina.net/hellopasswd/blog/1836818