In vim /etc/sysconfig/network-scripts/ifcfg-eth0, the network card is self-starting after booting, but after restarting, the network card still does not start and needs to be used service network restart
to take effect.
You cannot use ssh to connect to the server without starting the network card.
In order to solve this problem, you can execute the following command:
systemctl enable network
/sbin/chkconfig network on
Use the following command to check whether sshd is started
systemctl start sshd
systemctl status sshd