Github failed to verify SSH configuration. Then try using Sourcetree to pull out the code, always prompting for a password.

  • Sourcetree keeps prompting the following:
Password Required

For user git on host github.com
Copy the code
  • Then use the commandssh -T [email protected]To verify the configuration also kept reporting errors

kex_exchange_identification: read: Connection reset by peer

  • Later, I found a solution after reading this blog. It turned out that I had missed a step, so I solved it by following this method.

#### Final solution:

  • 1. Run commands after the configuration is completegit clone [email protected]:xxx/xxxProduct.gitPull out the code.
  • 2. The following prompts will follow:

` Are you sure you want to continue connecting (yes/no/[fingerprint])? yes

Warning: Permanently added ‘github.com,xx.xx.xx.166’ (ECDSA) to the list of known hosts.`

  • 3. Inputyes“, and the following prompt will appear. So this is the real configuration.