Kali starts SSH service and resolves error reports
1. Open the SSH configuration file (remember sudo)
sudo vim /etc/ssh/sshd_config
2. #permitrotlogin is changed to
PermitRootLogin yes
That is, remove #, and change the proposal password to yes
3. #passwordauthentication line to
PasswordAuthentication yes
4. Enter after saving and exiting
sudo /usr/sbin/sshd
Errors may be encountered
Missing privilege separation directory: /run/sshd
Solution:
sudo mkdir /run/sshd