Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Jgit SSH problem on IBM OS/390 arch system(Cannot clone a remote git repository with SSH protocol on IBM OS/390 system. Caused by: com.jcraft.jsch.JSchException: Auth fail)
Jgit SSH problem on IBM OS/390 arch system [message #1710476] Wed, 07 October 2015 05:00 Go to next message
yunjie zh is currently offline yunjie zhFriend
Messages: 7
Registered: October 2015
Junior Member
Hi experts,

I clone a remote git repository with following code snippet:
Git git = Git.cloneRepository()
.setURI("ssh://git@host/group/repo.git")
.setRemote("origin")
.setDirectory(new File("path_to_local_repo")).call();

I was successful to run the code on Windows and Linux platform. But failed on IBM OS/390, the OS/390 default encoding is EBCDIC(1047), I already converted the .ssh/known_hosts, .ssh/id_rsa from 1047 to utf8, but still got the following error,
anyone can give me some clues, thanks.


Exception in thread "main" org.eclipse.jgit.api.errors.TransportException: ssh://git@host/group/repo.git: Auth fail
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:139)
at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:193)
at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:133)
at com.ibm.isvt.blame.monitor.JGitClient.main(JGitClient.java:295)
Caused by: org.eclipse.jgit.errors.TransportException: ssh://git@host/group/repo.git: Auth fail
at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:159)
at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:136)
at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:262)
at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:161)
at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136)
at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)
at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1138)
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:130)
... 3 more
Caused by: com.jcraft.jsch.JSchException: Auth fail
at com.jcraft.jsch.Session.connect(Session.java:512)
at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:116)
... 10 more
Re: Jgit SSH problem on IBM OS/390 arch system [message #1710545 is a reply to message #1710476] Wed, 07 October 2015 12:52 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
It's probably better to ask on the eclipse.egit forum.

On 07/10/2015 9:43 AM, yunjie zh wrote:
> Hi experts,
>
> I clone a remote git repository with following code snippet:
> Git git = Git.cloneRepository()
> .setURI("ssh://git@host/group/repo.git")
> .setRemote("origin")
> .setDirectory(new File("path_to_local_repo")).call();
>
> I was successful to run the code on Windows and Linux platform. But
> failed on IBM OS/390, the OS/390 default encoding is EBCDIC(1047), I
> already converted the .ssh/known_hosts, .ssh/id_rsa from 1047 to utf8,
> but still got the following error,
> anyone can give me some clues, thanks.
>
> Exception in thread "main"
> org.eclipse.jgit.api.errors.TransportException:
> ssh://git@host/group/repo.git: Auth fail
> at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:139)
> at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:193)
> at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:133)
> at com.ibm.isvt.blame.monitor.JGitClient.main(JGitClient.java:295)
> Caused by: org.eclipse.jgit.errors.TransportException:
> ssh://git@host/group/repo.git: Auth fail
> at
> org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:159)
> at
> org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:136)
> at
> org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:262)
> at
> org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:161)
> at
> org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136)
> at
> org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)
> at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1138)
> at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:130)
> ... 3 more
> Caused by: com.jcraft.jsch.JSchException: Auth fail
> at com.jcraft.jsch.Session.connect(Session.java:512)
> at
> org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:116)
> ... 10 more


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Jgit SSH problem on IBM OS/390 arch system [message #1711398 is a reply to message #1710545] Thu, 15 October 2015 14:47 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
I have no OS/390 around, so you probably will have to debug this on your own ...
Previous Topic:Git History Bug, file level only from Project Explorer
Next Topic:using native git not jgit in Eclipse git?
Goto Forum:
  


Current Time: Sat Apr 27 00:54:18 GMT 2024

Powered by FUDForum. Page generated in 0.02903 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top