Testing github connection
Sometimes when I want to push, I get
ssh: Could not resolve hostname github.com: nodename nor servname provided, or not known Alexs-MacBook-Pro:testgithub alexkaert$ ssh -T email@example.com
I think it's a internet connection error.
A sketchy way to "solve" it:
- Change your public key online, just delete a character and remember which character
ssh -T firstname.lastname@example.org
- If you get a public key denied error, that's good. If not keep doing step 2
- Chnage you public key back to the correct one.
ssh -T email@example.com work and give you the correct response, if not, repeat 1-4
git push, if this failed, repeat 1-5