Set host keys instead of ignoring them

This commit is contained in:
Rien Maertens 2018-07-09 21:45:38 +02:00
parent 7b4259478e
commit 1cc9b44b5c
No known key found for this signature in database
GPG key ID: 943CAB70C511D23C

View file

@ -28,7 +28,7 @@ notifications:
before_install: before_install:
- openssl aes-256-cbc -K $encrypted_6059a4f451fd_key -iv $encrypted_6059a4f451fd_iv - openssl aes-256-cbc -K $encrypted_6059a4f451fd_key -iv $encrypted_6059a4f451fd_iv
-in id_rsa.enc -out deploy_key -d -in id_rsa.enc -out deploy_key -d
- echo -e "Host zeus.ugent.be\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config - echo -e "[zeus.ugent.be]:2222 ecdsa-sha2-nistp256\nAAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBC87/Q3H8f7ghmA+iCtKGaNyk0fx3Z36Xrn+eGv8a4pD7MXeu6Uwr0aN5HnkcbRWXFtMwnAU3ptoP90vH7qu99w=\n[herbert.zeus.gent]:2222 ecdsa-sha2-nistp256\nAAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBGLnJMh2DgqpVnHxOmeV6KffvzZGEVfniq0NFHRGZoL4f7Uc8xeG9gn3cc7lCL02F9LwWZNwR4gSqhGt/RK2S54=\n" >> ~/.ssh/known_hosts
- npm install - npm install
script: script:
- bundle exec nanoc --env=prod - bundle exec nanoc --env=prod
@ -37,5 +37,4 @@ after_success:
- mv deploy_key ~/.ssh/id_rsa - mv deploy_key ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa
- chmod +x ./deploy.sh - chmod +x ./deploy.sh
- echo -e "Host $TRAVIS_PULL_REQUEST.zeus.werthen.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- ./deploy.sh - ./deploy.sh