2

In gitlab, I made a variable SSH_PRIVATE_KEY with my private key, and try to add it on the fly with

   before_script:
     - ssh-add <(echo "$SSH_PRIVATE_KEY")

I get an error

/bin/sh: eval: line 81: syntax error: unexpected "("

How should I fix it ?

Juliatzin
  • 16,587
  • 31
  • 139
  • 282

1 Answers1

0

echo "$SSH_PRIVATE_KEY" | ssh-add -

try this