@@ -6,13 +6,13 @@ generateKey() {
rm sshKey
rm sshKey.pub
ssh-keygen -t ed25519 -f ./sshKey -q -N "" -C ""
}
deployKey() {
sshpass -p alarm ssh-copy-id -i ./sshKey.pub -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o PubkeyAuthentication=false alarm@$1
sshpass -p alarm ssh-copy-id -i ./sshKey.pub -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o PubkeyAuthentication=false alarm@"$1"
# If keys are present, we just need to deploy it and destroy the SSH Agent
# Otherwise, we genrate a key and then deploy it
# The key can be present on the remote host multiple times,
# -> not a big issue, just not clean, but it works
Status change:
Status change: Under review
Status change: Approved