I'm new to Git and command line. I am using a Vagrant virtual box.
Today, I tried pushing some work to Github and got the error:
connect to host github.com port 22: Connection refused
ssh -T -p 443 email@example.com,
connect to host ssh.github.com port 443: Connection refused
zsh: permission denied: /home/vagrant/.ssh/config
I don't know if you follow this link, but it is very helpful.
You are having
permission denied to access
~/.ssh/config because this file, just can be edited by the machine admin.
If you are de admin, do
sudo vim ~/.ssh/config and then enter with your password and edit the file.
Sometimes, the ssh problem is because you have changed your ssh key, so if the problem insists, remove ssh keys and add then again
sudo rm -rf ~/.ssh/ (WARNING: THIS WILL REMOVE ALL SSH KEYS)