blob: 9427bad4398f99f87083ca9f1d5bf75a5e48da6f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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}
|