2015-05-01 35 views
4

我創建了一個新的Azure AD帳戶和一個Azure節點Web應用程序。我可以使用azure-cli登錄,我可以推入部署。我可以使用ssh密鑰進行Azure git推送部署嗎?

然而,每次我希望能夠使用ssh密鑰進行身份驗證時,都不會收到密碼提示。 Azure門戶設置面板中有一個管理證書部分,並且azure CLI中有一個azure account cert export選項,但我不確定這些是我正在尋找的。

回答

2

Azure Web Apps不支持SSH,因此您需要使用https。然而,你應該只需要設置git remote一次,讓你感到困惑,爲什麼你每次都會被提示輸入密碼。這篇文章介紹了啓用Azure Web Apps的git推送的步驟,也許您錯過了一個步驟。 http://azure.microsoft.com/en-us/documentation/articles/web-sites-publish-source-control/

希望有幫助。

+1

我已經有混帳推部署工作正常,但與用戶名/密碼身份驗證在git中,每次推送時都會收到提示。根據您的鏈接文章(http://azure.microsoft.com/en-us/documentation/articles/web-sites-publish-source-control/#Step7),這似乎是唯一可用的身份驗證方法。 github/bitbucket整合看起來不錯。 –

1

它可以在本地保存的git密碼 (在Windows下使用msysgit :)

git config --global credential.helper wincred 

其他選項的時候,看到Is there a way to skip password typing when using https:// on GitHub?

+0

提示:在你運行這個命令後,你仍然會在下一個'git push azure master'上再次被問到你的密碼。但是接下來的每一步都會被要求輸入密碼。 – Munchkin

相關問題