SSH
Keep SSH session even when lock
by edit sshd configuration file.
The configuration for this is in the file $HOME/.ssh/config
Add this to the file
Host *
ServerAliveInterval 100
which will make the client send signal to the ssh server every 100 seconds.
Hope that helps..
PEACE~~