ssh reverse tunnel
Rick Bilonick
rab at nauticom.net
Tue Jul 1 23:42:47 UTC 2008
On Tue, 2008-07-01 at 14:07 -0400, Bill Davidsen wrote:
> Rick Bilonick wrote:
> > I re-installed Fedora 8 and now I can get a reverse ssh tunnel (from
> > server to home) by typing on the server:
> >
> >> ssh -R 2022:server.ip:22 home at home.ip
> >
> >
> > Then when at the home computer, I type:
> >
> >> ssh -p 2022 server at localhost
> >
> > This works fine. The only problem is the connection always times out
> > even though I've changed the sshd_config files on both machines to keep
> > it alive. I've restarted the sshd daemon also. Not sure why the
> > connection keeps closing.
> >
> And the reason this is desirable? You can easily set iptables to accept
> ssh packets on 2022 from only your computer, and not run encryption
> through encryption. And if you want a real connection, OpenVPN is
> probably a better solution.
>
>
> --
> Bill Davidsen <davidsen at tmr.com>
> "We have more to fear from the bungling of the incompetent than from
> the machinations of the wicked." - from Slashdot
>
And if I had any control over any of this, that would be exactly what I
would do. But since I don't, this fits the bill.
Rick B.
More information about the users
mailing list