Git is throwing error

"C:\Program Files (x86)\Git\bin\git.exe" push -u --recurse-submodules=check - 
-progress "origin" refs/heads/dev_civaplugin:refs/heads/dev_civaplugin
remote: Password authentication is not available for Git operations.
remote: You must use a personal access token or SSH key.
remote: See https://github.build.ge.com/settings/tokens or 
https://github.build.ge.com/settings/ssh
fatal: unable vĩ đại access 
'https://github.build.ge.com/108012572/NextGenUT.git/': The requested URL 
returned error: 403
Done

 Press Enter or Esc vĩ đại close console...

I cloned remote repository successfully using git extention and able vĩ đại create new branch also but when tried vĩ đại push my changes its throwing above error.

I created public and private key using Tools> putty> generate or import key my pc don’t have > .SSH thư mục in user In git hub I created Personal access token also using Settings > Developer settings > Personal access tokens Not getting clear idea of what the issue is, any input is a great help

asked Aug 1, 2018 at 13:20

Go vĩ đại step #6 directly [follow from step #1 if you have single sign-on]

  1. Generate an SSH key in your local machine (enter passphrase while creating key)
ssh-keygen -t rsa
  1. Copy the public key which starts with ssh-rsa
  2. Go vĩ đại Github > settings > SSH and GPG keys
  3. Click on New SSH key and paste the private that you've copied earlier, and create it

  1. Now, enable SSO and authorize your org

  1. Make sure that the newly created ssh private key is added into the SSH authentication agent
ssh-add 
(e.g., ssh-add id_rsa)

Note: By mặc định, it will have your id_rsa primary key only; so sánh, you need vĩ đại add your custom private key in it.

lkahtz

4,7968 gold badges48 silver badges74 bronze badges

answered Feb 10, 2020 at 8:04

2

See your git remote show origin — you have URL for the remote origin as https://github.build.ge.com/108012572/NextGenUT.git/. HTTP(S) protocol certainly doesn't use SSH keys, for SSH keys you have vĩ đại change the URL vĩ đại use ssh:// protocol. Or you have vĩ đại pass your Github name in the HTTP(S) URL. So either

git remote set-url origin https://[email protected]/108012572/NextGenUT.git

to use Github token or

git remote set-url origin ssh://[email protected]/108012572/NextGenUT.git

to use SSH keys.

answered Aug 1, 2018 at 16:46

4