diff --git a/tests/openssh.nix b/tests/openssh.nix index ca96e6ccfc9b..1c93f8a3b417 100644 --- a/tests/openssh.nix +++ b/tests/openssh.nix @@ -1,25 +1,26 @@ -{pkgs, ...}: +{ pkgs, ... }: { nodes = { server = - {pkgs, config, ...}: + { config, pkgs, ... }: { services.openssh.enable = true; }; client = - {pkgs, config, ...}: + { config, pkgs, ... }: { }; - { - }; }; - testScript = - '' + testScript = '' + startAll; + my $key=`${pkgs.openssh}/bin/ssh-keygen -t dsa -f key -N ""`; + + $server->waitForJob("sshd"); $server->mustSucceed("mkdir -m 700 /root/.ssh"); $server->copyFileFromHost("key.pub", "/root/.ssh/authorized_keys");