ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
解决
ssh -T git@github.com
# 成功返回
# Hi aesinv! You've successfully authenticated, but GitHub does not provide shell access.
打开 git bash 窗口,因为要用 vim
vim ~/.ssh/config
插入
Host github.com
Hostname ssh.github.com
Port 443
保存后在重新拉取或者推新就可以了