Stopping ssh from auto disconnecting

Bharat Kalluri / 2020-09-30

SSH keeps disconnecting after a while. You can fix that by sending a heartbeat every once in a while. Add this to ~/.ssh/config

Host *
ServerAliveInterval 240

and also make this file read-able to all (chmod 600 ~/.ssh/config)

Subscribe to the newsletter

Spotify album cover

NowReading logDashboardUses