git clone on windows (ssh gitolite remote server)

316 views
Skip to first unread message

Clara

unread,
Oct 25, 2016, 4:41:42 AM10/25/16
to gitolite
Hi,

I have a user who needs to clone using netbeans on Windows 7 from our gitolite server.

However I cannot find a way to set the permission for the ~/.ssh and ~/.ssh/id_rsa correctly on the Windows NTFS drive.

I tried using Git Bash and it won't work (indeed chmod from git Bash does not work on Windows ACL)

I tried Cygwing but chmod only works from the Cygwin shell.


I could map a linux drive for the guy and put is .ssh there, it works. But I really do not want him to be dependent from anything Linux.

Thanks for your advice.

Kr
Clara


Is there some obvious solution I am missing?

Sitaram Chamarty

unread,
Oct 25, 2016, 5:26:43 AM10/25/16
to Clara, gitolite
On Tue, Oct 25, 2016 at 01:41:42AM -0700, Clara wrote:
> Hi,
>
> I have a user who needs to clone using netbeans on Windows 7 from our gitolite server.
>
> However I cannot find a way to set the permission for the ~/.ssh and ~/.ssh/id_rsa correctly on the Windows NTFS drive.

I don't think that is the right direction in this case.

Gitolite is designed to look like any normal ssh-based git
server that uses public keys. Any git client should have the
means to talk to such a server, and so should netbeans.

Try asking on the netbeans support channels "how to tell
netbeans to use this RSA keypair for ssh" or something similar.

Irfan Adilovic

unread,
Oct 25, 2016, 6:16:36 AM10/25/16
to Sitaram Chamarty, Clara, gitolite
Hi Clara,

https://netbeans.org/kb/docs/ide/git.html has the exact instructions for cloning with a specific ssh key. To copy-paste:

Choose Team > Git > Clone from the main menu. The Clone Repository wizard displays.
At the Remote Repository page of the Clone Repository wizard, specify the path to the repository required in the Repository URL field, for example, g...@github.com:tstupka/koliba.git.
Verify git is specified in the Username text field.
Select the Private/public key option.
(Skip if using SSH-agent or Pageant for automated SSH access to the Git server.) Complete the following steps to access the Git server using your private SSH key and a passphrase:
Specify the path to the key file, for example C:\Users\key.

Note: The OpenSSH private key format is required. Keys generated by PuTTYgen for Microsoft Windows must be converted to the OpenSSH format before using them in the IDE.
Enter the passphrase for the key file, for example, abcd.
(Optional) Select the Save Passphrase option if required.

Regards, Irfan

--
You received this message because you are subscribed to the Google Groups "gitolite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gitolite+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Clara Riva

unread,
Oct 25, 2016, 10:51:46 AM10/25/16
to Irfan Adilovic, Sitaram Chamarty, gitolite
Hi Sitaram, Irfan,

thanks a lot for your answer. 
Indeed it worked with the Netbeans configuration, I think we had 2 concurrent issues.

Kr
Clara


To unsubscribe from this group and stop receiving emails from it, send an email to gitolite+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
I blog at: http://zoutke.livejournal.com/

Back to the Future Part III, Emmett Brown: "Nope. Clara was one in a million. One in a billion. One in a googol-plex."
Reply all
Reply to author
Forward
0 new messages