diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2024-04-26 18:30:33 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@lix> | 2024-04-26 18:30:33 +0000 |
commit | 8773439a85ef281f4da0cbf0d26b125bbe7a222a (patch) | |
tree | db90792c82888d8116162e687e9c427dc4fc214e /tests/nixos | |
parent | 789aa39576a3c45ab63278cd01e1538c27e1ce9f (diff) | |
parent | 104448e75d87d03d2fb0b4ac96d4da72e1dae50d (diff) |
Merge "ssh-ng: Set log-fd for ssh to `4` by default" into main
Diffstat (limited to 'tests/nixos')
-rw-r--r-- | tests/nixos/remote-builds-ssh-ng.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/nixos/remote-builds-ssh-ng.nix b/tests/nixos/remote-builds-ssh-ng.nix index 5ff471607..8deb9a504 100644 --- a/tests/nixos/remote-builds-ssh-ng.nix +++ b/tests/nixos/remote-builds-ssh-ng.nix @@ -95,6 +95,10 @@ in builder.succeed("mkdir -p -m 700 /root/.ssh") builder.copy_from_host("key.pub", "/root/.ssh/authorized_keys") builder.wait_for_unit("sshd.service") + + out = client.fail("nix-build ${expr nodes.client 1} 2>&1") + assert "error: failed to start SSH connection to 'root@builder': Host key verification failed" in out, f"No host verification error in {out}" + client.succeed(f"ssh -o StrictHostKeyChecking=no {builder.name} 'echo hello world' >&2") # Perform a build |