SSH sessions can become unresponsive or hang for a number of reasons; one reason being network issues which I experience frequently when working from an unstable Wi-Fi network.
The following key combination can be used to terminate the SSH client:
ENTER
+ ~
+ .