AptLynx

Command-line tool

autossh

brew/autossh

Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev

Automatically restart SSH sessions and tunnels proxy ssh tunnel autossh reconnect

At a glance

Type
Command-line tool
Install on
Windows, macOS, Linux
Last checked
25 Oct 2026, 21:09 UTC

Install it

Windows

winget install --id Kevin589981.autossh -e
scoop install autossh

macOS

brew install autossh

Linux

brew install autossh

Start an SSH session, restarting when the [M]onitoring port fails to return data

autossh -M monitor_port "ssh_command"

Forward a [L]ocal port to a remote one, restarting when necessary

autossh -M monitor_port -L local_port:localhost:remote_port user@host

Fork `autossh` into the background before executing SSH and do [N]ot open a remote shell

autossh -f -M monitor_port -N "ssh_command"

Related command-line tools

Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents