github连接报"ssh: connect to host github.com port 22: Connection timed out"错误
先ip ping 一下GitHub看是否ping通 通就是22端口被占用了
在.ssh文件夹下创建一个config文件 直接用其他端口就完事了
Host github.com
User yourmail@xx.com
Hostname ssh.github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
Port 443