Re: ssh reverse tunnel



Rick Bilonick wrote:
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.
Some firewalls have a time limit on connections, and the connections will fail as soon as that timeout occurs. Note when the ssh session is started, and when it times out. See if there is a consistent connection duration.

If that is occuring the only solutions are to alter the timeout on the firewall (I did that on some checkpoint firewalls a few years ago) or re-initiate the connection whenever it goes down (yum install autossh). Obviously the latter is not ideal because your inbound session is lost uncleanly and you cannot predict when it will happen unless you know what the firewall connection timeout is for that port, and when the session was initiated. But if it means that getting a connection remains possible that would be better than losing the capability until you are next in the office.


Chris

--
"Spend less! Do more! Go Open Source..." -- Dirigo.net
Chris Johnson, RHCE #804005699817957

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



Relevant Pages

  • Re: Unable to connect to Internet.
    ... following program and see if it helps with the connection. ... utility program and there are instructions at the site on how to use it. ... and the ones at the forums. ... Some firewalls can prevent connection. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Cisco ASA and VPN troubles
    ... between them for connecting two company office networks. ... SSH says "Connection reset by peer" and the ... The TCP timeout settings of both firewalls are: ...
    (comp.dcom.sys.cisco)
  • Re: XP home to XP Pro weird issues.
    ... firewalls and uninstall non-Microsoft firewalls and see if your ping problem ... and/or a slow connection causing problems. ... The second machine is a laptop that is ... browser issue. ...
    (microsoft.public.windowsxp.network_web)
  • Re: Thoughts on MS Microsoft AntiSpyware beta
    ... Should I use both Internet Connection Firewall and a software firewall ... from a different company on my Windows XP computer? ... Running multiple software firewalls is unnecessary for typical home ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Internet Access trapped by Norton etal
    ... I know what your saying about the Norton dialog. ... At least some security software can be configured to allow specific ... If they do not configure their firewalls correctly, ... software firewalls must be configured to allow a specific connection to a specific site, ...
    (microsoft.public.vc.mfc)