After the macOS update from macOS26.2 to macOS26.3 I began to have the ssh process hang in the terminal. Some apps like BBEdit the rely on ssh also refused to connect while others like CyberDuck that use SFTP connected fine.
It turns out (I think) that macOS corrupts a file called Listener located in a directory associated with launchd. I delete it and can ssh into every server that I use. The last letters in the directory change every time I delete it.
sudo rm -rf /var/run/com.apple.launchd.Rw60DMcJTr/