Authentication failed for Azure Git

后端 未结 18 999
攒了一身酷
攒了一身酷 2020-12-31 03:19

I\'m trying to clone my webapp in Azure.

When I run git clone https://username@appname.scm.azurewebsites.net:443/appname.git the terminal asks me for my

相关标签:
18条回答
  • 2020-12-31 04:07

    Navigate to the Deployment Center >> Deployment Credentials, there will be application credentials for local git. Use the username and password there will work.

    0 讨论(0)
  • 2020-12-31 04:07

    Using SSH instead of HTTPS worked for me after adding my SSH key

    0 讨论(0)
  • 2020-12-31 04:09

    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

    On the other hand the portal showed: https://user@site.scm.azurewebsites.net:443/site.git

    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
    

    things started working as expected.

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

    0 讨论(0)
  • 2020-12-31 04:11

    In my case it looks like azure server is slowing down.

    Git deployment

    git push azure master

    fatal: Authentication failed for

    FTP deployment

    Authentification - OK upload speed 1-10K

    0 讨论(0)
  • 2020-12-31 04:12

    On mine, the password was never created when I set the deployment user from the cli. I had to go to the web app, app services, for the app, then set the deployment credentials

    0 讨论(0)
  • 2020-12-31 04:14

    Since azure does not support ssh you will have to use your password at least once (in some cases you will not be prompt for password next time)

    Here is an article describe how to set it up

    https://azure.microsoft.com/en-us/documentation/articles/web-sites-publish-source-control/

    And here is how to set up git with Azure: http://weblogs.asp.net/shijuvarghese/building-and-deploying-windows-azure-web-sites-using-git-and-github-for-windows


    Here are the steps that you followed

    If this is your first time setting up a repository in Azure, you need to create login credentials for it.

    You will use them to log into the Azure repository and push changes from your local Git repository. From your web app's blade, click Settings > Deployment credentials, then configure your deployment username and password.

    When you're done, click OK.

    Now do this:

    0 讨论(0)
提交回复
热议问题