简体   繁体   中英

Pushing to TFS git using public/private key

I have a TFS server which is using git for source-control. How do I use ssh style public/private keys to push/pull/fetch from the TFS server? That is, where do I add my public key on the TFS server?

As per DaveShaw's comment, it's currently not supported as there is a Change request on the visual studio feedback portal.

https://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/3801342-add-support-for-ssh-keys-as-alternate-authenticati

TFS 2015 update 3 support SSH authentication, You can find the details in below link https://www.visualstudio.com/en-us/docs/git/use-ssh-keys-to-authenticate

For TFS 2013 and TFS 2015 U1 and U2, you can connect to the TFS GIT repository by remotely by changing authentication settings like Windows authentication : Disabled Basic authentication : Enabled

As saying by @abbottdev, there is not possible to public/private key, as far as I konw.

Besides, Windows Credential Store is a tool which could be useful, (it seems to mean " Once and for all ").

PS: It works also for BitBucket .

Good explication on this topic here .

By using TFS 2015 update 3, you can connect the TFS-GIT repository remotely from GIT Installed Linux server using SSH authentication. For this you need to generate public and private key from Linux server by using SSH -keygen command. Then copy the public in TFS 2015.3 profile window. Then you can connect the TFS-GIT repository.

Since git sends cmds and content through ssh, you could install openssh and a separate git client on the tfs server, cygwin is what i used, tfs wouldn't know the difference. You just would need to install openssh as a service. Although I did this with an Atlassian's bamboo server, the concept is the same.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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