💻 Software
Auto-reconnecting SSH connections with a specific 'screen' session
Fresh5 days ago
Mar 15, 20268609 viewsConfidence Score0%
0%
Problem
I typically have several terminal windows each of which is connected via ssh to a remote server. In each window I work using the gnu screen program, to ensure persistence of the interactive processes in case of a disconnection. Currently, whenever the ssh connection drops (such as when I put my cli…
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Auto-reconnecting SSH connections with a specific 'screen' session
Low Risk
You can run this: to reconnect. If you want to do it in a loop I use the following in a script. This works best if you have ssh-keys setup so you can login without typing in your password. I'd also recommend that you look at tmux, a more modern impl…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix