简体   繁体   English

我可以使用ssh密钥进行Azure git push部署吗?

[英]Can I use an ssh key for Azure git push deployment?

I've created a new Azure AD account and an Azure node web app. 我创建了一个新的Azure AD帐户和一个Azure节点Web应用程序。 I can log in using azure-cli and I can git push deploy. 我可以使用azure-cli登录,我可以使用git push deploy。

However instead of getting a password prompt every time I'd like to be able to authenticate using an ssh key. 但是,每次我希望能够使用ssh密钥进行身份验证时,而不是获取密码提示。 There's a Management Certificates section in the azure portal settings panel, and there's an azure account cert export option from the azure CLI, but I'm not sure either of those are what I'm looking for. azure portal设置面板中有一个Management Certificates部分,azure CLI中有一个azure account cert export选项,但我不确定这些是我正在寻找的。

It is possible to save your git password locally (on windows, when using msysgit:) 可以在本地保存你的git密码(在windows上,使用msysgit :)

git config --global credential.helper wincred

for other options, see Is there a way to skip password typing when using https:// on GitHub? 对于其他选项,请参阅在GitHub上使用https://时是否有办法跳过密码输入?

Azure Web Apps does not support SSH so you need to use https. Azure Web Apps不支持SSH,因此您需要使用https。 However you should only need to set the git remote once so confused why you would get prompted for a password each time. 但是,您应该只需要设置一次git remote,因此很困惑为什么每次都会提示您输入密码。 Here is an article that walks through the steps for enabling git push for Azure Web Apps, maybe there's a step you missed. 这篇文章介绍了为Azure Web Apps启用git推送的步骤,也许您错过了一步。 http://azure.microsoft.com/en-us/documentation/articles/web-sites-publish-source-control/ http://azure.microsoft.com/en-us/documentation/articles/web-sites-publish-source-control/

hope that helps. 希望有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM