Question

[MASKED]@[MASKED]: Permission denied (publickey). 34 Cleaning up file based variables 00:01 35ERROR: Job failed: exit code 255

Posted February 20, 2021 612 views
GitCI/CDUbuntu 18.04

With ci cd i get

[MASKED]@[MASKED]: Permission denied (publickey).
34
Cleaning up file based variables
00:01
35ERROR: Job failed: exit code 255

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
2 answers

Hi @chompersawtooth,

There are a couple of probabilities here the way I see it. First is your SSH key is either not added to GIT or it’s not a correct one.

If you are trying to run a gitlab pipeline for instance, you might experience this issue. You’ll need to make sure, your SSH key is having the proper permissions i.e 400.

Having said that, can you please let us know how you are getting to that error, what your aim is and what you configuration is?

Regards,
KFSys

The answer is an extra white space in the ID_RSA below the key
😁