Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jgit-dev] Jgit SSH problem on IBM OS/390 System(z/OS, USS)

Hi experts,

I use the following code snippet to clone a remote git repository to local. My JGit version and JSCH version 0.1.53.
Git git = Git.cloneRepository()
        .setDirectory(new File("PATH_TO_LOCAL_REPO")).call();

The code snippet worked fine on Windows and Linux platform. But failed on IBM OS/390 arch system.
The OS/390 arch system has the default encoding EBCDIC(1047), I have already converted the .ssh/known_hosts, .ssh/id_rsa, .ssh/ on the OS/390 system from 1047 to UTF8, but still got the error.
Anyone can give me suggestion or idea where is the root cause?

Exception in thread "main" org.eclipse.jgit.api.errors.TransportException: ssh://git@HOST/GROUP/REPO.git: Auth fail
        at org.eclipse.jgit.api.CloneCommand.fetch(
Caused by: org.eclipse.jgit.errors.TransportException: ssh://git@HOST/GROUP/REPO.git: Auth fail
        at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(
        at org.eclipse.jgit.transport.SshTransport.getSession(
        at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(
        at org.eclipse.jgit.transport.TransportGitSsh.openFetch(
        at org.eclipse.jgit.transport.FetchProcess.executeImp(
        at org.eclipse.jgit.transport.FetchProcess.execute(
        at org.eclipse.jgit.transport.Transport.fetch(
        ... 3 more
Caused by: com.jcraft.jsch.JSchException: Auth fail
        at com.jcraft.jsch.Session.connect(
        at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(
        ... 10 more




Back to the top