LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-11-2006, 01:15 PM   #1
bmccorm2
Member
 
Registered: Oct 2005
Distribution: Mandriva 2006
Posts: 67

Rep: Reputation: 15
Problems remotely logging into local machine


I am running Mandrake 2006 and am trying to log into my local machine from a remote location. From what I have read, all I need is my login name (easy) and my DNS server. From there, I can just say

Code:
ssh login@domain
Where can I find my DNS server?

Thanks for any help
 
Old 02-11-2006, 02:17 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
It's not your DNS server you need, it's your domain name, e.g. hostname.domain.com. If you don't have a domain name registered and delegate to someone, you can use your IP address - ssh login@203.205.69.11
 
Old 02-20-2006, 01:06 AM   #3
bmccorm2
Member
 
Registered: Oct 2005
Distribution: Mandriva 2006
Posts: 67

Original Poster
Rep: Reputation: 15
Thanks for the reply Steve. I have another question though. I obtain my IP address through DHCP, so it is always different. Would there be any way for me to assign my computer a domain name so I wouldn't have to use my IP. Say for example I was in a hurry and left without looking at, or writing down my IP. Would it then be possible to log onto my machine remotely?
 
Old 02-20-2006, 02:37 AM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Yep - I have my domains delegated through http://www.dyndns.com/ so that even when my IP address changes I can just refer to my sites by the domain. There are several places that provide the same service. Once you're signed up you run a client program that updates (for example) www.dyndns.com with your new IP address when it changes, so you don't have to worry about it.
 
Old 02-20-2006, 12:13 PM   #5
Pmeth
LQ Newbie
 
Registered: Feb 2006
Location: Canada
Distribution: SuSe 9x
Posts: 17

Rep: Reputation: 0
gilead is correct "It's not your DNS server you need, it's your domain name, e.g. hostname.domain.com. If you don't have a domain name registered and delegate to someone, you can use your IP address - ssh login@203.205.69.11
"
 
Old 02-28-2006, 12:11 AM   #6
bmccorm2
Member
 
Registered: Oct 2005
Distribution: Mandriva 2006
Posts: 67

Original Poster
Rep: Reputation: 15
Steve I went to the website as you said and I registered for the dynamic DNS service. I then got the client that will update the service with my IP. I am still having a bit of trouble logging into my machine though:

Code:
ssh -v bmccorm2.homelinux.net
SSH Version Sun_SSH_1.0.1, protocol versions 1.5/2.0.
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: ssh_connect: getuid 1084 geteuid 1084 anon 1
debug1: Connecting to bmccorm2.homelinux.net [67.177.198.88] port 22.
debug1: connect: Connection refused
debug1: Trying again...
debug1: Connecting to bmccorm2.homelinux.net [67.177.198.88] port 22.
debug1: connect: Connection refused
debug1: Trying again...
debug1: Connecting to bmccorm2.homelinux.net [67.177.198.88] port 22.
debug1: connect: Connection refused
debug1: Trying again...
debug1: Connecting to bmccorm2.homelinux.net [67.177.198.88] port 22.
debug1: connect: Connection refused
Secure connection to bmccorm2.homelinux.net refused.

I've spent days reading about this, and I think it is a firewall issue. I have shorewall installed on my Mandriva 2006 box, and it provides a GUI with how to set up the firewall. I tell it to allow DNS services and SSH services, yet I still get the above error message. Do you have any idea what is going on?

Thanks again
 
Old 02-28-2006, 01:39 AM   #7
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
* is 67.177.198.88 your IP?
* are you behind a router or something?
* are you sure the SSH server is running?
 
Old 02-28-2006, 11:16 AM   #8
bmccorm2
Member
 
Registered: Oct 2005
Distribution: Mandriva 2006
Posts: 67

Original Poster
Rep: Reputation: 15
Thanks for the reply Spoon. I googled my IP, and numerous sites confirm it is 67.177.198.88. As far as my internet, I live in a house with some other kids, so we use a wireless gateway to share our internet (as far as I know it is just a wireless gateway, i.e., you cannot plug an ethernet cord into it and get internet).

