* 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
@ -39,7 +39,15 @@ with pkgs.lib;
|
|||||||
rm -f /root/key.pub
|
rm -f /root/key.pub
|
||||||
fi
|
fi
|
||||||
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
|
# Print the host public key on the console so that the user
|
||||||
# can obtain it securely by parsing the output of
|
# can obtain it securely by parsing the output of
|
||||||
# ec2-get-console-output.
|
# ec2-get-console-output.
|
||||||
@ -49,5 +57,4 @@ with pkgs.lib;
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user