'git push heroku master'가 여전히 인증을 요청합니다.
나는 실행했다 :
$ heroku login
그러나 푸시를 시도 할 때 여전히 인증을 요청합니다.
$ git push heroku master
Username for 'https://git.heroku.com': <email>
Password for 'https://<email>@git.heroku.com':
그런 다음 경고 : Git을 사용하여 사용자 이름과 암호로 인증하지 마십시오.
heroku 로그인을 다시 실행하고 성공적으로 인증했지만 여전히 동일한 실패가 발생합니다.
리모컨을 확인했습니다.
$ git remote -v
heroku https://git@heroku.com/appname.git (fetch)
heroku https://git@heroku.com/appname.git (push)
또한 새 공개 키를 생성하여 Heroku에 전달하고 유효성을 검사했습니다 : https://devcenter.heroku.com/articles/keys
Git 1.9.5를 사용하는 Windows 8을 사용 중입니다.
다음과 같이 로그인하여이 문제를 해결했습니다.
사용자 이름 : 공백
비밀번호 : heroku 인증 토큰
인증 토큰을 검색 할 수있는 위치 $ heroku auth:token
나는 같은 문제가 있었다 (git는 인증 할 수 없었다). GIT가 % HOME % / _ netrc 파일에서 인증 데이터를 읽으려고하는데 Windows에서는이 변수가 없습니다 (% USERPROFILE % 및 % HOMEDRIVE % + % HOMEPATH %).
나는 HOME을 % USERPROFILE % (heroku가 _netrc 파일을 저장 한 장소)로 설정하고 GIT가 작동하기 시작했습니다.
먼저 _netrcheroku에서 만든 파일을 찾습니다 . 창에서는에서 찾을 수 있습니다 C:\Users\User Name\_netrc.
해당 파일에는 다음에 대한 자격 증명이 포함되어 있습니다. git.heroku.com
machine git.heroku.com
login abcd123@gmail.com
password xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
$ git push heroku master명령 후 인증을 요청할 때 해당 로그인 및 암호를 사용하십시오.
보내는 사람 에게 Heroku 문서
다음 명령을 입력하십시오.
# Enable SSH authentication
$ heroku create --ssh-git
# Redirect tall HTTPS calls to SSH
$ git config --global url.ssh://git@heroku.com/.insteadOf https://git.heroku.com/
사용자 이름 : Heroku에 등록 할 때 사용한 이메일
비밀번호 : Heroku 웹 사이트의 계정 설정에서 Heroku가 제공하는 API 키
이것은 나를 위해 일했습니다.
나는 똑같은 문제가 있습니다. 제 경우에는 Git bash 대신 실수로 창 콘솔을 사용했습니다.
userdir의 Windows 7에서
_netrc파일 이름을 바꾸는 것이.netrc저에게 효과적이었습니다.
.. 다른 많은 튜토리얼의 모든 단계를 시도한 후.
userdir 또는 전체 콤보의 cmd에서 세 번째 명령을 실행하십시오.
setx HOME %USERPROFILE%
cd %HOME%
REN _netrc .netrc
이것은 git과 heroku가 동일한 _netrc파일을 사용하지 않기 때문에 발생 합니다. 이것은 제가 고치려고하는 부분이지만 _netrc파일이 있어야 할 위치와 CLI가 파일을 넣는 위치 를 찾아서 저를 도울 수 있습니다 .
다음은 _netrc파일이있을 수있는 잠재적 소스를 출력 합니다.
> echo %HOME%
> echo %HOMEDRIVE%%HOMEPATH%
> echo %USERPROFILE%
You could try to add the _netrc file into one of them to find the one that matches. Let me know which has the _netrc file, and where you are able to put it and have git pick it up by not asking you for the username/password.
Also check your .gitconfig to see if there are any git credential helpers, that may be causing an issue.
This topic is old, I know.
However, none of the previous solutions worked for me.
My problem was that "Windows Credentials" (os: Windows 10) had another credential previously associated with Heroku (company account) and used this instead of the new one (my personal account).
I had to go to: "Control Panel\All Control Panel Items\Credential Manager" (from Control Panel), and modify all the credentials: https://git.heroku.com (and all those associated with "heroku" word) with the account current.
However, the password I placed the Key API that is displayed in "Dashboard" of the site and the command works: git push heroku master.
7 hours that life will not give me back. :/
My 2 cents.
If someone is still struggling with this, this answer helped me a lot Use Heroku API key.
First, as @Raziza O mentioned in a comment, to get heroku API key
https://dashboard.heroku.com/account. Roll down the screen and hit the reveal button.
Then, just run git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git HEAD:master
Pardon for the late reply, but I have fixed my problem two months ago. (Just haven't marked the question as answered. /noob)
SSH Fingerprint not authorized on Heroku after git restore
What I did was open git bash instead of command prompt and type "git push heroku master". It worked :D
I fixed this by changing the http address to ssh://git@heroku/...
If anybody else is trying to solve this on cygwin: http://www.railszilla.com/git-push-heroku-master-authentication/start rewriting to SSH transport did the trick for me:
git config --global url.ssh://git@heroku.com/.insteadOf https://git.heroku.com/
You have probably logged into heroku in two terminals, and if you try to run a command on first terminal, it will report such error, as new authentication was made in the second terminal.
Either login again with heroku login and run commands in that terminal, or run commands in that second window (if you have it still open).
I had the same problem on windows and get it sorted just using the PSW available on the on _netrc file it can be found in C:\Users\User Name_netrc.
I hope it can help.
'IT TIP' 카테고리의 다른 글
| ArrayList에서 항목 이동 (0) | 2020.10.30 |
|---|---|
| 라 라벨은 다 대다 관계 저장 / 업데이트 (0) | 2020.10.30 |
| JavaScript 객체 리터럴에서 변수 키를 사용하는 방법이 있습니까? (0) | 2020.10.30 |
| NLTK로 불용어 제거 (0) | 2020.10.30 |
| AppStore-앱 상태가 판매 준비가되었지만 앱 스토어에 없습니다. (0) | 2020.10.29 |