Hello,
So I've been looking all over for help on this, but I can't figure it out. If anyone can provide any help that'd be great.
I've got two computers with RedHat on them. One computer (C1) is connected directly to the internet via ethernet. C1 is also connect via wireless to a LAN (192.168.1.10). Computer 2 (C2) is only connected via ethernet to the LAN (192.168.1.11). Both computers can ping each other.
My goal is to ssh from C2 to C1, but I am unable to and I get:
[root@localhost ~]# ssh 192.168.1.10 -v
OpenSSH_4.3p2, OpenSSL 0.9.8a 11 Oct 2005
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 192.168.1.10 [192.168.1.10] port 22.
debug1: connect to address 192.168.1.10 port 22: Connection refused
ssh: connect to host 192.168.1.10 port 22: Connection refused
Telnet does not work either.
HOWEVER:
-I can ssh into C1 through the internet via Putty on a windows box. And I'm currently remotely doing this, but I can get access to the actual box if needed.
-I can ssh from C1 into C2 normally. (just not the other way which is the problem)
-Also, within the LAN the computer C2 can ssh to other computers that have been set up and vice versa. And these other computers can ssh into C2 but just not C1.
-I have also set the iptables to accept all incoming and outgoing
"/sbin/iptables -P INPUT ACCEPT"
It is just this one computer C1 that is causing problems and I need to fix it.
Any help would be appreciated! Thanks a lot!