This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 209417 - NetBeans fails to colne remote Git repository using ssh
Summary: NetBeans fails to colne remote Git repository using ssh
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Git (show other bugs)
Version: 7.1.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: astashkova
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-10 21:41 UTC by wissenstein
Modified: 2012-03-12 08:57 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages (96.95 KB, application/octet-stream)
2012-03-10 21:41 UTC, wissenstein
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wissenstein 2012-03-10 21:41:33 UTC
Created attachment 116537 [details]
messages

When I try to clone remote repository git@gitorious.org:tdd-experiments/tdd-02.git, NetBeans does not go to step "Remote branches" and shows the following error message:
"git@gitorious.org:tdd-experiments/tdd-02.git: invalid privatekey: C:\Users\Wissenstein\keystore\wissenstein-gmail-com.ppk".
When I do it wiht TortoiseGit, the repository is cloned with the same ssh key successfully.
Please fix it.

Please find attached messages.log
Comment 1 Ondrej Vrabec 2012-03-11 06:44:42 UTC
> C:\Users\Wissenstein\keystore\wissenstein-gmail-com.ppk is probably not in OpenSSH format, which is the only format supported. Export your PK to OpenSSH format.
Some info about exporting can be found here: http://leadingedgescripts.co.uk/server-administration/how-to-convert-your-putty-ppk-private-key-to-a-normal-ssh-key-you-can-use-on-an-apple-mac/
Comment 2 wissenstein 2012-03-11 12:45:16 UTC
Yes, really. After I have converted the private key to OpenSSH format, I succeed to connect with the remote repository.
I think, it is worth mentioning in Git User Guide (http://netbeans.org/kb/docs/ide/git.html) that the user must ensure that the private key he uses has OpenSSH format.
Thank you!
Comment 3 Ondrej Vrabec 2012-03-12 08:30:19 UTC
> I think, it is worth mentioning in Git User Guide
> (http://netbeans.org/kb/docs/ide/git.html) that the user must ensure that the
> private key he uses has OpenSSH format.
Alyona, could you please look at this and add a note to the user guide?
Comment 4 AlyonaStashkova 2012-03-12 08:57:45 UTC
The following note added after step 4 in the Cloning a Repository from GitHub via SSH protocol section (http://netbeans.org/kb/docs/ide/git.html#github):

The OpenSSH private key format is required. Keys generated by PuTTYgen for Windows must be converted to the OpenSSH format before using them in the IDE.