I keep forgetting how to terminate an SSH connection when it gets stuck.
I always end up in this page.
~ and then
This also works if you
nano a file and you come back to the shell and seems to be stuck. Typing this combination will exit.