mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 12:04:40 +00:00
nixos-rebuild: fix entering sudo password over SSH
We always want to use `ssh -t` to force PTY allocation as there may be interactive SSH prompts like trusting unknown hosts.
This commit is contained in:
parent
5aad97fcff
commit
09fd207cb8
@ -436,7 +436,7 @@ if [ "$action" = edit ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
SSHOPTS="$NIX_SSHOPTS -o ControlMaster=auto -o ControlPath=$tmpDir/ssh-%n -o ControlPersist=60"
|
||||
SSHOPTS="$NIX_SSHOPTS -o ControlMaster=auto -o ControlPath=$tmpDir/ssh-%n -o ControlPersist=60 -t"
|
||||
|
||||
# First build Nix, since NixOS may require a newer version than the
|
||||
# current one.
|
||||
|
Loading…
Reference in New Issue
Block a user