kex_exchange_identification: Connection closed by remote host #55269
Replies: 24 comments 88 replies
-
The SSH output looks like you don't have any keys available for authentication. Do you have SSH-Agent running, and the right key pair loaded into it? |
Beta Was this translation helpful? Give feedback.
-
I encountered the same problem 3 hours ago, unable to push the code to github, it showed no permission, but it was still able to push normally just yesterday. After I generate a new ssh key locally and add it to the github ssh configuration, this problem still exists. A strange thing happened to me the other day when I was syncing code on another computer. The remote branch is one commit ahead of the local branch, but when I execute |
Beta Was this translation helpful? Give feedback.
-
I have sshd daemon running. I didn't make any change, and now it works, so strange~ |
Beta Was this translation helpful? Give feedback.
-
I guess GFW make it. Here is what is working now through https, and through proxy: ❯ proxychains -q ssh -T git@github.com |
Beta Was this translation helpful? Give feedback.
-
Because many people in China encounter this problem, seems it's related to network. I reopen this issue. More solution and feedback are welcome. |
Beta Was this translation helpful? Give feedback.
-
Try Found on this post |
Beta Was this translation helpful? Give feedback.
-
Same here in Tianjin, and it's resolved by executing the following command, found here.
It seems that something, related to ssh identification or Github ip resolution, has been changed during the execution. |
Beta Was this translation helpful? Give feedback.
-
Adding this to
I use South Korea IP. |
Beta Was this translation helpful? Give feedback.
-
I have the same problem. It will be normal when I don't use clash. |
Beta Was this translation helpful? Give feedback.
-
I am in Beijing and recently discovered that SSH is not working properly, but I have not found a solution yet |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
Enabling SSH connections over HTTPS can solve this problem To set this in your SSH configuration file, edit the file at ~/.ssh/config, and add this section:
You can test that this works by connecting once more to GitHub.com: $ ssh -T git@github.com
|
Beta Was this translation helpful? Give feedback.
-
try 'ssh-agent && ssh-add ~/.ssh/id_rsa' |
Beta Was this translation helpful? Give feedback.
-
If you use Proxy client like ClashX, please close the "Enhanced Mode" and try again. |
Beta Was this translation helpful? Give feedback.
-
Becuase of this problem , check your proxy config . Just like clashx shadowsocks etc ... |
Beta Was this translation helpful? Give feedback.
-
sometimes,Maybe ,we should check our .ssh/ , the public key's and private key's file name.it must start with id_rsa. do not start with anyelse word. I modify the filename ,then ,everything go correct |
Beta Was this translation helpful? Give feedback.
-
I just closed my ClashX, and then problem solved |
Beta Was this translation helpful? Give feedback.
-
Check the solution here. |
Beta Was this translation helpful? Give feedback.
-
I just closed openclash in my openwrt router, and it works. |
Beta Was this translation helpful? Give feedback.
-
Make sure if you are using any client connector app like Zscaler, turn its internet security off. It solved every problem for me. |
Beta Was this translation helpful? Give feedback.
-
Given the popularity of this discussion and the quality of information shared, we want to make sure others can easily find it so we’ve reopened this discussion for better discoverability for our members. |
Beta Was this translation helpful? Give feedback.
-
my org vpn was off. please check |
Beta Was this translation helpful? Give feedback.
-
I added this to ~/.ssh/config and it finally worked! I think the hostname is what makes it work. |
Beta Was this translation helpful? Give feedback.
-
Hi 👋 I'm an engineer from the AWS Amplify service - Our customers use GitHub to connect their applications to Amplify and we offer a CI/CD workflow where we clone the customer's repository to allow customers to run their build commands. Since 09/11, our customers have been intermittently observing this issue:
The fact that these failures are intermittent is what is concerning to us. Nothing has changed in the build containers we provision for our customers - The SSH settings are the same as they always were. We run |
Beta Was this translation helpful? Give feedback.
-
My git(hub) works fine before, but suddenly it not work.
When I type
git pull origin master
, it showsI have configed key, and it works before. My network works fine.
ping github.com
also works.Here is the debug message
Beta Was this translation helpful? Give feedback.
All reactions