小编Gni*_*ohz的帖子

Git ssh 错误:端口 22:没有到主机的路由

我尝试使用设置 git 并将其用于 github,然后当我按照帮助文档进行操作时,但是当我到达设置 ssh 密钥部分的第 5 步时:测试所有内容,当我使用此命令时:ssh -T git@github.com出现错误:

ssh:连接到主机 github.com 端口 22:没有到主机的路由

然后我使用了这个命令:

ssh -vT git@github.com
Run Code Online (Sandbox Code Playgroud)

这是我得到的:

OpenSSH_5.8p1 Debian-7ubuntu1, OpenSSL 1.0.0e 6 Sep 2011
debug1: Reading configuration data /home/jacos/.ssh/config
debug1: Applying options for github.com
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to github.com [207.97.227.239] port 22.
debug1: connect to address 207.97.227.239 port 22: No route to host
ssh: connect to host github.com port 22: No route to host
Run Code Online (Sandbox Code Playgroud)

我用谷歌搜索了一段时间,发现我必须检查 …

ssh git

9
推荐指数
1
解决办法
4万
查看次数

git ssh :权限被拒绝(公钥)

我尝试使用 github,所以我遵循了帮助文档。但是当我使用这个命令时:ssh -vT git@github.com我得到了这样的错误:

jacos@Jing:~/.ssh$ ssh -vT git@github.com
OpenSSH_5.8p1 Debian-7ubuntu1, OpenSSL 1.0.0e 6 Sep 2011
debug1: Reading configuration data /home/jacos/.ssh/config
debug1: Applying options for github.com
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to ssh.github.com [207.97.227.248] port 443.
debug1: Connection established.
debug1: identity file /home/jacos/.ssh/id_rsa type 1
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: identity file /home/jacos/.ssh/id_rsa-cert type -1
debug1: identity file /home/jacos/.ssh/id_dsa type -1
debug1: identity file /home/jacos/.ssh/id_dsa-cert type …
Run Code Online (Sandbox Code Playgroud)

ssh git github

7
推荐指数
1
解决办法
2万
查看次数

标签 统计

git ×2

ssh ×2

github ×1