突然某一天打开webstrom拉取就报错
ssh: connect to host github.com port 22: Operation timed out fatal
Please make sure you have the correct access rights
and the repository exists.
一开始以为是github ssh密钥过期啥的,就重新去./ssh文件夹找到id_rsa.pub文件复制密钥到github上去,保存,软件什么的都重新打开,然后拉取还是报一样的错误,
tips : m1电脑打开ssh文件夹:打开访达,快捷键shift+command+g,然后输入 ~/ssh 夹能看id_rsa.pub文件了
然后尝试修改22端口
1》直接终端输入ssh -T git@github.com
报一样的错
2》修改config文件,照这个链接的修改
Mac 终端 Git 问题解决:Failed to connect to github.com port 443: Operation timed out - 简书