LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
 
LinkBack Search this Thread
Old 11-08-2012, 10:28 AM   #1
onyxbird
Member
 
Registered: Aug 2004
Location: The Silicon Forrest
Distribution: slackware
Posts: 35

Rep: Reputation: 15
Can't reach my linux box at home using SSH


I have a slackware box version 13.0.0.0.0 at home which I cannot connect to anymore I used to be able to do this remotely from anywhere using my internet IP address, but now SSH just dies. However, on my local network it runs fine, I'm mostly connecting using secure shell on various windows machines (XP, 7) & Mac OSX 10.6 using the terminal. My ISP is frontier fios they didn't block port 22 before, but just encase I tried changing ports and still it drops unless I try https port (443) it thinks about it a bit then just hangs.... Any ideas anyone?

thanks in advance,
 
Old 11-08-2012, 10:46 AM   #2
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,737

Rep: Reputation: 184Reputation: 184
Quote:
However, on my local network it runs fine
Firewall in the way? Configure it.
Do you have a router in between your box and the internet that is doing NAT? Forward the port to the box.
Do you have a dynamic IP and the IP has changed?
Is sshd running on the Slack box? ps ax | grep sshd

What changed from the time you could until now?
 
Old 11-08-2012, 12:05 PM   #3
manyrootsofallevil
Member
 
Registered: Dec 2010
Distribution: Red Hat, Kubuntu
Posts: 130

Rep: Reputation: 14
Quote:
Originally Posted by teckk View Post
Firewall in the way? Configure it.
Do you have a router in between your box and the internet that is doing NAT? Forward the port to the box.
Do you have a dynamic IP and the IP has changed?
Is sshd running on the Slack box? ps ax | grep sshd

What changed from the time you could until now?
I suspect that your problem is IP address has changed. Mine is supposed to be dynamic, but I've had the same ip for the past year and half.

Is there anything in the sshd logs (from your remote attempts, of course ) ?
 
1 members found this post helpful.
Old 11-09-2012, 03:28 AM   #4
onyxbird
Member
 
Registered: Aug 2004
Location: The Silicon Forrest
Distribution: slackware
Posts: 35

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by teckk View Post
Firewall in the way? Configure it.
Do you have a router in between your box and the internet that is doing NAT? Forward the port to the box.
Do you have a dynamic IP and the IP has changed?
Is sshd running on the Slack box? ps ax | grep sshd

What changed from the time you could until now?
Yes, I do have a router in between the slack box & the internet. I do have the port forwarded (22) to the ip address of the slackbox on the router. I have also tried several other custom ports also such as forwarding port 36665 -> 22 just to see if my ISP was blocking port 22, but that didn't work. I have checked the internet address of the router, and it is the correct one I'm using, and I have checked to make sure that the dynamic ip address of the slackbox is correct to and it is... From when it used to work until now nothing has changed, and I have changed nothing. Lastly yes the sshd daemon is running I checked it with ps -A & I can also ssh to my slackbox when I'm in my own LAN of course..... remote access not working....

Last edited by onyxbird; 11-09-2012 at 03:33 AM.
 
Old 11-09-2012, 03:31 AM   #5
onyxbird
Member
 
Registered: Aug 2004
Location: The Silicon Forrest
Distribution: slackware
Posts: 35

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by manyrootsofallevil View Post
I suspect that your problem is IP address has changed. Mine is supposed to be dynamic, but I've had the same ip for the past year and half.

Is there anything in the sshd logs (from your remote attempts, of course ) ?
Checked the ip addresses they are the same they have not changed, and my router configuration is still correctly pointed to the slack box. I haven't tried looking at the ssh logs I will check that out when I get home in the mornin after werk.
 
Old 11-12-2012, 12:43 AM   #6
onyxbird
Member
 
Registered: Aug 2004
Location: The Silicon Forrest
Distribution: slackware
Posts: 35

Original Poster
Rep: Reputation: 15
Still no use any other ideas?
 
Old 11-12-2012, 01:18 AM   #7
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,512
Blog Entries: 27

Rep: Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174
You could use a packet tracing software such as tcpdump on your Slackware box to see to see if the packets are reaching it. If so, the router's OK and the problem is with the Slackware box. If not, the problem is with the router EDIT: or the packets are not reaching your router.

Last edited by catkin; 11-12-2012 at 01:20 AM.
 
Old 11-12-2012, 07:20 PM   #8
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,284

Rep: Reputation: 394Reputation: 394Reputation: 394Reputation: 394
you could also run nmap -p22 <WAN_IP> to see if port 22 is open.

the output will look something like this:

Code:
$ nmap -p22 sisconsulting.biz

Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2012-11-12 20:18 EST
Interesting ports on rrcs-71-43-246-158.se.biz.rr.com (71.43.246.158):
PORT    STATE SERVICE
22/tcp open  ssh

Nmap finished: 1 IP address (1 host up) scanned in 0.163 seconds
It will either state open, or filtered. If filtered, then your ISP is blocking port 22.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] SSH from the Internet to my Centos Linux box at home behind the router rewards Linux - Networking 9 05-13-2011 04:58 AM
SSH to debian box doesn't transmit ins, home, page up etc... deej_1977 Debian 6 09-20-2006 04:55 AM
Understanding SSH (Sun box to Linux box) oswald21 Linux - Newbie 2 07-08-2006 02:06 PM
ssh to box at home z3nith Linux - Networking 3 09-13-2005 11:22 PM
cannot ssh to home linux box from work gene_albin Linux - Networking 4 11-20-2004 07:26 AM


All times are GMT -5. The time now is 03:26 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration