autossh — Persistent your SSH sessions even if drops

Table of Contents
ssh-session

In the world of remote connectivity, maintaining an uninterrupted SSH session is crucial. Unforeseen network issues can often lead to dropped connections, disrupting work processes and causing inconvenience. To mitigate this, a handy tool called assh (autossh) comes to the rescue. Developed to assist in automatically reconnecting an SSH connection if it happens to drop, assh ensures a seamless and persistent SSH experience, even in the face of intermittent network problems.

here, demo of autossh

Installtion

you can install assh by running the following command in your terminal:

curl --silent -o- https://raw.githubusercontent.com/meanii/assh/main/install.sh | sudo bash 

Note: Note: this will require sudo privileges, as it will install the script to /usr/local/bin/assh

Usage

assh <ssh-connection-string>

github: https://github.com/meanii/assh