diff --git a/Makefile b/Makefile index c96641f..4a5eae4 100644 --- a/Makefile +++ b/Makefile @@ -19,10 +19,9 @@ deploy: then echo "Missing one of SSH_USER, SSH_HOST, or SSH_TARGET" >&2; \ exit 1; \ fi - env mkdir -p ~/.ssh/ touch ~/.ssh/known_hosts - ssh-keygen -R "$$SSH_HOST" + ssh-keygen -R "$$SSH_HOST" -f ~/.ssh/known_hosts ssh-keyscan "$$SSH_HOST" >> ~/.ssh/known_hosts rsync -e "ssh -o StrictHostKeyChecking=no" --progress -avz --delete public/ "$$SSH_USER@$$SSH_HOST:$$SSH_TARGET"