换为443端口
操作方法:
1.进入~/.ssh下
cd ~/.ssh
2.创建一个config文件
vim config
3.编辑文件内容:
??? Host github.com
??? User git
??? Hostname ssh.github.com
??? PreferredAuthentications publickey
??? IdentityFile ~/.ssh/id_rsa
??? Port 443
??? ?
??? Host gitlab.com
??? Hostname altssh.gitlab.com
??? User git
??? Port 443
??? PreferredAuthentications publickey
??? IdentityFile ~/.ssh/id_rsa
4.检查是否成功
ssh -T git@github.com