From d5c0e6ac02bd4bb1832434ef3fa502a21ac48432 Mon Sep 17 00:00:00 2001 From: Joachim Tingvold Date: Sat, 21 Mar 2015 18:40:28 +0100 Subject: Bootstrap-related files get it's own directory --- bootstrap/init-sshkeys.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 bootstrap/init-sshkeys.sh (limited to 'bootstrap/init-sshkeys.sh') diff --git a/bootstrap/init-sshkeys.sh b/bootstrap/init-sshkeys.sh new file mode 100755 index 0000000..9427bad --- /dev/null +++ b/bootstrap/init-sshkeys.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +set -e + +source include/tgmanage.cfg.sh +if [ -z ${PRIMARY} ] +then + echo "Not configured!"; + exit 1; +fi; + +ssh-keygen -P '' -f ~/.ssh/id_rsa -b 2048 +ssh-copy-id root@${PRIMARY} +ssh-copy-id root@${SECONDARY} -- cgit v1.2.3