Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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
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?
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.
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
"
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 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!
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.
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.
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).
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.
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.
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!
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.