gpt4 book ai didi

git - ssh -vT git@github.com kex_exchange_identification : Connection closed by remote host

转载 作者:行者123 更新时间:2023-12-04 13:00:00 25 4
gpt4 key购买 nike

the way I config the ssh-key, 我生成了一个新的 ssh key ,添加到我的 github 中,但是出了点问题,我尝试了很多方法,但我不能。

$ ssh -vT git@github.com
OpenSSH_8.1p1, OpenSSL 1.1.1d 10 Sep 2019
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to github.com [111.40.234.2] port 22.
debug1: Connection established.
debug1: identity file /c/Users/dell/.ssh/id_rsa type 0
debug1: identity file /c/Users/dell/.ssh/id_rsa-cert type -1
debug1: identity file /c/Users/dell/.ssh/id_dsa type -1
debug1: identity file /c/Users/dell/.ssh/id_dsa-cert type -1
debug1: identity file /c/Users/dell/.ssh/id_ecdsa type -1
debug1: identity file /c/Users/dell/.ssh/id_ecdsa-cert type -1
debug1: identity file /c/Users/dell/.ssh/id_ed25519 type -1
debug1: identity file /c/Users/dell/.ssh/id_ed25519-cert type -1
debug1: identity file /c/Users/dell/.ssh/id_xmss type -1
debug1: identity file /c/Users/dell/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.1
kex_exchange_identification: Connection closed by remote host

我能做什么?

最佳答案

我怀疑您的 ~/.ssh/ 中的 key 过多.点 ssh到您使用的确切 key 。在 ~/.ssh/config :

Host github.com
User git
HostName github.com
IdentityFile ~/.ssh/id_rsa # or whatever key you use with Github

那就试试 ssh -Tv git@github.com再次。

关于git - ssh -vT git@github.com kex_exchange_identification : Connection closed by remote host,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59692874/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com