We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ControlMaster
ControlPath
Describe the bug
Hi,
Flake archive SSH usage with ControlMaster and ControlPath hangs forever.
This is similar to #8329, but on flake archive and with ControlPath.
Steps To Reproduce
With a ~/.ssh/config containing:
~/.ssh/config
ControlMaster yes ControlPath ~/.ssh/master-%r@%n:%p
Run eg. nix --extra-experimental-features 'nix-command flakes' flake archive --to ssh://root@my-remote-nixos --json .
nix --extra-experimental-features 'nix-command flakes' flake archive --to ssh://root@my-remote-nixos --json .
It hangs forever, and don't upload source to destination.
Expected behavior
flake source should be uploaded to ssh store on my-remote-nixos
nix-env --version output
nix-env --version
tried both on nix (Nix) 2.18.2 & nix (Nix) 2.23.0pre20240503_00ca2b0
nix (Nix) 2.18.2
nix (Nix) 2.23.0pre20240503_00ca2b0
Additional context
Changing ~/.ssh/config by either setting no to ControlMaster or removing ControlPathfix the behaviour.
no
A workaround is to use NIX_SSHOPTS="-o ControlMaster=no"
NIX_SSHOPTS="-o ControlMaster=no"
This command is used by clan cli.
Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered:
A wild guess is that there is an inconsistency between the socket path provided by ControlPath and the socket path provided at
nix/src/libstore/ssh.cc
Line 145 in 00ca2b0
Edit: setting both to /tmp/ssh.sock doesn't fix it, so the guess was probably wrong.
/tmp/ssh.sock
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Hi,
Flake archive SSH usage with
ControlMaster
andControlPath
hangs forever.This is similar to #8329, but on flake archive and with
ControlPath
.Steps To Reproduce
With a
~/.ssh/config
containing:Run eg.
nix --extra-experimental-features 'nix-command flakes' flake archive --to ssh://root@my-remote-nixos --json .
It hangs forever, and don't upload source to destination.
Expected behavior
flake source should be uploaded to ssh store on my-remote-nixos
nix-env --version
outputtried both on
nix (Nix) 2.18.2
&nix (Nix) 2.23.0pre20240503_00ca2b0
Additional context
Changing
~/.ssh/config
by either settingno
toControlMaster
or removingControlPath
fix the behaviour.A workaround is to use
NIX_SSHOPTS="-o ControlMaster=no"
This command is used by clan cli.
Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: