We have repositories with submodules and are unable to clone the submodules. The submodules are configured to use ssh paths. We are getting "Host key verification failed." and "fatal: Could not read from remote repository.".
Is there a way we can configure the ssh keys for our VSTS hosted pipeline agent. Or maybe get the public keys of the agent? We see the following:
For the server:
2018-03-26T07:21:39.7141386Z ##[command]git config --get-all http.https://contoso.visualstudio.com/abcapp/_git/abc-api-customers.extraheader
2018-03-26T07:21:39.7575805Z ##[command]git config --get-all http.proxy
2018-03-26T07:21:39.8196100Z ##[command]git -c http.extraheader="AUTHORIZATION: bearer **" fetch --tags --prune --progress --no-recurse-submodules origin
For the submodule:
2018-03-26T07:21:46.8528884Z Submodule 'abcCustomers/abcCommon' (ssh://[email protected]:22/abcapp/_ssh/abc-api-common) registered for path 'abcCustomers/abcCommon'
Please advise.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@sspage I'm sorry that this issue slipped through the cracks, were you able to get this resolved?
@steved0x unfortunately not... any advice or workarounds besides separating out? Should this be possible?
@sspage I'm checking with the product group to get more information.
I am attempting to connect using a custom key pair I created on my Mac dev box. I've created the key, added to ssh-agent, and even added the config entry, and it fails every time. Where do I report and work with someone to resolve the issue.
The new SSH URL doesn't work as I would expect it to when the project name has spaces in it. The URL is generated unescaped. I have not verified the behavior on Windows, but on a Mac this results in a somewhat cryptic error message: "Command git-upload-pack 'v3/{your account name}/{first word of project name before space}' is not in the expected format." Substituting %20 for the space results in the following error message: "TF200016: The following project does not exist: {first word of project name}%20{second word of project name}. Verify that the name of the project is correct and that the project exists on the specified Team Foundation Server."
To clone successfully, you must put the entire ssh URL in double quotes.
When trying to add a SSH public key i get this message:
The required anti-forgery form field "__RequestVerificationToken" is not present. Ensure that cookies are enabled in your browser.
I am sure the cookies are enabled
@sspage
Thanks for your question. It looks like you're working through an issue with your scenario or implementation, rather than an issue with the documentation. Here are a few options where you might consider asking your question:
Most helpful comment
The new SSH URL doesn't work as I would expect it to when the project name has spaces in it. The URL is generated unescaped. I have not verified the behavior on Windows, but on a Mac this results in a somewhat cryptic error message: "Command git-upload-pack 'v3/{your account name}/{first word of project name before space}' is not in the expected format." Substituting %20 for the space results in the following error message: "TF200016: The following project does not exist: {first word of project name}%20{second word of project name}. Verify that the name of the project is correct and that the project exists on the specified Team Foundation Server."
To clone successfully, you must put the entire ssh URL in double quotes.