https://media01.nerdia.net/uploads/nerdia-logo-340x156.png 0 0 Stefan Helander https://media01.nerdia.net/uploads/nerdia-logo-340x156.png Stefan Helander2021-01-07 09:30:172021-01-07 09:30:18Prevent Mac OSX ssh from disconnecting (also on any Linux/BSD/*nix system)
Prevent Mac OSX ssh from disconnecting (also on any Linux/BSD/*nix system)
To prevent ssh from disconnecting while idle, add the following to ~/.ssh/config:
Host * ServerAliveInterval 30 TCPKeepAlive no
This solution is alse useable in any Linux/BSD/*nix environment. If you want to implement this not only on your own user, as a sysadmin, add the above to /etc/ssh/ssh_config instead.