25

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?

Marius
  • 57,995
  • 32
  • 132
  • 151
  • 4
    As far as I know, SSH for TFS 2013 / TF Service is not yet supported. I can't remember where I read it though (so I won't make this an answer), but I'm pretty sure someone said it was been worked on. – DaveShaw Aug 23 '13 at 12:52

5 Answers5

19

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

abbottdev
  • 807
  • 1
  • 8
  • 13
5

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

Sam
  • 141
  • 1
  • 7
0

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.

Community
  • 1
  • 1
Yang C
  • 536
  • 5
  • 16
0

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.

Sam
  • 141
  • 1
  • 7
-1

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.

Randy
  • 1