pombreda / nbgit

Automatically exported from code.google.com/p/nbgit
0 stars 0 forks source link

Unable to connect via ssh using publickey authentication. #56

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.install nbgit 0.3 on netbeans 6.7
2.try to connect to a remote git repository via ssh using public key auth.

What is the expected output? What do you see instead?
I see Auth Fail error message and I am unable to connect

What versions of NbGit, NetBeans and Java are you using?
On what operating system?
Netbeans 6.7 on Windows XP

Please provide any additional information below.

I would be great to be able to connect to a remote Git repository using ssh 
and public key authentication please.

Original issue reported on code.google.com by theyaama...@gmail.com on 16 Sep 2009 at 2:39

GoogleCodeExporter commented 9 years ago
This is sort of a priority for me. nbgit would be awesome but I have to have 
this 
functionality for me to even start using it.

Original comment by jkilg...@gmail.com on 17 Feb 2010 at 6:16

GoogleCodeExporter commented 9 years ago
I would appreciate this as well. Can't do what I need to do without it.

Original comment by michaelo...@gmail.com on 17 Feb 2010 at 6:34

GoogleCodeExporter commented 9 years ago
I think the problem is all SSH connections (e.g. password-interactive), not 
just public key.

I get a message: UnknownHostKey.

Original comment by mikelwar...@gmail.com on 6 Aug 2010 at 5:17

GoogleCodeExporter commented 9 years ago
I have the same problem. I get 'UnknownHostKey' for any GIT clone using SSH

Original comment by bennyfat...@gmail.com on 19 Aug 2010 at 3:22

GoogleCodeExporter commented 9 years ago
I have a workaround.

In your ~/.ssh directory, create a "config" file

open ~/.ssh/config in a text editor and put in the following:

Host HostName -- this will be the name you will be calling in nbgit
User gituser
Hostname SSH IP address --eg 192.68.24.1 --my git server
Port 1234 -- use this if you need custom ports
IdentityFile "path to your private ssh key"

Save. Congratulations!

You can now clone using: git clone ssh://HostName/directory/gitfile.git

Original comment by jonasesp...@gmail.com on 20 Aug 2010 at 2:52

GoogleCodeExporter commented 9 years ago
what about for windows... ~/.ssh looks more like a linux thing.

Original comment by steve.r....@gmail.com on 23 Oct 2010 at 3:37

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I'm trying to get this set up on Windows.  I have created the ~/.ssh/config 
file (in my C:/Users//.ssh directory in this case), and have even created a 
known_hosts file in that directory, but I end up getting the above-mentioned 
UnknownHostKey exception.  How do we solve this?  I've looked at the ways to 
solve this for JSch (as mentioned here 
http://stackoverflow.com/questions/2003419/com-jcraft-jsch-jschexception-unknown
hostkey), but adding a known hosts file OR disabling strick host key checking 
(which we can't do in NBGit unless we add provide an option for it).  I'd be 
willing to attempt to add an option for it, but I've not written netbeans 
plugins so it might take me a bit to get it hammered out.

Anyone else have any luck with this as-is that can help point me in the right 
direction?

Thanks in advance.

Kendal.

Original comment by theW...@gmail.com on 9 Nov 2010 at 8:22