Centos boot automatically starts the SSHD service command

  

First check if the centos service is enabled.

# chkconfig –list | Grep sshd

After entering this command, the terminal window displays the following

sshd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
< Then, we add sshd to start the command with the system

# chkconfig –level 5 sshd on

Copyright © Windows knowledge All Rights Reserved