GIT on Private SSH key is invalid or empty

Hi Team,

I have got a GIT repo created in my project and have got me private key generated.

Parameters used while creating the Key was SSH-2 DSA with number of bits as 1024. This was generated from PUTTY Keygen.

So currently my Key looks like this:

PuTTY-User-Key-File-2: ssh-dss
Encryption: aes256-cbc
Public-Lines: 10
Private-Lines: 1
Private-MAC: 104c9e40a607b30fc7356083789eec31c4f8e135.

When I import this key while adding the GIT repo in JIRA I am getting the below error:

"That is not a valid SSH private key. Please try a different one.
Technical error reported from the git client:
Private SSH key is invalid or empty"
Can you please advise?

2 answers

1 accepted

Hi Rakesh,

Out of curiosity, what do you mean by "When I import this key while adding the GIT repo in JIRA" - are you using a JIRA plugin that allows you to host git repositories?

The private key that you have generated is putty specific and uses a different format to a private key generated by for example OpenSSH (ssh-keygen).

I think a private key in the latter format is what you need to make this work.



Hi Team,

Thanks for your kind response. I am happy to get this issue closed.


Suggest an answer

Log in or Join to answer
Community showcase
Maarten Cautreels
Posted Thursday in Off-topic

Friday Fun: What's your favourite beer/drink

As a Belgian, beer-lover and home brewer, beer is one of my great passions. I love the fact that with just a few ingredients (usually just water, hop and malt) you can create so many different tastes...

285 views 38 9
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot