File diff b496e3d0b9c5 → 291d8ccb5379
init.sh
Show inline comments
 
#!/usr/bin/env bash
 

	
 
generateKey() {
 
	touch sshKey
 
	touch sshKey.pub
 
@@ -7,7 +9,7 @@ generateKey() {
 
}
 

	
 
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