i often move from place to place with my laptop.
sometimes i forget that i’m still logged into a remote site before changing wifi networks. when that happens my ssh session will get stuck. if i do it from an xterm, i can just close it, but if i’m using the real console, there’s not a way to restart.
here is the trick that seems to work.
that is, hit enter/return, then type tilda, then period.
that’s what works for me to exit the hung ssh connection.