To prevent sessions on Solaris to get disconnected after 5 minutes idle time, update /etc/ssh/sshd_config with the below parameters:
############### KeepAlive yes ClientAliveCountMax 10000 ClientAliveInterval 30
Then restart the service:
svcadm restart ssh