LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   ssh issue; connect attempts time out; can't ping (https://www.linuxquestions.org/questions/linux-networking-3/ssh-issue%3B-connect-attempts-time-out%3B-cant-ping-744820/)

JasonC10203 08-03-2009 01:13 PM

ssh issue; connect attempts time out; can't ping
 
Hi,

I wasn't really sure what to even search for on this problem.

I have my router set up to forward port 22 to my computer at home. When I try to SSH into my computer via PuTTY or anything else, the attempt times out. I can neither ping the external address or the domain name I have through www.no-ip.com.

There are two computers on my home network. I only have the router set up to forward to one of them though.

I am able to successfully SSH into my computer both from itself and from the other computer on the network.

I can't think of what else would be causing the problem. Any help or insight would be greatly appreciated.

Jason

Igby 08-03-2009 02:05 PM

Hi,

The computer you are trying to ssh into , should have the default gateway of the router.

Do you have a firewall enabled on the pc your ssh'ing from ?.
If so try disabling it.

When i have problems with routers, i usually make use of http://hexillion.com/co/. Try to ping the public ip address from there.

Also make sure the router doesn't have a firewall enabled, some routers deny icmp packets, which is used by ping. Sometimes you have to manually allow ssh connections into your network on the router.

What kind of router do you have ?
Try telnetting into port 22 from your pc.
telnet publicip 22

Hope this helps :-)

JasonC10203 08-03-2009 03:23 PM

The computer I am trying to ssh into has the default gateway of the router.

I am pretty sure I have a firewwall enabled on the pc I'm ssh'ing from, however, that does not stop me from ssh'ing into friends' networks or university computers.

The link you provided, Igby, didn't work for me. They all timed out.

My router does not have a firewall. It is a Linksys.

jschiwal 08-04-2009 11:27 AM

You may have icmp echo disabled on your router.
You can test the connection using the telnet client:
telnet <your_public_ip_address> 22

You could also try "traceroute <your_public_ip_address>/22" to see if you are even reaching your router.


All times are GMT -5. The time now is 06:51 PM.