Commit e5601324 authored by Leigh B Stoller's avatar Leigh B Stoller

Generate a DSA key too, since the HP ilo implementation will not

accept an rsa key.
parent 17b79c02
......@@ -283,6 +283,8 @@ $PROTOUSER_KEY = "$main::TOP_SRCDIR/install/elabman_dsa.pub";
$ROOT_PRIVKEY = "/root/.ssh/id_rsa";
$ROOT_PUBKEY = "$ROOT_PRIVKEY.pub";
$ROOT_AUTHKEY = "/root/.ssh/authorized_keys";
$ROOT_DSA_PRIVKEY = "/root/.ssh/id_dsa";
$ROOT_DSA_PUBKEY = "$ROOT_DSA_PRIVKEY.pub";
$INIT_PRIVKEY = "$main::TOP_SRCDIR/install/identity";
$CACERT = "$TBROOT/etc/emulab.pem";
......
......@@ -14,7 +14,7 @@ sub Install($$$)
if ($isupdate);
Phase "ssh", "Setting up root ssh from boss to ops", sub {
Phase "keygen", "Creating root private key", sub {
Phase "keygen", "Creating root RSA private key", sub {
DoneIfExists($ROOT_PRIVKEY);
ExecQuietFatal("$SSH_KEYGEN -t rsa -P '' -f $ROOT_PRIVKEY");
};
......@@ -29,6 +29,14 @@ sub Install($$$)
" where name='node/ssh_pubkey'\" | ".
"$MYSQL $DBNAME");
};
#
# Also create a DSA key. Useful and sometimes required.
#
Phase "keygen", "Creating root DSA private key", sub {
DoneIfExists($ROOT_DSA_PRIVKEY);
ExecQuietFatal("$SSH_KEYGEN -t dsa -P '' -f $ROOT_DSA_PRIVKEY");
};
Phase "ssh", "Editing ssh config file", sub {
DoneIfEdited($SSH_CONFIG);
AppendToFileFatal($SSH_CONFIG,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment