LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-03-2009, 01:13 PM   #1
JasonC10203
Member
 
Registered: Sep 2007
Distribution: GRML 1.1
Posts: 59

Rep: Reputation: 15
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
 
Old 08-03-2009, 02:05 PM   #2
Igby
LQ Newbie
 
Registered: May 2009
Posts: 13

Rep: Reputation: 0
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 :-)
 
Old 08-03-2009, 03:23 PM   #3
JasonC10203
Member
 
Registered: Sep 2007
Distribution: GRML 1.1
Posts: 59

Original Poster
Rep: Reputation: 15
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.
 
Old 08-04-2009, 11:27 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Ping Issue - Can't ping localhost but can ping others on LAN code_slinger Linux - Networking 15 03-30-2015 02:39 PM
Can ping but not connect with ssh HeyAZ Linux - Networking 4 12-17-2006 09:55 PM
eth0 can't get IP with DHCP, static config. attempts can't ping pdt677 Linux - Networking 6 03-06-2005 09:53 PM
SSH takes a long time (2 minutes) to connect jinju Linux - Newbie 5 07-31-2004 10:37 PM
ssh issue: cannot connect to x server jgruss Linux - Software 3 07-14-2004 09:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration