https://infracost.io logo
#help
Title
# help
f

flat-belgium-6190

03/06/2024, 6:13 PM
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

crooked-daybreak-55253

03/06/2024, 6:43 PM
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

flat-belgium-6190

03/06/2024, 6:46 PM
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

crooked-daybreak-55253

03/06/2024, 7:08 PM
-----BEGIN OPENSSH PRIVATE KEY-----
should be ok
What do you mean by “it seems to disappear”?
f

flat-belgium-6190

03/06/2024, 7:18 PM
So after I press "Complete setup" it just looks like this
c

crooked-daybreak-55253

03/06/2024, 7:20 PM
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

flat-belgium-6190

03/06/2024, 7:22 PM
Yea it actually just shows the same "repos added" message
No error message
c

crooked-daybreak-55253

03/06/2024, 7:22 PM
hmm what browser are you using?
f

flat-belgium-6190

03/06/2024, 7:23 PM
google chrome
c

crooked-daybreak-55253

03/06/2024, 7:24 PM
What is your
Org ID
? (It’s in the Details section of the Org Settings page)
f

flat-belgium-6190

03/06/2024, 7:24 PM
e1d393fa-416e-42d3-9e4d-b647daaa908c
c

crooked-daybreak-55253

03/06/2024, 7:31 PM
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

flat-belgium-6190

03/06/2024, 7:31 PM
Yup!
c

crooked-daybreak-55253

03/06/2024, 7:33 PM
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

flat-belgium-6190

03/06/2024, 7:35 PM
Ok looks like it's saving now
c

crooked-daybreak-55253

03/06/2024, 7:36 PM
Ok great. There must be a bug when you use that first link.
Thanks for your patience and help finding that
f

flat-belgium-6190

03/06/2024, 7:45 PM
No problem!
2 Views