Home >Operation and Maintenance >CentOS >What should I do if the centos system cannot connect remotely?

What should I do if the centos system cannot connect remotely?

王林
王林Original
2020-03-21 17:44:416028browse

What should I do if the centos system cannot connect remotely?

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

What should I do if the centos system cannot connect remotely?

View Whether to run

What should I do if the centos system cannot connect remotely?

#If sshd is not installed, use the following command to install it.

yum install openssh-server

What should I do if the centos system cannot connect remotely?

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn