-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Host key verification failed #66
Comments
Hi there! We use Pivotal Tracker to provide visibility into what our team is working on. A story for this issue has been automatically created. The current status is as follows:
This comment, as well as the labels on the issue, will be automatically updated as the status in Tracker changes. |
You need to configure a |
private_key does not help either. Host key verification occurs way before the SSH client has a chance to present the key. |
Git has terrible error messages. It'll say that when really the auth failed, the repo didn't exist, or the moon was half full. I would double check the formatting of your private key. It should look like: resources:
- name: foo
type: git
source:
uri: ...
private_key: |
---BEGIN BLAH BLAH---
.....
---END BLAH BLAH--- |
My bad. resources:
- name: foo
type: git
source:
uri: ...
private_key: |-
---BEGIN BLAH BLAH---
.....
---END BLAH BLAH--- that was the show stopper in this case. |
Ah, I guess the trailing linebreak is important for private keys. Good to know. |
Hello again! All stories related to this issue have been accepted, so I'm going to automatically close this issue. At the time of writing, the following stories have been accepted:
If you feel there is still more to be done, or if you have any questions, leave a comment and we'll reopen if necessary! |
I can second the observation made by @vito that adding a trailing linebreak (i.e. empty line after private key changes the pipeline definition from even when using a parameter for the key. However, I still get an error checking for my repository, same for public repositories hosted on github.
Any idea what could be causing this? How can I debug what's going on? Does the worker miss an entry to trust github.com host key (http://stackoverflow.com/questions/13363553/git-error-host-key-verification-failed-when-connecting-to-remote-repository)? |
Turns out one part of my issue was caused by a wrong MTU setting for garden (host supports 1450 mtu only). Had to fix this on the docker host via The second part was this: I was using |
I got the same error but in my case was a dns error. |
I have just started learning Concourse CI from the tutorial https://github.com/starkandwayne/concourse-tutorial On Step 12 got into troubles with git-resource, the process fails on SSH host key verification.
This is the link to the original issue so Dr Williams would be in the loop.
The text was updated successfully, but these errors were encountered: