Hello, I have 2 servers; Server A and Server B. On both Centos 6.7 is installed. When I try to connect Server B from Server A its timeout. [root@s843 ~]# ssh ssh: connect to host xx.xx.xx.xx port 22: Connection timed out [root@s843 ~]# Is there any one that have solution from this. Looking forward for reply. Thank You.
Depends. How are these set up? Can you reach server A from server B? Can you reach server B from your home computer via SSH? Are they on the same network? There might be an issue connecting within the same network, but since you say nothing about how they're set up, it's hard to say.
They are on different networks. But both are online. I am unable to reach from Server A to Server B via SSH.
Yes, you said so - what I was wondering was are you able to reach server B from another computer (NOT server A)? Given that they are on different networks, it shouldn't be anything like a redirect loop / NAT loop, so that should be out of the question. I'm assuming you're already connecting to server A via SSH from your home computer?
I would recommend: Checking/disabling firewalls on both machines to see if that is the issue. The SSH port is often blocked as an outbound connection. Server A may be blocked from connecting to server B by an iptables rule. Ensure that SSH is listening on port 22 on server B. As stated already (PoPSiCLe), can you connect to server B from a different location, for example your home? Chris
It sounds like it's being refused because ssh is listening on a different port for ssh. Try putting ssh -P number name@ip to login.