-
-
Notifications
You must be signed in to change notification settings - Fork 156
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
GitHub SSH failure due to insteadOf
git configuration
#874
Labels
Comments
This was referenced Sep 1, 2023
I have the same Git setting to use SSH instead of HTTPS and ran into the same issue with:
but my error message was:
As a workaround, I commented out the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
If a user has automatic git redirect from https to ssh,
cargo generate
fails with theinvalid or unknown remote ssh hostkey
error.make sure you
rustup update
cargo install cargo-generate
.gitconfig
, provide all sections that contains one of:insteadOf
,url
To Reproduce
~/.gitconfig
(on Linux), add this section:cargo generate --git https://github.com/rahix/avr-hal-template
Expected behavior
generation should start
Desktop (please complete the following information):
rustc --version
: rustc 1.67.1 (d5a82bbd2 2023-02-07)cargo generate --version
: cargo generate-generate 0.17.6The text was updated successfully, but these errors were encountered: