Solution window10 connected at git and github

Solving steps:

  1. Delete the known_hosts file .ssh directory, under normal win10, .ssh in C: \ Users \ Administrator, or you can directly search

  2. Open the git installation bin / bash.exe directory, enter ssh-keygen -t rsa -C "username" ( "username" your account name is github), after the successful return:

    

    The middle of the dialog box press Return, after the success of last id_rsa and id_rsa.pub generate two files directly in the .ssh folder

  3. Copy the contents of id_rsa.pub file, open their github account, set up under the settings, as shown:

    

  4. Create new SSH key, and paste the contents of id_rsa.pub come save.

  5. Finally, the bash.exe enter commands: ssh -T [email protected]

    

 

Guess you like

Origin www.cnblogs.com/wongdongd/p/11104971.html