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
[git] pick ssh
from $PATH
instead of hardcoding our own (less featureful) one
#58132
Comments
It might be the version of openssh passed in there doesn't support the Additionally GSSAPI support is disabled by default, you'd have override your You could try to point |
Also reproducible on Fedora 30 |
@flokli I was able to track down this issue it's because Fedora uses newer version of ssh. Is there a way to override ssh library used within |
@sigrlami I'm not sure if I understand, but as long as What do you mean with "library"? git only shells out to ssh… |
Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly:
|
I don't know if it's the same problem. But when I try to clone my GH fork of Nixpkgs with the command
I'm running a Fedora 32 system now. |
I marked this as stale due to inactivity. → More info |
@a12l what does |
I still got the problem on Fedora 33. Your suggestoin to set |
Yeah, so the default We hardcode this to the nixpkgs-provided This might play well together with @arianvp's plans to make openssh in the fetchers more minimal (#106858 (comment)) to make the build closure smaller. |
ssh
from $PATH
instead of hardcoding our own (less featureful) one
I marked this as stale due to inactivity. → More info |
falling back to system git (/usr/bin/git) as the nix version broke pulling or pushing to remotes. see: NixOS/nixpkgs#58132 I ran into the same issue as @a12l on Fedora 35.
Is there a way to pick ssh from $PATH in a nix shell while still supplying openssh in the shell for dependency purposes? |
Issue description
I can't clone a git repository hosted at GitLab using SSH. There isn't any problem downloading the repository over HTTPS or using git provided by Fedora's own repositories. The same problem occurs when trying to clone both public and private repos. The system in freshly installed. I've verified that SSH works by connecting to GitLab using the commenad
ssh -T git@gitlab.com
as described in their documentation[0].When I try to clone the repository using Nix's git via SSH I get the following error message:
Content of
/etc/ssh/ssh_config.d/05-redhat.conf
:Steps to reproduce
These steps mostly describe how I've setup my system. I don't know where in the chain the problem lies.
curl https://nixos.org/nix/install | sh
.nix-env -iA nixpkgs.git
Technical details
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste theresults.
system:
"x86_64-linux"
host os:
Linux 4.20.16-200.fc29.x86_64, Fedora, 29 (Twenty Nine)
multi-user?:
no
sandbox:
yes
version:
nix-env (Nix) 2.2.1
channels(user):
"nixpkgs-19.09pre173147.03050e9749e"
nixpkgs:
/home/user/.nix-defexpr/channels/nixpkgs
/usr/bin/git --version
:git version 2.20.1
/nix/store/rsd4vlhc4qmmayjvflds303fy080v1sh-user-environment/bin/git --version
:git version 2.19.2
[0] https://gitlab.com/help/ssh/README#testing-that-everything-is-set-up-correctly
The text was updated successfully, but these errors were encountered: