Logging into a computer behind a router?
Alex Maynard
amaynard-vQ8rsROW2HJSpjfjxSPG1fd9D2ou9A/h at public.gmane.org
Fri Jul 14 22:07:31 UTC 2006
On Fri, 14 Jul 2006, Chris F.A. Johnson wrote:
> On Fri, 14 Jul 2006, Alex Maynard wrote:
>
> >
> > Hi All:
> >
> > I am confused by what may be a fairly basic networking question:
> >
> > I have two linux computers attached to a Linksys router, one of which
> > I would like to be able to log into from both the other computer and from
> > my office.
> >
> > If I use the address that I get from /sbin/ifconfig I am able to login
> > from the other computer linked to the same router, but not from outside.
> >
> > Also the address I get from /sbin/ifconfig is entirely different from the
> > one I see if I go to http://ww2.economics.utoronto.ca/whoami.php, which
> > reads off IP addresses and the IP address that I read off from that page
> > is the same for both computers hooked up to the router. So I am guessing
> > that this is the router address and that the outside world is only seeing
> > as far as the router and can't get past this? Does that sound right? If
> > so, does anyone know of a simple way to change this so that I can log in
> > from outside?
>
> Tell your router to forward port 22 to your local address. Then you
> can ssh to the 'net address and it will go to the machine you want.
>
Thanks very much to several of you who suggested forwarding port 22.
I've done this and can now get to my computer's logon/passord from
outside, but strangely it rejects my logon attempts.
I use the "AllowUsers" in sshd_config to restrict outside access.
In the past when I had trouble logging in from outside computers it was
because the IP/DNS was not listed under AllowUsers. But this
outside computer is a reliable server who's DNS has been on my AllowUsers
list for a long time and never caused a problem before. This has me a
bit confused. Could it be that the DNS/IP of the computer of origin is
somehow getting losted or changed as it passes through my router?
Thanks again!
Alex
> --
> Chris F.A. Johnson <http://cfaj.freeshell.org>
> ===================================================================
> Author:
> Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
> --
> The Toronto Linux Users Group. Meetings: http://tlug.ss.org
> TLUG requests: Linux topics, No HTML, wrap text below 80 columns
> How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
>
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list