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?
1. Check whether they are on the same network segment
2. Check whether port 22 of shh is open
vim /etc/ssh/sshd_config
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!