Commit 9b3579d9 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Concatenate and copy boss hosts keys from boss:/etc/ssh to

parent 8ab6006d
......@@ -128,6 +128,7 @@ my $MIBPATH = "/usr/local/share/snmp/mibs";
my $TFTP_DIR = "$PREFIX/tftpboot";
my $TFTP_PROJ_DIR = "$TFTP_DIR/proj";
my $VARRUN = "/var/run";
my $ETCSSH = "/etc/ssh";
# URLs
......@@ -724,6 +725,10 @@ Phase "ssh", "Setting up root ssh from boss to ops", sub {
ExecQuietFatal("$SCP -i $INIT_PRIVKEY ".
# Copy hosts keys to ops.
ExecQuietFatal("cat ${ETCSSH}/*.pub | $SSH ${USERNODE} ".
" '(cat > ${ETCSSH}/ssh_known_hosts)'");
if (ExecQuiet("$SSH -o 'BatchMode=yes' root\@${USERNODE} pwd")) {
PhaseFail("You'll need to manually copy boss's public SSH key\n".
"over to ops print so boss can get into ops without\n".
Supports Markdown
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