LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-03-2012, 09:06 PM   #1
Alexander11478
LQ Newbie
 
Registered: Feb 2012
Posts: 6

Rep: Reputation: Disabled
Question Cannot SSH via DNS from outside network


Hi everyone!

It's been a long while now since I've been out of the Linux world, and I'm very glad to be back

I have what I hope to be a rather simple problem. I have a box named xxx.no-ip.org running a fresh install of Slackware 64-bit V13.37 (no configurations of any sort have been made!)

I am able to SSH to the machine from another computer on the network via the machine's private IP addres and log in successfully.

When I try to SSH to the machine from via it's FQDN (ie. xxx.no-ip.org), however, I get halfway there; I am able to reach the login screen and enter my username nad password, but I am unable to login. Running ssh with the -vvv option reveals that there is no response from the box (no rejection or anything); instead, it the connection is closed by the box after several seconds of waiting.

Anyone have any suggestions on how to fix this? I would greatly appreciate the assistance!

Other notes:
- I enabled port forwarding on my router: all TCP 22 packets go towards the box
- I am using the free Dynamic DNS service provided by no-ip.org; I already installed their client to automatically update my IP address and it appears to be working correctly since I can reach the ssh login of the machine; it's just not replying to my request to login.

Thanks again!
 
Old 02-03-2012, 09:28 PM   #2
WarTurkey
Member
 
Registered: Jun 2009
Posts: 67

Rep: Reputation: 16
Hmm... Just for safe measure, does it work when you access the box using its WAN IP? I'm wondering if there's a config telling it not to accept connections from the Internet, and only work on your local net. Not sure though...
 
Old 02-03-2012, 09:48 PM   #3
Alexander11478
LQ Newbie
 
Registered: Feb 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
That is an excellent point! So here is the update:

IP assigned to router: 10.0.2.xxx (yes, I know this is a private address) - works

IP identified via no-ip.org: 96.47.145.xxx - does NOTwork

Note: xxx.no-ip.org resolves to 96.47.145.xxx; specifically, I CAN connect but I receive no reply upon my attempt to login after submitting my password.

Last edited by Alexander11478; 02-03-2012 at 10:20 PM.
 
Old 02-04-2012, 01:09 AM   #4
Alexander11478
LQ Newbie
 
Registered: Feb 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
To be clear - this does not solve my problem since I want to access my machine via SSH externally. Anyone have any idea why I might be able to reach the login using either the external FQDN/IP address, but still not receive a response after I send my password packet?
 
Old 02-04-2012, 03:17 AM   #5
rodrifra
Member
 
Registered: Mar 2007
Location: Spain
Distribution: Debian
Posts: 202

Rep: Reputation: 36
Check your ssh server logs, check your sshd_config file.
Since you have a longin, it doesn't seem to be a communication (fw, pf, routing...) problem. It seems to be a configuration problem to me.
 
Old 02-04-2012, 10:44 PM   #6
Alexander11478
LQ Newbie
 
Registered: Feb 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
I wish I knew what I was looking for. I've never set up sshd before, and I'm out of touch with all the layers of communication and authentication ssh has to go through before connecting. If someone could point me to specific options to play with, it would be most greatly appreciated. The options I have are all defaults for sshd. Again, I can connect from within the network, but do not get past the log-in screen when I try to connect using the public IP (I verified that my router wasn't blocking the service)
 
  


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
ssh, kerberos and DNS Felipe Linux - Server 2 04-18-2011 02:56 PM
sudden loss of ability to access network (can ssh in but not ssh out) lenafabr Red Hat 5 10-31-2008 08:33 AM
NX Server using SSH needs DNS L_RON Linux - Server 3 07-21-2008 07:23 AM
SSH - How can i alllow someone SSH to my network from Internet - please help me b:z Linux - Networking 4 04-05-2005 07:21 AM
ssh/DNS - what happened? synaptical Linux - Networking 4 11-23-2003 12:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:56 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