I recently created a Ubuntu machine on WSL and I configured a SSH key to push things to GitHub. It worked fine the first time but after restarting de machine:
$ git push -vPushing to github.com:
and
$ ssh -T git@github.com -vOpenSSH_8.9p1 Ubuntu-3ubuntu0.7, OpenSSL 3.0.2 15 Mar 2022debug1: Reading configuration data /etc/ssh/ssh_configdebug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no filesdebug1: /etc/ssh/ssh_config line 21: Applying options for *debug1: Connecting to github.com [140.82.121.4] port 22.
and they never resolve.
After searching for the problem I think that the problem is not SSH related but Firewall related. I have deactivated Windows defender firewall but it still doesn't work and some posts talk about SEP (Symantec Endpoint Protection) or things like that but I can't find the solution.