Uploaded image for project: 'MINA SSHD'
  1. MINA SSHD
  2. SSHD-728

sshd-core sftp not working with FileZilla sftp client

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.0
    • 1.6.0
    • None

    Description

      I've upgraded from sshd-core 0.14.0 to 1.3.0. FileZilla file download for largish files worked on 0.14.0 but not 1.3.0.

      Steps to reproduce:

      1. Set up a server with the code below
      2. Make sure there is a largish file to download (I tested with size 1048576)
      3. Connect to the server with FileZilla (I tried version 3.9.0.5)
      4. Try to download the file
      5. The error
        Error:	error while reading: received a short buffer from FXP_READ, but not at EOF
        Error:	File transfer failed after transferring 16384 bytes in 1 second

        appears in the FileZilla logs

      6. Multiple FileZilla popups to overwrite the file appear (obviously connected to the error above)
      7. The download fails
      Simple configuration to generate error
          SshServer sshd = SshServer.setUpDefaultServer();
          sshd.setKeyPairProvider(new SimpleGeneratorHostKeyProvider());
          sshd.setPort(2222);
      
          sshd.setShellFactory(InteractiveProcessShellFactory.INSTANCE);
          sshd.setPasswordAuthenticator((username, password, session) -> Objects.equals(username, password));
          sshd.setPublickeyAuthenticator(AcceptAllPublickeyAuthenticator.INSTANCE);
          sshd.setTcpipForwardingFilter(AcceptAllForwardingFilter.INSTANCE);
          sshd.setCommandFactory(new ScpCommandFactory.Builder().withDelegate(
              command -> new ProcessShellFactory(GenericUtils.split(command, ' ')).create()
          ).build());
          sshd.setSubsystemFactories(Collections.singletonList(new SftpSubsystemFactory()));
          sshd.start();
      

      Attachments

        Issue Links

          Activity

            People

              lgoldstein Lyor Goldstein
              tntim96 tntim96
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: