My SSH problem was caused by Windows Defender firewall blocking connections to the protected network. I was able to solve the issue by removing vEthernet (WSL) for each of the Domain, Private, and Public profiles as described here : https://github.com/microsoft/WSL/issues/4139#issuecomment-732665787.
Now I’m having a missing mysql extension error but this is another story.