Azure Git 身份验证失败 [英] Authentication failed for Azure Git

查看:46
本文介绍了Azure Git 身份验证失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Azure 中克隆我的 web 应用程序.

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

事情开始按预期进行.

故事的精神:检查部署网址和密码.

The morale of the story: check the deployment url as well as the password.

这篇关于Azure Git 身份验证失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