LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-24-2012, 03:06 PM   #1
bucovaina78
Member
 
Registered: Oct 2004
Location: Belgium / Antwerp
Distribution: Debian
Posts: 287

Rep: Reputation: 33
ssh login doesn't work with domain forward


Hi all,

I've got a domain name registered. In the control panel I've set the domain to forward to my personal IP address.

So I login from another location with the domain name and I get a message to trust the server (yes or no) which is normal and I get a password prompt so somehow it works. When I input the password I get:

Code:
Permission denied, please try again.
and then I can try again.

If I do exactly the same login attempt from the same host but instead of the domain I use the exact IP address everything works well.

How could that be?

Thanks
 
Old 01-24-2012, 03:33 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,333

Rep: Reputation: Disabled
You should definitely check that the name resolves to the correct IP address from this other location (nslookup/ping/host/whatever).
 
Old 01-24-2012, 04:08 PM   #3
bucovaina78
Member
 
Registered: Oct 2004
Location: Belgium / Antwerp
Distribution: Debian
Posts: 287

Original Poster
Rep: Reputation: 33
Aha, that's probably the problem. It resolves to a different address ... ? How's that possible? Could it be that it resolves to the IP address of the company that hosts my website (and redirection service) ?
 
Old 01-24-2012, 04:15 PM   #4
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,333

Rep: Reputation: Disabled
If the hosting company is doing http redirects for your domain name, then yes, your domain name resolvs to their server. There's no such thing as redirects for SSH.

If on the other hand the DNS A record for your domain points to your private IP address, it should work regardless of service.
 
Old 01-28-2012, 10:04 AM   #5
catworld
Member
 
Registered: Nov 2004
Location: Horseheads, New York
Distribution: Mandriva 2010.1 / KDE 4.5.2, Slax, Knoppix, Backtrack & etc...
Posts: 198

Rep: Reputation: 36
Ask the hosting service if they can also forward the ssh port to your server. If they can, it wouldn't matter what IP the domain resolves to. BTW you might want to move the ssh port to something unused outside of the privileged ports. (0-1023) I use ports up around 8000 for shh, the service will announce itself if all ports are scanned, but a lot of the script-kiddie junk only polls known ports for services. (21,22,53,80 etc etc)
 
  


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
[SOLVED] ssh public key login doesn't work as root user confconf Fedora 6 04-06-2011 03:08 PM
Domain combobox doesn't appear on KDE login screen Maaras SUSE / openSUSE 0 03-18-2009 03:13 PM
likewise-open joins domain but doesn't allow to login stioanid Linux - Software 2 12-23-2008 05:39 AM
'login' doesn't work, 'su' doesn't work, can't login as root antiqui.populi Linux - Security 3 10-20-2006 04:32 PM
Domain Name doesn't work GameboyHippo Linux - Networking 9 02-04-2004 08:34 AM

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

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