Skip to content
Snippets Groups Projects
Commit 7c0804b9 authored by Charlotte Hausman's avatar Charlotte Hausman
Browse files

try chmoding key

parent 9c0a52e0
No related branches found
No related tags found
1 merge request!1465try chmoding key
Pipeline #11925 failed
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s) - eval $(ssh-agent -s)
- chmod 700 ~/.ssh - chmod 700 ~/.ssh
- echo "$SSH_PRIVATE_KEY" | ssh-add - > ~/.ssh/id_rsa - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa
- '[[ -f /.dockerenv ]] && echo -e "Host *\\n\\tStrictHostKeyChecking no\\n\\n" > ~/.ssh/config' - '[[ -f /.dockerenv ]] && echo -e "Host *\\n\\tStrictHostKeyChecking no\\n\\n" > ~/.ssh/config'
script: script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment