Many time shell remain idle and due to that SSH connection get closed by server and you need to relogin to the shell.
You will able to avoid this...