One liner: Kill an unresponsive remote shell session Posted on April 7, 2023 by Adam Young {enter} ~ .{enter} ~ .
you can chain ~~ and disconnect, let’s say, only second ssh connection (in chained ssh case)