summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorWilliam A. Kennington III <william@wkennington.com>2015-08-12 11:16:26 -0700
committerWilliam A. Kennington III <william@wkennington.com>2015-08-12 11:16:26 -0700
commit7a0980e5dce32e918711231d38c19460a0a98f4e (patch)
treef03d5c224cbcb8f053066a2522ad20b0a43bb60c /nixos/tests
parentaf12334ec95bc76f90a8a541df6527032cd09c0e (diff)
downloadnixlib-7a0980e5dce32e918711231d38c19460a0a98f4e.tar
nixlib-7a0980e5dce32e918711231d38c19460a0a98f4e.tar.gz
nixlib-7a0980e5dce32e918711231d38c19460a0a98f4e.tar.bz2
nixlib-7a0980e5dce32e918711231d38c19460a0a98f4e.tar.lz
nixlib-7a0980e5dce32e918711231d38c19460a0a98f4e.tar.xz
nixlib-7a0980e5dce32e918711231d38c19460a0a98f4e.tar.zst
nixlib-7a0980e5dce32e918711231d38c19460a0a98f4e.zip
nixos/tests/openssh: Fix test by using safe public keys
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/openssh.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/tests/openssh.nix b/nixos/tests/openssh.nix
index 34f9fccb79b8..390363b88e21 100644
--- a/nixos/tests/openssh.nix
+++ b/nixos/tests/openssh.nix
@@ -43,7 +43,7 @@ in {
   testScript = ''
     startAll;
 
-    my $key=`${pkgs.openssh}/bin/ssh-keygen -t dsa -f key -N ""`;
+    my $key=`${pkgs.openssh}/bin/ssh-keygen -t ed25519 -f key -N ""`;
 
     $server->waitForUnit("sshd");
 
@@ -52,8 +52,8 @@ in {
       $server->copyFileFromHost("key.pub", "/root/.ssh/authorized_keys");
 
       $client->succeed("mkdir -m 700 /root/.ssh");
-      $client->copyFileFromHost("key", "/root/.ssh/id_dsa");
-      $client->succeed("chmod 600 /root/.ssh/id_dsa");
+      $client->copyFileFromHost("key", "/root/.ssh/id_ed25519");
+      $client->succeed("chmod 600 /root/.ssh/id_ed25519");
 
       $client->waitForUnit("network.target");
       $client->succeed("ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no server 'echo hello world' >&2");