reverse ssh
Geert Hendrickx
geert.hendrickx at ua.ac.be
Wed Oct 6 00:42:55 PDT 2004
On Tue, Oct 05, 2004 at 10:45:57PM +0300, Ion-Mihai Tetcu wrote:
>
> [ please don't loose context ]
>
> On Tue, 05 Oct 2004 19:45:38 +0200
> Benjamin Walkenhorst <krylon at gmx.net> wrote:
>
> > Micah Bushouse wrote:
> >
> > > I have a BSD box (home) sitting on an apartment complex network
> > > (dhcp/nat/firewall) that I don't control. I also have a BSD box (work)
> > > with a static IP sitting on my university's network.
> > >
> > > Is there a way to open a ssh/other connection before I leave for work in
> > > the morning (from the home box to the work box), then travel to the
> > > university, sit at my desk and use this connection to get a terminal on
> > > my home machine? Is there any software out there that addresses this?
> > > Ideally it would involve ssh.
> >
> > You could write a script that sends an email to you every morning
> > which contains your IP-address. *Encrypted*, of course!!!
>
> Since he's home machine is behind a NAT at what would knowing its
> (private) ip serve?
You could put up some cgi-script on any http-server outside the LAN,
which just returns the client's IP address:
#!/bin/sh
echo "Content-type: text/html; charset=iso-8859-1"
echo
echo $REMOTE_ADDR
In PHP you can do the same with $_SERVER['REMOTE_ADDR'].
GH
--
:wq
More information about the freebsd-questions
mailing list