Hi! I'm trying to add a ssh private key in my priv...
# help
f
Hi! I'm trying to add a ssh private key in my private module settings but every time I add it, it seems to disappear. It seems to require a RSA Private key so I ran:
ssh-keygen -t rsa -b 4096 -C "<INSERT_EMAIL_HERE>"
, adding the the public key to my github account and putting private key in the infracost UI. Is this correct? Or is there something else that needs to be done?
c
Hi, yes that is correct. Do you see any form errors under the ssh key box after you click Complete Setup? Make sure you’re including the
-----BEGIN
and
-----END
headers of the key.
f
No it just shows the repos added message
Does it make a difference if the key begins with
-----BEGIN OPENSSH PRIVATE KEY-----
instead of
RSA PRIVATE KEY
?
c
-----BEGIN OPENSSH PRIVATE KEY-----
should be ok
What do you mean by “it seems to disappear”?
f
So after I press "Complete setup" it just looks like this
c
Do you get a form error if you paste some random characters in there? If I do, I see the
SSH Key must be in PEM format...
error
(when I click Complete Setup)
f
Yea it actually just shows the same "repos added" message
No error message
c
hmm what browser are you using?
f
google chrome
c
What is your
Org ID
? (It’s in the Details section of the Org Settings page)
f
e1d393fa-416e-42d3-9e4d-b647daaa908c
c
Ok. So to add the credentials you’re seeing the repo error and clicking on the
Add ssh credentials to fix these issues
link, right?
f
Yup!
c
Ok, try going to
Org Settings
->
Integrations
click on the box for your “Installed Integration”. You’ll see a list of your repos, click
Next
and you should see the same form where you can enter the ssh key. Try entering it there.
f
Ok looks like it's saving now
c
Ok great. There must be a bug when you use that first link.
Thanks for your patience and help finding that
f
No problem!