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

SFTP provider doesn't support a private key as byte array

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.1
    • 2.4
    • None
    • Java client running on Windows 7

    Description

      Sometimes we would store the private key as a string\bytes in the remote server site, and then access the SFTP functions,
      The JSCH API already provides a possibility to add the private key as bytes, while VFS doesn't support so,
      JSch.java
      public void addIdentity(String name, byte[] prvkey, byte[] pubkey, byte[] passphrase)

      Attachments

        1. SftpClientFactory.java
          13 kB
          stevezhuang
        2. IdentityInfo.java
          4 kB
          stevezhuang

        Issue Links

          Activity

            People

              Unassigned Unassigned
              stevezhuang stevezhuang
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m