Description
This page will help you to troubleshoot GIT extraction using SSH protocol failing with the below error :
Caused by org.eclipse.jgit.errors.TransportException:ssh://<GIT URL>.git: Auth fail
..
at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:142)
at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:121)
at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:248)
at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:147)
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:1111)
..
Caused by com.jcraft.jsch.JSchException:Auth fail
Observed in CAST AIP
Release | Yes/No |
---|---|
8.3.x | |
8.2.x | |
8.1.x | |
8.0.x | |
7.3.x |
Observed on RDBMS
RDBMS | Yes/No |
---|---|
Oracle Server | |
Microsoft SQL Server | |
CSS2 |
Step by Step Scenario
Below is the step-by-step scenario leading to the problem:
- Configure your GIT repository with SSH Protocol
- Download the GIT DMT extension
- Open the DMT and run the GIT Packaging
- It is failing at the Extraction step.
Action Plan
The issue occurs because of the format of the SSH key generated was not correct.
To solve the issue, you need to use the latest version of the GIT Extension and the private key generated by the below command line -
$ ssh-keygen -m PEM -t rsa -b 4096
The format for the Private key should be like below. It should begin with "BEGIN RSA PRIVATE KEY"
If the problem you are facing does not match any case listed in this page, contact CAST Technical Support with the Delivery Manager Tool - Relevant Input
Notes/comments
Ticket # 23467
Related Pages