Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【github】连接失败问题Connection refused #6

Open
Kelichao opened this issue Feb 27, 2017 · 0 comments
Open

【github】连接失败问题Connection refused #6

Kelichao opened this issue Feb 27, 2017 · 0 comments
Labels

Comments

@Kelichao
Copy link
Owner

Kelichao commented Feb 27, 2017

解决连接失败问题

  • ssh: connect to host github.com port 22: Connection refused
  • 在.ssh目录下创建一个config文件,注意,该文件不可以有后缀,添加一以下内容
Host github.com
User [email protected]
Hostname ssh.github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
Port 443

default

输入指令

测试证书是否可以正确使用。

在控制台输入 yes即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant