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

查看:234
本文介绍了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为: https://user@site.scm.azurewebsites.net/site.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

On the other hand the portal showed: 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屋!

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