Skip to content
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

Ability to skip host key checking for private repositories in docker #474

Closed
ghost opened this issue May 3, 2021 · 1 comment · Fixed by #477
Closed

Ability to skip host key checking for private repositories in docker #474

ghost opened this issue May 3, 2021 · 1 comment · Fixed by #477

Comments

@ghost
Copy link

ghost commented May 3, 2021

Feature Request

Feature description :
I'm having problems cloning features private repository when passing a private key to docker run command in CICD due to Host key verification failed. error.

Suggested Solution description ( if you have any ) :
I would like to have a flag to skip host key checking when running in docker.

https://gitpython.readthedocs.io/en/stable/tutorial.html?highlight=Key%20Checking#handling-remotes

Describe alternatives you've considered :
I've considered putting features into public repository, but not everything can be made public.

For now, as a workaround I built a custom Docker image adding this:

RUN echo "Host *" >> /etc/ssh/ssh_config
RUN echo " StrictHostKeyChecking no" >> /etc/ssh/ssh_config

Additional context :
image

@ghost
Copy link
Author

ghost commented May 9, 2021

Opened a PR #477

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

0 participants