root @ kali:~ # leaf pad/etc/ssh/sshd _ config
2.刪除#哈希標記PasswordAuthentication yes;
3.刪除#PermitRootLogin並將其更改為yes;
4.檢查SSH服務狀態:
root @ kali:~ # service ssh start root @ kali:~ #/etc/init . d/ssh stats
5、開機重啟:
root @ kali:~ # update-RC . d ssh defaults root @ kali:~ # update-RC . d ssh enable
6.重新啟動SSH服務:
root@kali:~# reboot
7.打開SSH協議服務:
root@kali:~#服務ssh啟動