-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
Description
Describe the bug
NIX_SSHOPTS does not work for specifying flags to SSH, such as NIX_SSHOPTS='-p2222 -oUserKnownHostsFile=/dev/null'.
Steps To Reproduce
- Try to copy something over SSH using NIX_SSHOPTS (i.e. to a different port than the default 22)
Expected behavior
I was using this for a local VM, so the path already existed in my root@localhost store, but not in my root@localhost:2222 store. I expected NIX_SSHOPTS='-p2222 -oUserKnownHostsFile=/dev/null -oStrictHostKeyChecking=no' /home/vin/workspace/vcs/nix/result/bin/nix copy /nix/store/..... --to ssh-ng://root@localhost --no-check-sigs -v to actually copy the closure, but instead it just says:
copying 0 paths...
Metadata
$ nix-env --version
nix-env (Nix) 2.31.2
Additional context
I bisected this to 49ba061 (#14148).
Checklist
- checked latest Nix manual (source)
- checked open bug issues and pull requests for possible duplicates
Add 👍 to issues you find important.
Reactions are currently unavailable