question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

VSTS SSH Git Remote does not work?

See original GitHub issue

I’m getting the following error:

C:\Users\joschm\.nuget\packages\microsoft.sourcelink.common\1.0.0-beta-62909-01\build\Microsoft.SourceLink.Common.targets(59,5): error : SourceRoot.SourceLinkUrl is empty: 'C:\Users\joschm\Intentional\services-utilities\' [C:\Users\joschm\Intentional\services-utilities\Authentication\Authentication.csproj]

I’m guessing it’s because I use ssh as my Git remote.

λ git remote -v
origin  ssh://intentional@vs-ssh.visualstudio.com:22/intent/_ssh/services-utilities (fetch)
origin  ssh://intentional@vs-ssh.visualstudio.com:22/intent/_ssh/services-utilities (push)

Is this not supported yet?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
tmatcommented, May 26, 2018

Will fix.

0reactions
rlvandaveercommented, Jul 23, 2018

@tmat You set up git host aliases in your .ssh/config file. This is necessary if you have multiple VSTS accounts with different credentials, like me. This alias only applies to SSH based connections, it does not affect HTTP.

Host company-vsts
	Hostname vs-ssh.visualstudio.com
	User company
	IdentityFile ~/.ssh/id_company_vsts
	AddKeysToAgent yes
	UpdateHostKeys yes

Host company2-vsts
	Hostname vs-ssh.visualstudio.com
	User company2
	IdentityFile ~/.ssh/id_company2_vsts
	AddKeysToAgent yes
	UpdateHostKeys yes
Read more comments on GitHub >

github_iconTop Results From Across the Web

Remote Development Tips and Tricks
Visual Studio Code Remote Development troubleshooting tips and tricks for SSH, Containers, and the Windows Subsystem for Linux (WSL)
Read more >
Git isn't working as expected with vscode remote ssh
Turns out my problem was that I was opening VSCode to a symlinked directory on the remote server. If I instead pointed it...
Read more >
Use SSH key authentication - Azure Repos
Verify which remotes are using SSH. Run git remote -v in your shell or use a GUI client instead. Visit your repository on...
Read more >
How To Use Visual Studio Code for Remote Development ...
This tutorial focuses on using the Remote-SSH plugin to enable remote software ... This tutorial will not work on ChromeOS devices.
Read more >
Troubleshooting Git
This problem may be caused by a slow internet connection. If you use Git over HTTP instead of SSH, try one of these...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found