Git ssh key unknow host
Hi Guys,
I am trying to connect upsoruce project to a google cloud repository using ssh authentication, I prepared the ssh keys and followed the instructions in google cloud to register the key however when I try to complete the settings in upsource it fails with the below error
VCS connection test failed:
List remote refs failed: org.eclipse.jgit.errors.TransportException: Unknown host
I m using Gigt with generic provider and the ssh//… connection string and my private key but it still fails.
any thoughts how we can get this to work? does it even work ?
Please sign in to leave a comment.
"Unknown host"
seems to be clear why it is not working
have you tried to clone the repo manually first?
git clone ssh://git@YOUR_HOST_URL/PROJECT_NAME[.git]
Yes the URL works directly using git command but not using upsource page, it seems it needs to verify the host in some way as the URL is for sure valid, can be resolved and can be accessed.
any thoughts?
Are both systems in the same Network?
If not - maybe some Firewall issues
if yes
You can try following.
create a Projekt on Github (ore somewhere else) and set these settings in upsource.
if this works, maybe some settings in the google cloud repo?
I cant find anything in the jetbrain docs for this. "Unknown host" is only a return text from the server backend, so it could be anything
The jetbrain team is not answering questions in the forum. You can create an Issue Ticket. Then you will get an answer in a few days
Did you ever resolve this? I've tried everything I can think of and still no luck. Your post is the only mention of anybody else struggling with this problem I can find, which is very strange as I would think this would be a major blocker for a lot of people.
Hi
The solution is the following:
1. Create a Repo in Google Cloud Source Repo
2. Create manual Credentials: https://cloud.google.com/source-repositories/docs/authentication (last section)
3. Open hidden file in your home folder e.g Mac /Users/username/.gitcookies
4. The file looks like that: source.developers.google.com FALSE / TRUE 00000000000 o git-{username}.{companydomain}.com={password}
5. Now you can connect the repo via username and password:
Username: git-{username}.{companydomain}.com
Password: {password}
I hope it helps