인증을 bitbucket하지 못했습니다.
sourcetree를 사용하여 bitbucket에서 https 프로토콜을 통해 프로젝트를 푸시하려고합니다.
하지만 내 로그인 및 비밀번호 (웹 사이트에서 작동)로 bitbucket에 연결할 수 없습니다. 치명적인 오류 : "인증 실패"가 발생합니다.
https 대신 ssh 프로토콜을 사용하여 문제를 해결할 수있는 다른 게시물을 읽었으므로 소스 트리 faq의 지침에 따라 ssh 키를 설정했습니다 . 하지만 이제는 코드를 푸시하고 싶을 때 ssh 프로토콜로 변경하는 방법을 모르겠습니다. 누군가 내가 어떻게 할 수 있는지 알아? 감사합니다.
GIT 콘솔에 인증 문제가있는 경우 다음과 같이 인증을 시도 할 수 있습니다.
https://<username>:<password>@bitbucket.org/<username>/<repo>.git
최근에 SourceTree와 비슷한 문제가 발생했습니다. 원격 원본으로 /에서 푸시 / 풀 / 가져 오기를 시도 할 때마다 인증 오류가 발생합니다 (Stash와 함께 SourceTree 사용). 가끔은 보안 문자로 Stash에서 도전 할 수 있지만 올바른 정보를 제공했는지 여부에 관계없이 아무런 차이가 없습니다.
저에게는 기업 환경에서 SourceTree와 Stash를 사용하고 있습니다. 사용자 계정은 네트워크 자격 증명을 기반으로합니다. 네트워크 보안의 일환으로 정기적으로 이러한 암호를 변경해야합니다.
저는 SourceTree / Stash가 네트워크 암호 변경을 "인식"한다는 가정하에 운영하고있었습니다. 그러나 분명히-적어도이 경우에는-그렇지 않았습니다.
해결하기 위해 내가해야 할 일은 다음과 같습니다.
도구> 옵션> 인증> 편집 (암호 편집)
현재 네트워크 암호와 일치하도록 암호를 설정했고 모든 것이 예상대로 작동하기 시작했습니다.
이것이 OP에 도움이되는지 확실하지 않지만 비슷한 문제에 대한 답변을 찾는 다른 사람에게 도움이되기를 바랍니다.
도구-> 옵션-> git 및 '시스템 git 사용'을 선택하는 것이 저에게 마법을주었습니다.
OS X 키 체인 에 저장된 값을 편집하여 문제를 해결했습니다 . "bitbucket"( 응용 프로그램 암호로 ) 찾아 값을 변경했습니다.
그런 다음 Sourcetree 에서 푸시하려고 할 때 새 암호를 직접 다시 입력해야했습니다.
특수 문자 (! "§ $ % &&)를 사용하지 않고 저장소 암호를 변경 한 후 문제가 해결되었습니다.
분명히 win-credential-store와 git 및 bitbucket의 웹 인터페이스는 다른 문자 인코딩을 사용합니다.
완전한 절차 :
D:\shared\Project> cd /path/to/your/project
D:\shared\Project> git init
D:\shared\Project> git remote add origin https://bitbucket.org/USERNAME/project.git
D:\shared\Project> git-credential-winstore.exe
그때
D:\shared\Project> git push
Failed to erase credential: Element not found
fatal: Authentication failed for 'https://bitbucket.org/USERNAME/project.git/'
암호를 변경 한 후 :
D:\shared\Project> git push
Counting objects: 102, done.
Delta compression using up to 8 threads.
... etc. ...
Windows 트레저 리의 설정 :
address: git:bitbucket.org (remeber the preceding "git:")
user: USERNAME
pass: old incl!"§§$%&, new without!"§$%%&/( (your passphrase!)
sourcetree 2.0으로 되돌 렸습니다.
이것은 나를 위해 버그를 해결했습니다.
https://www.sourcetreeapp.com/download-archives
나는 다른 모든 것을 시도했지만 무력하다는 것을 알았지 만 이것은 실제로 나를 위해 일했습니다. "사용자 인증 정보를 업데이트하려면 제어판-> 인증 관리자-> 일반 인증으로 이동하십시오. git 계정과 관련된 인증 정보를 찾아 업데이트 된 비밀번호를 사용하도록 편집하십시오."
위의 솔루션은이 링크에서 찾았습니다 : https://cmatskas.com/how-to-update-your-git-credentials-on-windows/
나는 같은 문제가 있었다. Windows 용 Git의 버그와 관련이 있습니다. 나를 위해 SourceTree에서 사용되는 Git을 임베디드 것으로 변경하는 것으로 충분했습니다.
도구-> 옵션-> Git을 클릭하고 'Embedded Git 사용'버튼을 클릭합니다.
Tools> Options> Use System Git다음 선택 git.exe파일을
자격 증명이 다시 필요하며 문제가 해결됩니다.
google / 기타 oauth를 사용하여 계정을 만든 경우 먼저 계정에 대해 bitbucket 비밀번호를 설정해야합니다. URL : https://bitbucket.org/account/user/ / 또는 메뉴에서 Bitbucket 설정을 찾습니다.
그런 다음 git에서 로그인 할 수 있습니다 (명령 줄을 통해 시도했습니다). 자격 증명을 위해 내장 관리자를 사용합니다.
credential.helper = 관리자
이제 bitbucket 사이트에 비밀번호를 설정하고 (이메일도 확인 됨) 푸시를 다시 시도한 후 비밀번호를 입력하라는 메시지가 표시되고 코드가 푸시되었습니다.
bitbucket 웹 페이지의 메뉴 위치 이미지-> http://ctrlv.in/747291(2016 년 5 월 기준).
나는 같은 문제가 있었다. bitbucket 설정에서 sourcetree에 대한 앱 비밀번호를 추가해야합니다. 메뉴, 앱 비밀번호에서 "Bitbucket 설정"을 클릭하고 앱 비밀번호를 만듭니다. 그런 다음 SourceTree로 이동하여 저장된 암호를 편집하십시오.
Mac에서는로 이동 Preferences > Accounts한 다음로 새 계정을 추가하고 Bitbucket Server회사의 bitbucket 서버 URL을 입력해야했습니다. 그런 다음 HTTPS프로토콜 로 선택 하고 사용자 이름 (@email 제외)과 비밀번호를 입력해야했습니다.
또한 페이지 Set Default...하단의 버튼 을 클릭하여이 새 계정을 기본 계정으로 설정했습니다 Preferences > Account.
이걸로 오랜 시간 싸운 후 효과가있는 것을 찾은 것 같습니다. 사용자 이름을 포함하지 않도록 URL을 최적화했지만 (가능한 한 일반적으로 유지) 인증 대화 상자가 계속 나타납니다.
다음과 같이 마음에 떠오른 모든 것을 시도했습니다.
- MFA (Multi Factor Authentication) 활성화 및 비활성화
- 앱 암호 생성 (다시 MFA 활성화 여부에 관계없이)
내가 사용한 도구 (SourceTree 포함)에 관계없이 아무것도 작동하지 않았습니다. 서버에서 계속 "앱 비밀번호 만들기"를 반환했습니다.
기본적으로
- 사용자 이름이 포함 된 URL (예 : https : //myusername@bitbucket.org/ ...)을 사용 합니다.
- bitbucket에서 만든 앱 비밀번호 사용
서버가 앱 비밀번호를 사용하도록 제안하는 대신 응답에 이것을 반환했다면 너무 좋을 것입니다.
이 문제는 git 계정과 PC 의 비밀번호 가 다를 수 있기 때문에 발생합니다 . 따라서 아래 예와 같이 사용자 이름 을 포함하십시오 .
https://myusername@bitbucket.org/...
https: //devi@bitbucket.org/...
I have resolve the issue by following below steps in MacOS..
- Got to the folder ~/Library/Application Support/SourceTree
- Delete the file {Username}@STAuth-bitbucket.org
- Restart Sourcetree
- Try to fetch, password filed appear, give your new password
- Also can run "git fetch" command in terminal and need to type password
- Done
None of the above worked for me - the problem lay in my Sourcetree Preferences. In the Network tab, I had a setting there for 'Default usernames for URLs which do not include one:'. The username was incorrect where I had entered it incorrectly previously - I had set it to my email rather than username. I highlighted the entries and clicked Remove for both. Then I returned to my repository page and clicked Push again. On pushing, it asked me for full username and password, which I was able to enter correctly - the push then finally worked.
- Inside company but will held true anywhere.
- Logout from Bitbucket ( in case you are using)
- Login with your credential
- Go back to console
- Fire the same command
- It will ask for password - Provide it.
- You are good to go.
The issue for me was that I did not have an account added to Sourcetree.
Adding an account allowed me to push to my repo:
Tools > Options > Authentication > Add > Refresh OAuth Token
For Mac Users. There was default account set on Source tree which doest allow me to clone the Url because my present Url was of different bitbucket account. So, It shows the invalid source path and i then click on Advance Options and found Authentication failed to your_clone_url. So follow these steps
- Select Source Tree. Go to SourceTree menu -> Select Preferences.
- It will show new window. Then Choose Accounts

Here it will show list of your accounts. Just click on Add button from the bottom and add your bitbucket account details. It will list you account under Accounts tab. You can also set default account by clicking on Set Default .. button from bottom. Now all is done.
I tried almost all the solution given here.
Which worked for me is I opened the GIT GUI and in that tried to Push. Which ask for the credentials, enter correct userid and password it will start working again.
I was using below command
git clone -b branch-name https://<username>@bitbucket.org/<repository>.git
Issue got resolved after adding password with username (see below command):
git clone -b branch-name https://<username>:<password>@bitbucket.org/<repository>.git
In windows this worked for me
git config --global http.sslVerify false
참고URL : https://stackoverflow.com/questions/20953940/authentication-failed-to-bitbucket
'Programing' 카테고리의 다른 글
| ruby .split ( '\ n') 새 줄에서 분할되지 않음 (0) | 2020.10.18 |
|---|---|
| iPad에서 UITableView backgroundColor 항상 흰색 (0) | 2020.10.18 |
| enum 값을 int로 직렬화하는 방법은 무엇입니까? (0) | 2020.10.18 |
| Vista에서 Environment.GetFolderPath (… CommonApplicationData)가 여전히 "C : \ Documents and Settings \"를 반환합니다. (0) | 2020.10.18 |
| 전역 변수로 '창'이있는 JSLint의 문제 (0) | 2020.10.18 |


