programing

Bitbucket이 git pull에서 인증하지 못함

nasanasas 2020. 10. 15. 07:55
반응형

Bitbucket이 git pull에서 인증하지 못함


저는 BitBucket을 사용하고 있으며, 암호가 손상 되었기 때문에 암호를 변경해야했습니다.

git pull

원격 : 잘못된 사용자 이름 또는 암호입니다. 타사 서비스를 통해 로그인하는 경우 계정 프로필에 계정 암호가 설정되어 있는지 확인해야합니다.
치명적 : ' https://bitbucket.org/myusername/myproject.git/ '에 대한 인증 실패

명령 줄을 사용하여 비밀번호를 변경하려면 어떻게해야합니까?


아래와 같이 비밀번호를 재설정해야합니다.

macOS :

git config --global credential.helper osxkeychain

Windows 10의 경우 :

git config --global credential.helper store

이를 실행 한 후 저장소의 사용자 이름과 암호를 입력하라는 메시지가 표시됩니다.


인증 문제 일 뿐이라고 생각합니다 ...

  1. Bitbucket 계정 아이콘 (오른쪽 위)을 클릭하고 "계정 관리"로 이동합니다.
  2. 왼쪽 메뉴에서 "비밀번호 변경"옵션으로 이동합니다.
  3. "새 비밀번호"및 "비밀번호 확인"필드에 비밀번호를 입력합니다.
  4. "비밀번호 변경"을 클릭하십시오.

그게 다야 :)


먼저 .git / config를 편집하고 'url'에서 사용자 이름을 제거하십시오.

나는 이것을 가지고 있었다 :

url = https://username@bitbucket.org/pathto/myrepo.git

그리고 수정 후 :

url = https://bitbucket.org/pathto/myrepo.git

그런 다음 이메일 및 비밀번호 자격 증명을 가져와 (또는 푸시) 사용하여 로그인합니다.


이 작업을 수행하려면 명령 줄에서 암호를 설정하기 위해이 작업을 수행하고 git pull을 실행해야했습니다.

이 방법은 암호를 디스크의 일반 텍스트 파일로 저장합니다.

git config --global credential.helper store
git pull

여기에 다른 솔루션 : GitHub에서 https : //를 사용할 때 암호 입력을 건너 뛰는 방법이 있습니까?


당신이 맥 사용자라면 이것은 나를 위해 일했습니다.

  1. 키 체인 접근을 엽니 다.
  2. Bitbucket 계정을 검색합니다.
  3. 그들을 삭제하십시오.

그런 다음 암호를 다시 묻습니다.


나는이 버튼을 클릭했고 그것은 나를 위해 일했다.

다음은 스크린 샷입니다.


최근 BitBucket에서는 앱 비밀번호를 생성해야합니다.

설정 / 액세스 관리 / 앱 비밀번호.

https://bitbucket.org/account/user/.../app-passwords


올바른 비밀번호와 사용자 이름을 입력했을 때 인증 오류 문제가 발견되면 git 문제입니다. 컴퓨터에 git을 설치할 때이 문제를 해결하려면 git credential manager 활성화를 선택 취소하십시오.여기에 이미지 설명 입력


OSX 키 체인에서 Bitbucket 자격 증명을 업데이트 할 수 있습니다.

명령 줄을 통해 캐시 된 자격 증명 업데이트 :

$ git credential-osxkeychain erase
host=bitbucket.org
protocol=https
[press return]

성공하면 아무것도 인쇄되지 않습니다. 작동하는지 테스트하려면 Bitbucket에서 저장소를 복제 해보세요. 암호를 입력하라는 메시지가 나타나면 키 체인 항목이 삭제 된 것입니다.


이 답변은 오류를 검색 한 후 여기를 탐색하는 SO 사용자를위한 것입니다.

  • Terminal will not accept your Bitbucket or Atlassian web app password if
    your account is associated with an Atlassian (Jira) account. If this is your case, you have a giant string generated for you that you can find in your MacOSX keychain app. This is the password Terminal accepts.
  • It is not clear how to re-generate this password or re-set it to match what Bitbucket will accept.
  • Changing password in SourceTree's settings did not work for me.
  • Changing password in Atlassian account profile did not work for me.
  • Bitbucket does not have a link or interface to change password for this case in the Bitbucket account profile - user has to go to Atlassian account profile.

In my case, nothing worked because I changed my username in Bitbucket.

Atlassian and Bitbucket are not completely integrated. Bitbucket uses the Atlassian user email and web app password, but allows you to have a different username.

There seems to be a bug in this process, especially since it's not clear which application or process is generating the authentication and where it's stored or editable. Changing the username breaks authentication.

There may be a way to update the username used by the credentials and Bitbucket, but I was already several hours behind when I discovered that changing my username back to what it was before restored authentication.


I was facing same error, But I didn't need to change my password.

Just go to bitbucket->preferences->accounts select your account and check if your password is correct.

In my case, my password was messed up. Just corrected my password and it worked.


I know that this is an old question, but I thought I would provide the solution that worked for me. I signed up for bitbucket using my google account and did not have a password. Turns out the password is my Atlassian account password. If you have an Atlassian account then try this password to see if it works.


For me the issue was I changed my username so the git url also got changed. So I had to set the new git url using

git remote set-url origin <URL>

For MacOS below steps help me ...

  1. Got to the folder ~/Library/Application Support/SourceTree
  2. Delete the file {Username}@STAuth-bitbucket.org
  3. Restart Sourcetree
  4. Try to fetch, password filed appear, give your new password
  5. Also can run "git fetch" command in terminal and need to type password
  6. Done

참고 URL : https://stackoverflow.com/questions/33413890/bitbucket-fails-to-authenticate-on-git-pull

반응형