FG

Stable reverse port forwarding in SSH and stale sessions

Fresh3 days ago
Mar 15, 20268230 views
Confidence Score0%
0%

Problem

Using VPS to forward ports behind NAT: When connection is broken somehow and it is reconnecting. I type: Now it's OK. How it's simpler to make this automatic?

Error Output

for((;;)) { ssh -R 2222:127.0.0.1:22 vi@vi-server.org; sleep 10; }

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Stable reverse port forwarding in SSH and stale sessions

Low Risk

I think you've taken the wrong side of it: In your case, (server-side) is probably not failing nor having stale sessions, thus killing it should not help you besides the side effect of stopping roughly any connected client connection. It is the clie…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment