How to solve the problem that xshell cannot connect to centos

WJ
Release: 2020-06-05 15:57:55
Original
4185 people have browsed it

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

How to solve the problem that xshell cannot connect to centos

Save After exiting, restart the ssh service

service sshd restart
Copy after login

3. Turn off the firewall

service iptables stop
Copy after login

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

passwd
Copy after login

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!

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!