When I'm using wifi at my office, I'm able to copy files to and from my server using SCP, but for some reason SSH is non-responsive. It just hangs, doesn't print anything, and I can't ctrl-c
to end it; I have to close the terminal window.
When I'm plugged in on the LAN, everything works fine. Any ideas how to figure out what's going on?
Best Answer
I finally found what was causing the issue. This was due to my router blocking TCP keepalive messages when I connected wirelessly (go figure).
ssh my_server -o TCPKeepAlive=no
solved all my problems. Yay!From the documentation: