That reminds me when I got my gameshell I had similar issue, the ssh hung up. It was a matter of poor wifi conection with the router. Things got better when I disabled the power save (It went form unusable to usable) How to disable wifi power save to prevent disconnects - #9 by Petrakis
P.S. Thats an old post and currently the power save option is added to the launcher (if you have it updated)
Also I recommend using the USB to Ethernet because its amazing compared to the wifi.