Home >Operation and Maintenance >CentOS >How to solve the problem that xshell cannot connect to centos

How to solve the problem that xshell cannot connect to centos

WJ
WJOriginal
2020-06-05 15:57:554375browse

How to solve the problem that xshell cannot connect to centos

How to solve the problem that xshell cannot connect to centos?

1. Check whether they are on the same network segment

2. Check whether port 22 of shh is open

vim /etc/ssh/sshd_config

How to solve the problem that xshell cannot connect to centos

Save After exiting, restart the ssh service

service sshd restart

3. Turn off the firewall

service iptables stop

3. If you log in as the root user and do not set a password, set a password

passwd

Related references: centOS tutorial



The above is the detailed content of How to solve the problem that xshell cannot connect to centos. 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