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

Open ssh repository in container fails with host key verification #2087

Closed
tarioch opened this issue Dec 23, 2019 · 4 comments
Closed

Open ssh repository in container fails with host key verification #2087

tarioch opened this issue Dec 23, 2019 · 4 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@tarioch
Copy link

tarioch commented Dec 23, 2019

  • VSCode Version: 1.41.1
  • Local OS Version: Windows 10
  • Remote Extension/Connection Type: Docker
    Steps to Reproduce:
  1. run Remote-Containers: Open Repository in Container...
  2. specify an ssh git repository
  3. the container that tries to git clone it fails with host key verification error
@lem8r
Copy link

lem8r commented Jan 5, 2020

Similar issue on Linux.
When I reopen repo in devcontainer using docker-compose I can't use git anymore. It says
Git: Host Verification failed.

But if I run git fetch in terminal and answer yes to

The authenticity of host 'bitbucket.org (18.205.93.2)' can't be established.
RSA key fingerprint is SHA256:zzXQOXSRBEiUtuE8AikJYKwbHaxvSc0ojez9YXaGp1A.
Are you sure you want to continue connecting (yes/no)?

I can use all git features again.

@chrmarti
Copy link
Contributor

chrmarti commented Jan 6, 2020

/duplicate #1578

@tarioch Duplicate of #1578.

@lem8r That sounds like a limitation of the built-in Git support. Maybe that could show a better error message.

@vscodebot vscodebot bot added the *duplicate Issue identified as a duplicate of another issue(s) label Jan 6, 2020
@vscodebot
Copy link

vscodebot bot commented Jan 6, 2020

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot closed this as completed Jan 6, 2020
@lem8r
Copy link

lem8r commented Jan 6, 2020

@lem8r That sounds like a limitation of the built-in Git support. Maybe that could show a better error message.

I found a solution of my problem by adding

RUN echo "StrictHostKeyChecking no" >> /home/vscode/.ssh/config

to Dockerfile of my devcontainer image

@vscodebot vscodebot bot locked and limited conversation to collaborators Feb 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

3 participants