Debian enables SSH to start automatically after booting

Starting from Debian 8.0, SSH is turned off by default. The way to open is as follows:

1. Modify the sshd_config file, the command is: nano /etc/ssh/sshd_config 

2. Remove the comment of #PasswordAuthentication no and change NO to YES //The default in my kali is yes, password verification

3. Change #PermitRootLogin yes The comment is removed // The comment is removed by default in my kali, allowing root to log in

4. Start the SSH service, the command is: /etc/init.d/ssh start // or service ssh start

5. Verify the SSH service status, the command is :/Etc/init.d/ssh status

6. Add auto-start at boot update-rc.d ssh enable

Turn off:

update-rc.d ssh disabled

Self-starting needs to restart to take effect

Guess you like

Origin blog.csdn.net/hailangnet/article/details/79327132