how to cancel freeze ssh code example Example: terminal freezes ssh #press Enter (or Return for Mac) #then ~ (shift + ~ for Mac) #then .