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 251253 - Can't clone github repo getting wrong credentials message
Summary: Can't clone github repo getting wrong credentials message
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Git (show other bugs)
Version: 8.0.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-18 08:52 UTC by bober2000
Modified: 2015-04-02 14:10 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot (116.90 KB, image/png)
2015-03-18 10:13 UTC, bober2000
Details
IDE log (51.06 KB, text/x-log)
2015-03-18 10:24 UTC, bober2000
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bober2000 2015-03-18 08:52:10 UTC
I'm using Gentoo and =dev-util/netbeans-8.0.2 with NETBEANS_MODULES="apisupport cnd java php profiler webcommon websvccommon"
When trying to clone repository from github - I can't authorise using ssh key.
I use RSA key without pass-phrase, when cloning from console - everything is ok.
Tried to change ssh config, but no luck with this.
Messages file in attachment
Comment 1 bober2000 2015-03-18 09:02:33 UTC
I'm using oracle-jdk-bin-1.7
Comment 2 Ondrej Vrabec 2015-03-18 09:22:34 UTC
Please attach the IDE log and a screenshot of the initial clone wizard step
Comment 3 bober2000 2015-03-18 10:13:53 UTC
Created attachment 152690 [details]
Screenshot

Here is screenshot with problem, I attached IDE log already or its not messages log?
Comment 4 Ondrej Vrabec 2015-03-18 10:21:41 UTC
(In reply to bober2000 from comment #3)
> Here is screenshot with problem, I attached IDE log already or its not
> messages log?
No you didn't. I can see no such attachement here in the issue, just the screenshot.
Comment 5 bober2000 2015-03-18 10:24:28 UTC
Created attachment 152692 [details]
IDE log
Comment 6 Ondrej Vrabec 2015-03-18 10:27:54 UTC
There is an exception in JSch:
java.lang.ArrayIndexOutOfBoundsException: 766
	at com.jcraft.jsch.Util.fromBase64(Util.java:51)
	at com.jcraft.jsch.KnownHosts.setKnownHosts(KnownHosts.java:157)

Did you play with ~/.ssh/knownhosts file? Could you please move .ssh temporarily to another folder and create ~/.ssh fresh new? And copy just the private key there?
Comment 7 bober2000 2015-03-18 10:43:02 UTC
That worked - NetBeans created known_hosts file and cloned repo successfully, problem is with format of known_hosts in created file we have such record:

github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==

In old file it was:

github.com,192.30.252.130 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==

So the difference is in adding IP address - seems that NetBeans cant read such format
Comment 8 Ondrej Vrabec 2015-04-02 10:13:51 UTC
(In reply to bober2000 from comment #7)
That's not it. I have such a record in known_hosts:
github.com,192.30.252.131 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==

and NB can connect successfully. It's probably a different malformed record in your file. Can you send the old one to me?
Comment 9 bober2000 2015-04-02 14:10:33 UTC
(In reply to Ondrej Vrabec from comment #8)
Well, I checked again and with same settings as yours and it seems to be working - strange. Sorry but I've missed original known_hosts file
Seems that we can close this as solved