News for hackers. Stuff that matters.
Re:Terminating a Frozen SSH Session by icedchai on Thursday August 06, 2020 @09:01PM (#24076971)
~? gets you a list of options ~. terminates the connection

Sometimes plain ~. just doesn't work, depending on what state your connection is in.

Re:Terminating a Frozen SSH Session by tyingq on Thursday August 06, 2020 @09:23PM (#24077080)
~<Ctrl-Z> should suspend the ssh process and drop you back in the shell, where you can "kill %1".
Re:Terminating a Frozen SSH Session by jolmg on Friday August 07, 2020 @01:15PM (#24084272)
> Sometimes plain ~. just doesn't work, depending on what state your connection is in.

I can't imagine what state that would be. It should work even if the remote machine is completely unresponsive.

Re:Terminating a Frozen SSH Session by icedchai on Friday August 07, 2020 @02:50PM (#24085221)
I agree that it "should", but I've definitely had it not work. It may actually be a problem with the state of my local terminal under macOS. I've had to resort to "kill -9"ing my ssh from another window in some situations.
Re:Terminating a Frozen SSH Session by jolmg on Saturday August 08, 2020 @11:48AM (#24092522)
I can only imagine it appearing it not working by hitting Ctrl-s, which freezes terminal output. Killing ssh wouldn't solve that though. Besides unfreezing it with Ctrl-q, you'd have to kill the whole terminal.