Guest User

Untitled

a guest
Feb 17th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  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. ```
Add Comment
Please, Sign In to add comment