![](/img/trans.png)
[英]Connecting to GitHub with SSH to a project located not in my account
[英]Cannot setup ssh keys on my github account
我在〜/ .ssh文件夹中生成了ssh密钥,并将这些密钥添加到我的github帐户中,但是当我运行以下命令来测试我的ssh连接$ ssh -T git@github.com
,出现以下错误: ssh: connect to host github.com port 22: Connection timed out
我无法理解此处的错误。
我在我的github帐户中添加ssh密钥,进入“设置>> SSH和GPG密钥”选项卡,然后在新的ssh密钥上并将内容从id_rsa.pub复制到密钥中。
尝试来源: https : //help.github.com/articles/using-ssh-over-the-https-port
尝试这个:
$ vim〜/ .ssh / config
添加:主持人github.com
主机名ssh.github.com
端口443
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.