2
I have multiple servers in my LAN (which I'll refer to as Box1), and they are all able to make outgoing SSH connections, except one that stopped recently, which I'll refer to as Box2 (actually, I'm not 100% sure it ever worked, but I think I would have run into this before now if it didn't). They are all running Centos 6.3, with openssh on non-standard ports. Box2 is the entry point for the LAN from the outside world, and I am able to successfully ssh to it, so I know the port isn't blocked. Port forwarding works for either the non-standard port or 22, both forward to Box2. Box2 can ssh into Box1, but for every attempt to ssh to the outside world, I get 'connection refused', which makes me think firewall or something?
I'll try to attempt a summary here:
cloud->box2: works
box1->box2: works
box2->box1: works
box2->box2: works
box1->cloud: works
box2(ftp/ping/etc)->cloud: works
box2(ssh)->cloud: "connection refused"
I think I successfully disabled iptables and selinux. What else should I check?
ssh home
,ssh <ip-address>
,ssh user@<ip-address>
,ssh -XC user@<ip-address>
, etc, they all have the same result – rwilson04 – 2014-06-24T16:10:25.340If you can access the machine named as Cloud, try opening the file ~/.ssh/known_hosts and delete the entry with the corresponding IP of machine 2. – Batibot323 – 2014-06-25T04:16:45.550
yes, even completely cleared known_hosts – rwilson04 – 2014-06-26T20:57:02.873