FG

Automatically reconnect interactive SSH session

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

Problem

What's the best way to automatically reconnect an interactive SSH session to re-establish the shells on terminals? I looked at autossh but that seems to be dedicated to port forwards (which I do not need). Is there any shell-fu or utility that allows that?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Automatically reconnect interactive SSH session

Low Risk

Actually, will do the same for interactive sessions as well - you may want to run the remote session in to keep it up across reconnects: As accepts the parameters that does, the option will force a terminal (which is needed for an interactive sessio…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment