How to prevent unattended SSH connections from remaining connected