1 Reply Latest reply on Aug 27, 2015 2:31 AM by sandeep gollapudi

    Accessing Repository via SSH (kie-wb on tomcat 7) on 6.2.0.Final

    sandeep gollapudi Newbie

      Hi,

      I have some issue in Accessing Repository via SSH (kie-wb on tomcat 7) . Am using 6.2.0.Final and not able to connect to ssh://admin@localhost:8001/system: Auth fail.

      I am  using tomcat users as credentials.

      Below is the error:


      C:\Project\kie-wb-distributions\kie-config-cli\target\kie-config-cli-6.2.0.Final-dist>kie-config-cli.bat

      ********************************************************

      ************* Welcome to Kie config CLI ****************

      ********************************************************

      >>Please specify location of remote git system repository [ssh://localhost:8001/system]

      ssh://localhost:8001/system

      >>Please enter username:

      admin

      >>Please enter password:

       

      Exception in thread "main" java.lang.RuntimeException: org.eclipse.jgit.api.errors.TransportException: ssh://admin@localhost:8001/system: Auth fail

              at org.uberfire.java.nio.fs.jgit.util.JGitUtil.cloneRepository(JGitUtil.java:220)

              at org.uberfire.java.nio.fs.jgit.JGitFileSystemProvider.newFileSystem(JGitFileSystemProvider.java:583)

              at org.uberfire.java.nio.file.FileSystems.newFileSystem(FileSystems.java:117)

              at org.uberfire.java.nio.file.FileSystems.newFileSystem(FileSystems.java:83)

              at org.uberfire.io.impl.AbstractIOService.newFileSystem(AbstractIOService.java:225)

              at org.kie.config.cli.command.impl.CloneGitRepositoryCliCommand.execute(CloneGitRepositoryCliCommand.java:70)

              at org.kie.config.cli.CmdMain.main(CmdMain.java:85)

      Caused by: org.eclipse.jgit.api.errors.TransportException: ssh://admin@localhost:8001/system: Auth fail

              at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:139)

              at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:178)

              at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:125)

              at org.uberfire.java.nio.fs.jgit.util.JGitUtil.cloneRepository(JGitUtil.java:199)

              ... 6 more

      Caused by: org.eclipse.jgit.errors.TransportException: ssh://admin@localhost:8001/system: 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)

              at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:130)

              ... 9 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)

              ... 16 more

       

       

      Please help me on this..

       

      Thanks In Advance,

      Sandeep