Set trusted host keys

This commit is contained in:
Gabriel Augendre 2020-12-26 18:13:06 +01:00
parent 66ef8b9d1f
commit 7a7f2712ea
No known key found for this signature in database
GPG key ID: 1E693F4CE4AEE7B4

View file

@ -14,10 +14,11 @@ deploy:
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- touch ~/.ssh/config
- chmod 644 ~/.ssh/config
- echo "$SSH_CONFIG" > ~/.ssh/config
- chmod 644 ~/.ssh/config
- echo "$SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
script:
- ssh blog -o StrictHostKeyChecking=no "/home/gaugendre/blog/update"
- ssh blog "/home/gaugendre/blog/update"
only:
- master