The solution is as follows:
1. Check whether the firewall is turned off
service iptables status
You can temporarily turn off the firewall through the following command, or you can turn off the firewall permanently.
/etc/init.d/iptables stop service iptables stop chkconfig iptables off #(永久关闭)
(Recommended tutorial:centos usage tutorial)
2. Check whether sshd is installed
rpm -qa |grep sshd
View Whether to run
#If sshd is not installed, use the following command to install it.
yum install openssh-server
Related video tutorial recommendations:linux video tutorial
The above is the detailed content of What should I do if the centos system cannot connect remotely?. For more information, please follow other related articles on the PHP Chinese website!