Azure Git 的身份验证失败 [英] Authentication failed for Azure Git
问题描述
我正在尝试在 Azure 中克隆我的 webapp.
I'm trying to clone my webapp in Azure.
当我运行 git clone https://username@appname.scm.azurewebsites.net:443/appname.git
时,终端会询问我的密码.
When I run git clone https://username@appname.scm.azurewebsites.net:443/appname.git
the terminal asks me for my password.
但是当我填写密码时,一直提示认证失败.
But when I fill in my password, it keeps saying that the authentication has failed.
即使我在门户中多次更改密码(设置 -> 设置部署凭据).
Even though I changed my password plenty of times in the Portal (Settings -> Set deployment credentials).
它一直说我的身份验证失败是什么原因?
Any reason it keeps saying that my authentication has failed?
推荐答案
我的网站也遇到了同样的问题,结果发现问题出在网站 url:自动生成的远程 URL 是:https://user@site.scm.azurewebsites.net/站点.git
I had the same problem with my site and it turned out the issue is with the site url: the automatically generated remote url was: https://user@site.scm.azurewebsites.net/site.git
另一方面,门户显示:https://user@site.scm.azurewebsites.net:443/site.git
使用以下命令在 git 中更新远程 url 后:
After updating the remote url in git with the following command:
git remote set-url azure
https://<user>@<site>.scm.azurewebsites.net/<site>.git
https://<user>@<site>.scm.azurewebsites.net:443/<site>.git
事情开始按预期进行.
故事的士气:检查部署 url 和密码.
The morale of the story: check the deployment url as well as the password.
这篇关于Azure Git 的身份验证失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!