What do you mean is my ssh server running? When I try to connect to my machine, I bring up a terminal, ssh into another machine on my campus, and then from that machine, I try to remotely log back into my machine.

Let me if there are other questions. Again, thanks for the help!
 
Old 02-28-2006, 01:11 PM   #9
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Can you tell us more about the wireless gateway and network please? It sounds like the wireless gateway is the point where all of the other PCs connect to the internet. If so, it probably does firewalling for you and you can also port forward SSH requests to your PC.
 
Old 02-28-2006, 04:10 PM   #10
bmccorm2
Member
 
Registered: Oct 2005
Distribution: Mandriva 2006
Posts: 67

Original Poster
Rep: Reputation: 15
Our house has digital cable. That is sent to a Motorola cable modem, which is connected to an Apple AirPort Express (802.11G wireless gateway I believe). As far as the network goes, it broadcasts a public ESSID and it is encrypted through an Open WEP key, and it assigns an IP through DHCP. I am currently trying to find out more about the AirPort, but I do not have access to the software or the computer that it resides on. I will let you know if anything happens.

Thanks again.
 
Old 02-28-2006, 05:16 PM   #11
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
So the Airport Express wireless gateway is a router. Make sure your cable modem is not also acting as a router. I think that on Windows and Mac there is a program that allows you to configure the Airport Express, including port forwarding (your computer should have a static internal IP and you want to forward port 22 to your computer).
 
Old 03-01-2006, 12:42 AM   #12
bmccorm2
Member
 
Registered: Oct 2005
Distribution: Mandriva 2006
Posts: 67

Original Poster
Rep: Reputation: 15
Ok here is a little update: I got the AirPort Express software on my Windows partition so I can configure the AirPort. I start the Admin Utility (oh and I found the IP address of the Airport is 10.0.1.253) and I go to port forwarding. I set the public and private port to 22 and the private IP (which has to take the form of 10.0.1.xxx) to 10.0.1.253. Then, I try to ssh into my machine and it just hangs:

Code:
ssh -v bmccorm2.homelinux.net
SSH Version Sun_SSH_1.0.1, protocol versions 1.5/2.0.
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: ssh_connect: getuid 1084 geteuid 1084 anon 1
debug1: Connecting to bmccorm2.homelinux.net [67.177.198.88] port 22.
debug1: connect: Connection timed out
debug1: Trying again...
debug1: Connecting to bmccorm2.homelinux.net [67.177.198.88] port 22.


Thanks for ANY help!!!
 
Old 03-01-2006, 01:00 PM   #13
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I haven't used the Airport Express before, but shouldn't the IP address that gets set (the private IP) be the IP address of the linux box? It looks to me like the client is trying to connect to bmccorm2.homelinux.net [67.177.198.88] but the packets are being forwarded to 10.0.1.253 by the Airport Express.
 
Old 03-01-2006, 02:51 PM   #14
bmccorm2
Member
 
Registered: Oct 2005
Distribution: Mandriva 2006
Posts: 67

Original Poster
Rep: Reputation: 15
Yea that's what I thought!! Except the private IP address MUST take the form 10.0.1.xxx. I will contact Apple about it and see what I am doing wrong. Thanks for the help though!
 
Old 03-01-2006, 03:23 PM   #15
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Do I have your IP addresses correct? Is 67.177.198.88 your Linux box's IP address? If it is, you could just change it to one of the same subnet as the 10.0.1.253 Airport Express. If it's your external address, just change it to the address of your Linux box.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setup local machine to allow lan machines to retrieve its local user mail. Brian1 Linux - Networking 3 03-30-2006 05:04 AM
Remotely logging in in Redhat AS3 kinetik Red Hat 3 12-14-2005 04:11 AM
Problems sending mail from one local machine to the other ricky_ds Linux - Networking 6 11-11-2004 08:48 AM
Logging into Linux machien remotely with graphical interface hopbalt Linux - Newbie 1 08-12-2004 01:11 PM
logging off remotely ceph Linux - Security 1 07-20-2004 12:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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