ssh 不能连接linux系统 Could not connect to '192.168.X.X'(port 22) Connection failed
2017-02-22 19:37
921 查看
centOS7配置好IP地址后,发现可以ping通,但是不能ssh远程连接
解决办法:
查看防火墙:service iptables status
关闭防火墙:service iptables stop
打开防火墙:service iptables start
发现不是防火墙的原因。
最后原因是没有使能ssh服务。
解决办法:运行 /etc/init.d/sshd restart
解决办法:
查看防火墙:service iptables status
关闭防火墙:service iptables stop
打开防火墙:service iptables start
发现不是防火墙的原因。
最后原因是没有使能ssh服务。
解决办法:运行 /etc/init.d/sshd restart
相关文章推荐
- XShell连接不了虚拟机linux Could not connect to '127.0.0.1' (port 22): Connection failed.
- git clone时出现ssh: connect to host github.com port 22: Connection timed out fatal: Could not read from
- ssh: connect to host 192.168.1.127 port 22: Operation timed out fatal: Could not read from remote re
- XShell连接不了(ubunt14.04)虚拟机Could not connect to ‘192.168.1.105’ (port 22): Connection failed
- Ubuntu下安装OpenSSH Server使之可以被远程连接 ssh: connect to host 192.168.XX.XX port 22: Connection refused
- Xshell远程连接Linux服务器出错——Could not connect to '114.214.166.5' (port 22): Connection failed.
- 用xshell 连接服务器提示:Could not connect to '192.168.0.104' (port 22): Connection failed.
- SSH连接GitHub提示ssh: connect to host github.com port 22: Bad file number
- Xshell链接错误:Could notconnect to '192.168.18.128' (port 22): Connection failed.
- Xshell 连接本地的Linux 系统,提示:Could not connect to '192.168.182.128' (port 23): Connection failed
- 2.git 连接报"ssh: connect to host github.com port 22: Connection timed out"错误
- github连接报"ssh: connect to host github.com port 22: Connection timed out"错误
- Connecting to 192.16.0.128:22... Could not connect to '192.16.0.128' (port 22): Connection failed.
- SSH连接GitHub出现 ssh: connect to host github.com port 22: Connection refused解决方法
- Could not connect to '192.168.80.145' (port 22): Connection failed的解决办法(远程连不上xshell)
- xshell为什么连接不上ubuntu---ould not connect to 'ip' (port 22): Connection failed.
- Could not connect to '10.7.100.182' (port 22): Connection failed
- mac 配置 ssh 到git (Could not resolve hostname github.com, Failed to connect to github.com port 443 Operation timed out)
- PHPMailer不能连接SMTP服务器的两种常见原因(Could not connect to SMTP host)
- Could not connect to '127.0.0.1' (port 22): Connection failed.