Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-451

Authentication fails using private key

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0
    • 2.1
    • None
    • windows as client
      linux as ssh server

    Description

      Cannot connect to a ssh server with my private key.

      I believe the issue is due to an JSCH bug.

      Using the following lines:

      session.setPassword(pass);
      jsch.addIdentity(identityfile);

      instead of

      jsch.addIdentity(privateKeyFilePath,password);

      authentication fails.

      Attachments

        1. vfs-patch-2.txt
          2 kB
          Marco Ronchi
        2. SimpleTest.java
          0.9 kB
          Marco Ronchi
        3. SftpClientFactory.java.patch
          2 kB
          Marco Ronchi

        Issue Links

          Activity

            People

              joehni Joerg Schaible
              ilmarcoronchi Marco Ronchi
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: