but at line 3 " echo "$awskey" | ssh-add - " it give me error > + echo "$awskey" | ssh-add - Error loading key "(stdin)": error in libcrypto.
I already added a variable in the Repository settings.
please give me solution
Thanks,
Hi Jay and welcome to the community!
Pipelines does not currently support line breaks in environment variables and a private SSH key has line breaks. If you want to add a private SSH key as a variable you can base-64 encode it first and then add the base64-encoded private key in the variable. You can find more details about this here:
However, if you use only one SSH key in your pipeline, then instead of using a variable you can set up SSH keys from the Repository settings > SSH keys page of the repo:
Kind regards,
Theodora
Hi @Jay Khatri
This error is usually triggered upon missing newline or the opening and closing lines of the private key (the ones which start and end with "----"). Try the following solutions:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.