Linux / UNIX kill unresponsive hung SSH session


#1

Originally published at: https://www.cyberciti.biz/faq/openssh-linux-unix-osx-kill-hung-ssh-session/

Sometimes my ssh session stops working because of the internet connection problem. I tried pressing CTRL+Z and CTRL+C to terminate my ssh session but failed to work. How do I properly kill a hung SSH session without killing my local terminal or using the ? How can I kill unresponsive hung SSH session on macOS?