question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

VCS fails when connecting to unknown host via SSH

See original GitHub issue

Steps to reproduce:

  1. Create a .repos file with ssh URLS
  2. Delete your ~/.ssh/known_hosts file
  3. Import the .repos file using vcs and watch the output look something like the following:

EEEThe authenticity of host ‘gitlab.com (35.231.145.151)’ can’t be established. ECDSA key fingerprint is SHA256:HbW3g8zUjNSksFbqTiUWPWg2Bq1x8xdGUrliXFzSnUw. Are you sure you want to continue connecting (yes/no)? The authenticity of host ‘gitlab.com (35.231.145.151)’ can’t be established. ECDSA key fingerprint is SHA256:HbW3g8zUjNSksFbqTiUWPWg2Bq1x8xdGUrliXFzSnUw. Are you sure you want to continue connecting (yes/no)? The authenticity of host ‘gitlab.com (35.231.145.151)’ can’t be established. ECDSA key fingerprint is SHA256:HbW3g8zUjNSksFbqTiUWPWg2Bq1x8xdGUrliXFzSnUw. Are you sure you want to continue connecting (yes/no)? The authenticity of host ‘gitlab.com (35.231.145.151)’ can’t be established. ECDSA key fingerprint is SHA256:HbW3g8zUjNSksFbqTiUWPWg2Bq1x8xdGUrliXFzSnUw. Are you sure you want to continue connecting (yes/no)? .The authenticity of host ‘gitlab.com (35.231.145.151)’ can’t be established. ECDSA key fingerprint is SHA256:HbW3g8zUjNSksFbqTiUWPWg2Bq1x8xdGUrliXFzSnUw. Are you sure you want to continue connecting (yes/no)? …

I tried typing “yes” a few times and more dots appeared, but then it hanged for quite a while and seemed to get stuck.

Possible Solutions:

  • Add an arg to auto-accept the connection (possibly dangerous).
  • Improve the user experience by presenting a (y/n) prompt that actually works.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dirk-thomascommented, Dec 12, 2019

By default vcs runs concurrent commands for all repositories therefore it can’t use stdin / a prompt “that actually works”.

Have you tried to operate on the repositories sequentially with the option -w 1?

0reactions
dirk-thomascommented, Dec 17, 2019

See #113 for a workaround. Please try the proposed change and comment if that works for your use case.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Git error: "Host Key Verification Failed" when connecting to ...
You are connecting via the SSH protocol, as indicated by the ssh:// prefix on your clone URL. Using SSH, every host has a...
Read more >
How to Fix the SSH “Connection Refused” Error - Kinsta
If SSH isn't installed on your server. Install an SSH tool such as OpenSSH on the server you want to connect to using...
Read more >
Not able to connect to other hosts from non-localhost Cockpit ...
Host is unknown" Expected results: Either "Could not connect to host" or a "SSH Key ... it fails), and in both cases it...
Read more >
How can you SSH to an unknown host name with a known key?
When I connect to the VPN, it always gives me a different hostname and ip address. The hostname is always remote-[last octet of...
Read more >
Git ssh key unknow host - Upsource Support | JetBrains
VCS connection test failed: List remote refs failed: org.eclipse.jgit.errors.TransportException: Unknown host. I m using Gigt with generic ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found