A knowledge base article about bSecure GlobalProtect VPN: SSH Hangs When When Idle provided by the UC Berkeley IT Service Hub - Knowledge Portal
Users of GlobalProtect may notice ssh connection hang, or become unresponsive, after a period of time. This happens when the connection is left unattended for an hour or more and the session in the remote access system times out. To keep the session alive ssh has the ability to send very small amounts of data even while unattended. The feature is called keep alive and keeps the session active in the remote access system.
In many distributions of ssh this is not the default setting and must be enabled. The following are the steps to turn this feature on for three distributions, please reference the documentation of any others for how to use keep alive.
SSH/OpenSSH on the Command Line - Linux, Mac OS X
Example:
Host *
ServerAliveInterval 300
ServerAliveCountMax 2
Putty for Windows
SecureCRT for Windows, Mac OS X, and Linux
This will need to be done for each connection in your connections window that you will use over GlobalProtect, alternativly you can follow the next set of directions and change it for everything at once.
You can put the setting in the new connection template, this will ensure it is active on any new connections created. You also have the option to update all other connections.