holzschu / holzschu/a-shell

Unable to use git/lg2 over ssh: invalid or unknown remote ssh hostkey

Open
#989 14 comments 0 reactions 0 assignees View on GitHub
fix committed
Dominant language
Perl
Stars
3.9k
Forks
213
Avg merge
1m
Merged PRs (30d)
1

Description

I'm trying to perform some basic operations using the included lg2 command, but I can't get any of them to work on any git URL (starting with `git@`). No matter what I do, I always get the same output:

```
[~/Documents]$ lg2 clone git@github.com:holzschu/a-shell.git
Cloning into ./a-shell.git

ERROR 23: invalid or unknown remote ssh hostkey
Bad news:
invalid or unknown remote ssh hostkey
```

I first ran into this with a sourcehut git URL but as you can see it doesn't work with github either. With both servers I can validate SSH is working using `ssh -T `. I can clone over https, but sourcehut requires ssh for read/write access so this isn't an option for me. I've tried various different SSH configs, known_hosts, and git configs, but none made a difference. From what I can tell from the source code, it looks like it should prompt to add the host to known_hosts, but I've been unable to get that to trigger at all. Not to mention it still doesn't work when manually added to known_hosts, or when added when prompted by the ssh command.

I feel like this has to be me doing something stupid, I can't imagine something this basic would be broken without any issues or discussions created.

P.S. thank you for this amazing app <3

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.