To push the code on github though added ssh public key, is still reported insufficient privileges

1. Error Details

Registered a new github account, after you finish adding ssh public key, push when the newspaper is still insufficient permissions ,

specific information:

Agent admitted failure to sign using the key.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

2. Solution

  • Open a terminal
  • Enter the following command
ssh-add
  • Then enter the password again push the code after a carriage return. success! ! !

Guess you like

Origin www.cnblogs.com/changchangchang/p/12168212.html