github解决端口22不能连接错误

xiaoxiao2021-02-28  53

github解决端口22不能连接错误

真是奇怪了,之前用Git好好的,几天没用回来发现

ssh -T git@github.com

一直连不上…搞了半天,终于连上了,记录一下过程,留个记录。

修改下面这个文件(Git默认安装目录)

C:\Program Files\Git\etc\ssh\ssh_config

添加以下内容

Host github.com User jcfeng2013@gmail.com Hostname ssh.github.com PreferredAuthentications publickey IdentityFile ~/.ssh/id_rsa Port 443

其中,

jcfeng2013@gmail.com

是我的Github邮箱。 以上。

转载请注明原文地址: https://www.6miu.com/read-2619107.html

最新回复(0)