抽风的Git
一、现象
代码提交时出现ssh: connect to host ssh.github.com port 443: Connection refused
错误
二、解决
1.换回22端口-无用
把~/.ssh/config
文件中的
Host github.com
Hostname ssh.github.com
PreferredAuthentications pulickey
IdentityFile ~/.ssh/id_rsa
Port 443
2.指定使用https仓库-无用
vim shafishcn/.git/config
,将url = git@github.com:shafishcn/shafish_blog.git
改成url = https://github.com/shafishcn/shafish_blog.git