Skip to content
Snippets Groups Projects

try chmoding key

Merged Charlotte Hausman requested to merge fix-ssh-weirds into main
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -6,8 +6,8 @@
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- chmod 700 ~/.ssh
- chmod 600 "$SSH_PRIVATE_KEY"
- echo "$SSH_PRIVATE_KEY" | ssh-add - > ~/.ssh/id_rsa
- chmod 400 ~/.ssh/id_rsa
- '[[ -f /.dockerenv ]] && echo -e "Host *\\n\\tStrictHostKeyChecking no\\n\\n" > ~/.ssh/config'
script:
- mkdir -p /home/ssa/bin
Loading