Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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. I can log in using azure-cli and I can git push deploy.

However instead of getting a password prompt every time I'd like to be able to authenticate using an ssh key. 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.

like image 594
Andrew Lavers Avatar asked May 01 '15 18:05

Andrew Lavers


People also ask

How do I get my SSH key from Azure DevOps?

Open your security settings by browsing to the web portal and selecting your avatar in the upper right of the user interface. Select SSH public keys in the menu that appears. Select + New Key. Copy the contents of the public key (for example, id_rsa.


2 Answers

It is possible to save your git password locally (on windows, when using msysgit:)

git config --global credential.helper wincred

for other options, see Is there a way to skip password typing when using https:// on GitHub?

like image 127
Leen Avatar answered Oct 05 '22 04:10

Leen


Azure Web Apps does not support SSH so you need to use https. However you should only need to set the git remote once so confused why you would get prompted for a password each time. Here is an article that walks through the steps for enabling git push for Azure Web Apps, maybe there's a step you missed. http://azure.microsoft.com/en-us/documentation/articles/web-sites-publish-source-control/

hope that helps.

like image 40
Mark Brown Avatar answered Oct 05 '22 04:10

Mark Brown