1
well I have been following every rule out there on Forwarding.
I currently have 2 computers, lets call it Computer DOG and Computer CAT.
I can ssh into DOG from outside my network perfectly. I went on my router and added a new service to forward to 192.168.1.10 using port 22. So I am able to ssh using my public IP address from outside the network for dog. as ssh DOG@xxx.xxx.xx.xx -l dog.
now for Cat, since port 22 is used up, I am trying to open port 2222. So, when I try to ssh cat@xxx.xxx.xx.xx -p 2222 I get connection timed out or connection refused. I also edited my /etc/ssh/sshd_conf file and added Port 2222 on it. On my router, I also added 192.168.1.7, which is cat add added port 2222. Funny thing is, I can SSH CAT within the network normal by typing "ssh cat@192.168.1.7" and goes right in, in my local network.
is there a firewall for ubuntu that I need to change or soemthing? Or something with my MODEM? or what is it that I am doing wrong?
Ok this makes a little sense now. So, I am not even supposed to touch my CAT configuration? I just have to add 2222, to my router start and end ports? How do I exactly tell my router to take in requests from 2222? – user2805313 – 2014-08-15T11:46:22.453
@user2805313 I added a lot to the answer via edit. that should answer your questions. I'm not sure what you mean with the last question, but if it means port 2222 is normally closed, how do I open it? The answer to that is setting port forwarding will open port 2222. – Tyson – 2014-08-15T14:50:06.610