Set trusted host keys
This commit is contained in:
parent
66ef8b9d1f
commit
7a7f2712ea
1 changed files with 4 additions and 3 deletions
|
@ -14,10 +14,11 @@ deploy:
|
||||||
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
|
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
|
||||||
- mkdir -p ~/.ssh
|
- mkdir -p ~/.ssh
|
||||||
- chmod 700 ~/.ssh
|
- chmod 700 ~/.ssh
|
||||||
- touch ~/.ssh/config
|
|
||||||
- chmod 644 ~/.ssh/config
|
|
||||||
- echo "$SSH_CONFIG" > ~/.ssh/config
|
- echo "$SSH_CONFIG" > ~/.ssh/config
|
||||||
|
- chmod 644 ~/.ssh/config
|
||||||
|
- echo "$SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts
|
||||||
|
- chmod 644 ~/.ssh/known_hosts
|
||||||
script:
|
script:
|
||||||
- ssh blog -o StrictHostKeyChecking=no "/home/gaugendre/blog/update"
|
- ssh blog "/home/gaugendre/blog/update"
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
|
Reference in a new issue