Home > Mobile >  git push from VS code gives remote: No anonymous write access
git push from VS code gives remote: No anonymous write access

Time:11-14

I am trying to push the code from the repo when I encountered this error: No anonymous write access.

I have followed the steps mentioned here enter image description here

Please help me if you have any other solution too apart from the clarification?

I copied all the content as per the answers I received. But then, I changed my remote from https to ssh link , then I am getting this error while pushing.

sign_and_send_pubkey: signing failed: agent refused operation 
[email protected]: Permission denied (publickey). 
fatal: Could not read from remote repository.  
Please make sure you have the correct access rights and the repository exists.

CodePudding user response:

copy everything as it is from your publickey something.pub to the key section of github ssh setting page.

Key should be like this ssh-rsa <key> <username>@<machine_name>

CodePudding user response:

  1. Clarified: Copy the whole thing in the key field of GitHub account.

    ssh-ed25519 <key> <email>

  2. If the error still persists after following the tutorial given in link, then change the remote of the repository from https to ssh using

    git remote set-url origin [email protected]:<username>/<reponame>.git
    
  3. Now if you encounter the error

       sign_and_send_pubkey: signing failed: agent refused operation 
       [email protected]: Permission denied (publickey). 
       fatal: Could not read from remote repository.  
       Please make sure you have the correct access rights and the repository exists.
    

Never forgot to add the ssh-key from where you are pushing the code.

`ssh-add`

CodePudding user response:

copy everything as it is from your publickey something.pub to the key section of github ssh setting page.

Key should be like this ssh-rsa @<machine_name>

  • Related