aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-09-24 14:12:53 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-09-24 14:12:53 -0300
commit975d0e530eae270002d12c01956b912474ae1370 (patch)
tree221fb4b1e81ba62ba0a5628da522695e2ac98e6e
parentc0229a01bd8244e2b05c088442221150f0e0e185 (diff)
downloadhydra-975d0e530eae270002d12c01956b912474ae1370.tar.gz
hydra-975d0e530eae270002d12c01956b912474ae1370.tar.bz2
Provision ssh fingerprints in the final output
-rwxr-xr-xshare/hydractl/provision8
1 files changed, 4 insertions, 4 deletions
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: