1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-08 19:46:02 +01:00

Merge pull request #13794 from NixOS/mergify/bp/2.28-maintenance/pr-13202

Fix nix-copy-closure VM test (backport #13202)
This commit is contained in:
Sergei Zimmerman 2025-08-19 17:00:38 +03:00 committed by GitHub
commit 8049b297ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -61,12 +61,10 @@ in
"${pkgs.openssh}/bin/ssh-keygen", "-t", "ed25519", "-f", "key", "-N", ""
], capture_output=True, check=True)
client.succeed("mkdir -m 700 /root/.ssh")
client.copy_from_host("key", "/root/.ssh/id_ed25519")
client.succeed("chmod 600 /root/.ssh/id_ed25519")
# Install the SSH key on the server.
server.succeed("mkdir -m 700 /root/.ssh")
server.copy_from_host("key.pub", "/root/.ssh/authorized_keys")
server.wait_for_unit("sshd")
server.wait_for_unit("multi-user.target")