Re: ssh reverse tunnel



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@xxxxxxx


Then when at the home computer, I type:

ssh -p 2022 server@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.


Run something like
while date ; do sleep 60; done
in the ssh session setting up the tunnel, adjust sleep time if needed. That will generate some traffic to keep the connection from timing out.

--
Jaakko Ruutiainen

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Re: ssh tunnel problems
    ... I did the following on the server: ... which connected to my home computer after I entered the password. ... I'm not able to connect to the server through the ssh connection. ... your use of localhost on both the server side and the home side ...
    (Fedora)
  • Re: Use to be able to VPN/RDP. After installing SBS2003, can only VPN
    ... Just to make sure the connection is like.. ... back to the SBS server as the endpoint? ... If i plug home computer workstation into Linksys router or cable modem, ... Ethernet adapter Internal Server Local Area Connection: ...
    (microsoft.public.windows.server.sbs)
  • Re: Testing VPN w/o extra connection
    ... >If you have a cable or DSL connection and WinXP Pro at ... >to your home computer and then initiate another RDC ... >computer to the server (or a WinXP Pro workstation on ... VPN server on the ...
    (microsoft.public.windows.server.sbs)
  • Re: ssh tunnel problems
    ... I did the following on the server: ... which connected to my home computer after I entered the password. ... I'm not able to connect to the server through the ssh connection. ... your use of localhost on both the server side and the home side ...
    (Fedora)
  • Re: Testing VPN w/o extra connection
    ... >> If you have a cable or DSL connection and WinXP Pro at home, ... >> another RDC session from the home computer to the server (or a WinXP ... >> with a VPN by setting up a VPN server on the home computer and using ...
    (microsoft.public.windows.server.sbs)