SHARE
TWEET

Untitled

a guest Feb 17th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Problem with ssh key and new lines
  2. Generate your ssh private key with _base64_ encoding
  3.  
  4. ```
  5. $ cat my_private_key | base64 -w 0
  6. ```
  7.  
  8. Use the encoded version as Gitlab CI env variable and decode like so:
  9.  
  10. ```
  11. $ ssh-add <(echo "$SSH_PRIVATE_KEY" | base64 -d)
  12. ```
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top