git 连接 github 超时问题
port 22 报错
当 git clone 代码的时候遇到 port 22
1 | ssh: connect to host github.com port 22: Connection timed out |
找到 git 的安装地址
1 | // 1.找到 git 安装地址 |
permision denied
生成密钥
1 | // 1. github 账户名 |
以上命令会生成2个文件 ~/.ssh/id_rsa, ~/.ssh/id_rsa.pub
将 ssh_key 添加到 github
1 | cat ~/.ssh/id_rsa.pub |
GitHub does not provide shell access
解决方法
1 | ssh -T git@github.com |