ssh报错:
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.
在终端输入:$ ssh -T git@github.com
打开下图路径下查看是否有该文件:
没有的话就添加一个文件命名:config
内容为:
Host github.com
User git
Hostname ssh.github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
Port 443
在终端重新输入:$ ssh -T git@github.com
经过以上步骤即可解决标题报错!