`~/.ssh/config`
```
Host *
RequestTTY yes
RemoteCommand TMOUT=600 $SHELL -c 'which screen && exec screen -R || exec $SHELL'
```
Tidy config for SSH connections! Automatically tries to open GNU screen if it's installed, and will automatically exit after 600 secs.
```
Host *
RequestTTY yes
RemoteCommand TMOUT=600 $SHELL -c 'which screen && exec screen -R || exec $SHELL'
```
Tidy config for SSH connections! Automatically tries to open GNU screen if it's installed, and will automatically exit after 600 secs.