Git bash here
Enter password (no password) : Enter password again] : [Enter password] # Enter the same password again”
"Enter passphrase (empty for no passphrase): [Type a passphrase] # Enter same passphrase again:"Copy the code
Your public key is now saved in /c/Users/Pactera/.ssh/id_rsa.pub.
Add your SSH key to GitHub
Run the following code to copy id_rsa.pub to the clipboard:
Test whether SSH keys are successfully added to GitHub
Select Yes when prompted:
Are you sure you want to continue connecting (yes/no)? yes
Alternatively, to add it manually, retrieve the id_rsa.pub file from drive C (I’ve changed it to sunmenglei.pub), open the id_rsa.pub file with notepad++ and copy the contents to the SSH key.
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDX9CpPt1g+BTpueRELsBHAiEdNmU6rvixgo5g5rOZQlSPhOuuWpsq4ecG5GZJYmX06XQREJVmj3FHKMyq+msg38hgr scTep5Trk++vCcCrU1C2UldHIlW9TFUSDgzjCb9tDR2vfJpKjDIuyyQluP4Z/9jDB4Xir5kxAIpdJE/1r58xOaQ2tGT2zgy1Kvk4YOpMo47vy7o+MWLhJvYu E09+mHKXd0YrPnOzs/VAf0cyvDgmo9qWQulUeDUDGJUn7l3WeVKyhpltmlMOINS1+0LMJxNbpE4Ky9S+a2WyNl06xtlWJrPIvVAziA2k7MPE3X1zsPvyv9VQ kwiaL8OtUPoVjeBIiskc00aiMwXaRxMMdroiPeMUc9tHAhTgCMRpOGoqE4kzurNqvlL5FpQ1U9vOzusYDJco5s0o/JXZjViwCDe8wVO9Qp9QYQSbKf1IBAqQ 7faAgd44ihxWGInxPW20DZTbLN3JovczsyguWkr0= [email protected]Copy the code