Some Bits: Nelson's log

ssh: Resource temporarily unavailable

I got a weird error message today:

ssh: connect to host example.com port 22: Resource temporarily unavailable

In my case I had an open ssh connection working from my Windows box running WSL to my machine at home running native Linux. Then it dropped unexpectedly. When I tried to reopen it I got this error message. The connection had a few ports forwarded, but nothing weird. It normally works fine.

A bit of Googling around finds lots of instances of this error but all happening to WSL users. Then it gets confusing. Half the messages are from people running an SSH server on WSL, the other half are an SSH client. A lot of folks with permanent problems like a bad firewall setup. I have a transient error.

I still don’t really know what the error means. I’m wondering if port forwarding is related, maybe the Windows’ listening port is stuck in a half-closed state and isn’t available to be re-bound? I also don’t know what’s causing the drops, it’s a new problem. It’s happened twice now, both times I’ve had active SSH sessions get dropped when my SSH server completely flooded its 250MBps Internet link with a parallel download. I wonder if my cable modem or router are doing some thing dumb, or if ssh is sensitive to 3s of bufferbloat delay.