* Print the host key after sshd has started to prevent a potential race.
svn path=/nixos/trunk/; revision=30236
This commit is contained in:
parent
8a0a0efb48
commit
3d5f3aa2b4
1 changed files with 8 additions and 1 deletions
|
@ -39,7 +39,15 @@ with pkgs.lib;
|
|||
rm -f /root/key.pub
|
||||
fi
|
||||
fi
|
||||
'';
|
||||
};
|
||||
|
||||
jobs.printHostKey =
|
||||
{ name = "print-host-key";
|
||||
task = true;
|
||||
startOn = "started sshd";
|
||||
script =
|
||||
''
|
||||
# Print the host public key on the console so that the user
|
||||
# can obtain it securely by parsing the output of
|
||||
# ec2-get-console-output.
|
||||
|
@ -49,5 +57,4 @@ with pkgs.lib;
|
|||
'';
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue