If you receive an error like this in your CICD pipeline
$ echo “${GITLAB_CI_SSHKEY}” | ssh-add – > /dev/null
Identity added: (stdin) ((stdin))
Try adding the complete private ssh key, include “—–BEGIN RSA PRIVATE KEY—–” and “—–END RSA PRIVATE KEY—–”
$ echo “${GITLAB_CI_SSHKEY}” | ssh-add – > /dev/null
Identity added: (stdin) ((stdin))
—–BEGIN RSA PRIVATE KEY—–
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
—–END RSA PRIVATE KEY—–