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

Lazygit hangs without displaying SSH host verification prompt when pushing to a new repository #4057

Open
Luigi31415 opened this issue Nov 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Luigi31415
Copy link

Luigi31415 commented Nov 12, 2024

Describe the bug
When trying to push to a repository without verifying its identity, Lazygit becomes unresponsive and does not show an error or prompt to accept the SSH host verification. Lazygit does not respond to the prompt about connecting to a new host identity and remains stuck.

To Reproduce
Steps to reproduce the behavior:

  1. Delete key record from ~/.ssh/known_hosts
  2. Open Lazygit.
  3. Attempt to push to a GitHub repository (or any repository) for the first time, without the host identity being pre-verified.
  4. Lazygit fails to display the expected SSH prompt, which should ask to verify the authenticity of the host.

Expected behavior
Lazygit should display the SSH prompt, asking if the user wants to connect to the unknown host, similar to how it appears in a standard terminal, or show an error:
The authenticity of host 'github.com (140.82.121.3)' can't be established. ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU. This key is not known by any other names. Are you sure you want to continue connecting (yes/no/[fingerprint])?
After confirmation, the push should proceed.

Screenshots
Screenshot 2024-11-12 at 8 26 06 pm

Version info:

  • Lazygit version: commit=e1e4e1be1fb6d0757b2f8590e55aca2738e9f9bd, build date=2024-11-12T06:00:58Z, build source=unknown, version=e1e4e1be, os=darwin, arch=amd64, git version=2.39.5 (Apple Git-154)
  • Git version: git version 2.39.5 (Apple Git-154)

Additional context
This issue blocks the user from completing the push operation in Lazygit when attempting to push to a new, previously unrecognized host.

@Luigi31415 Luigi31415 added the bug Something isn't working label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant