From 975d0e530eae270002d12c01956b912474ae1370 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 24 Sep 2015 14:12:53 -0300 Subject: Provision ssh fingerprints in the final output --- share/hydractl/provision | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'share/hydractl') diff --git a/share/hydractl/provision b/share/hydractl/provision index a5191be..fe4d0d8 100755 --- a/share/hydractl/provision +++ b/share/hydractl/provision @@ -437,10 +437,6 @@ hydra_sudo_run chroot $WORK apt-get install screen cron lsb-release openssl -y echo "Installing OpenSSH daemon..." hydra_sudo_run chroot $WORK apt-get install openssh-server -y -echo "OpenSSH fingerprints:" -hydra_sudo_run chroot $WORK ssh-keygen -l -f /etc/ssh/ssh_host_dsa_key.pub -hydra_sudo_run chroot $WORK ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key.pub - # Accounts. echo "Installing sudo..." hydra_sudo_run chroot $WORK apt-get install sudo -y @@ -448,6 +444,10 @@ hydra_sudo_run chroot $WORK apt-get install sudo -y echo "Choose a root password." hydra_sudo_run chroot $WORK passwd root +echo "OpenSSH fingerprints:" +hydra_sudo_run chroot $WORK ssh-keygen -l -f /etc/ssh/ssh_host_dsa_key.pub +hydra_sudo_run chroot $WORK ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key.pub + cat <<-EOF Now proceeed with final steps: -- cgit v1.2.3