a guest Feb 17th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- # Problem with ssh key and new lines
- Generate your ssh private key with _base64_ encoding
- $ cat my_private_key | base64 -w 0
- Use the encoded version as Gitlab CI env variable and decode like so:
- $ ssh-add <(echo "$SSH_PRIVATE_KEY" | base64 -d)
RAW Paste Data