debugging a hang ssh session



I had connected to a server via ssh. After issuing some networking
commands to configure the server, suddenly the ssh session "hang".
i.e. the screen just freezes and I get no prompt.
At this time, I can still configure the server through the serial
port.
How to debug what is wrong?
.