Xshell远程连接Linux服务器出错

Xshell远程访问服务器出错:Could not connect to '192.168.***.***' (port 22): Connection failed.

主要问题可能为两个:(1)sshd服务器没有启动;(2)防火墙问题

步骤一:启动sshd服务器

/etc/init.d/sshd start

步骤二:关闭防火墙

/etc/init.d/iptables stop

猜你喜欢

转载自www.cnblogs.com/yanghaotai/p/9078232.html