Ssh/Terminate frozen session

Pressing ~. will terminate the ssh-session.