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?

王林
Release: 2020-03-21 17:44:41
Original
6027 people have browsed it

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
Copy after login

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 #(永久关闭)
Copy after login

(Recommended tutorial: centos usage tutorial)

2. Check whether sshd is installed

rpm -qa |grep sshd
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template