Commit 0fe41e09 authored by Leigh Stoller's avatar Leigh Stoller

Start using an RSA key for elabman; The private key is in /root/.ssh

and the passphrase is the same as the DSA key.
parent 635c17ef
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDJxu/1ecF8vtLSuQU0yMm3jlh8szU76WgGdeGOGOM437PfJmryBzRNMp7rIly8wU9k3b4dAf01Cqgy4jhx5IsGbIeQJlLJTQFcSJ1CDcq0Td538I2+W2NJWyVcSMLvGYiikBG1+n25CVFfwmfIG0RYnsvJJ+mIAnyRRgRmOa760eI6dqDpnWQciHK3l2qhZW4GwMsi5JCCYaVn9UFSdWi58/eezajnhCrfNPTvwWOJOjiZwf8WZ3jNyeU5o2vX2Ftal0mAl7MleRne1WCFMo1Jz7ybGCQsicuYlYWIr2fNoy3RhwgxcXeD2WnxHlgo1/oHyCk65f3AMPqSx6UqZ+1Ttn9l5OFUiK8eDKbmxVL3ZCCVD0bxrNJkD9ZAGQUN2dvREGBTa/8srqtQxj3Abpn2CuDsMwc2+Twl98+FY74TInY25gEDco3swuW+bux4SaK0L3OyQqh7sIgJrP1fQx04RZBADM79t60CaVNxEPaD1gJMQjkbjxXZ/5JvwLfOVqj2l03HDwSeu2CPOrfaoE7yFyRiUnT52ipxUdUnPDh7UAfDIIsUbdfAiyo0Gwpa0yrdu/KbcKIZsUIAMirnpCEY1eonbrBVvaP/A7cp+EA+TzCe0O2h3mEYePa1pT3Cpq5KanYquXlc/hH9Q6TvCjMQNP3UtmkmeUHtjBYPAB2u1Q== elabman@emulab.net
......@@ -68,8 +68,22 @@ sub Install($$$)
PhaseSkip("Already done");
}
ExecQuietFatal("$SUDO -u $PROTOUSER $WAP ".
" $ADDPUBKEY -f -u $PROTOUSER $PROTOUSER_KEY");
" $ADDPUBKEY -f -u $PROTOUSER $PROTOUSER_DSAKEY");
};
Phase "RSAKey", "Adding RSA key to $PROTOUSER account", sub {
my ($exitval, @rows) =
ExecQuiet("echo 'select * from user_pubkeys ".
" where uid=\"$PROTOUSER\"' | $MYSQL -s $DBNAME");
if ($exitval) {
PhaseFail("Error running query");
}
if (scalar(@rows) > 1) {
PhaseSkip("Already done");
}
ExecQuietFatal("$SUDO -u $PROTOUSER $WAP ".
" $ADDPUBKEY -f -u $PROTOUSER $PROTOUSER_RSAKEY");
};
Phase "DSAKey2", "Adding Extra DSA key to $PROTOUSER account", sub {
PhaseSkip("No key found")
if (! -e $EXTRADSA_KEY);
......
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