MINA SSHD
  1. MINA SSHD
  2. SSHD-160

Standard ScpCommand does not work with pscp

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.6.0
    • Fix Version/s: 0.7.0
    • Labels:
      None
    • Environment:
      Java 1.5, Linux 3.0 and Windows 7 (tested both)

      Description

      When copying files to the sshd with pscp, I get the message "Fatal: Server refused to start a shell/command".
      This seems to be due to additional IGNORE messages that the pscp client sends to the server, as compared to the standard linux scp client.

      1. sshdtest.lcf
        0.3 kB
        Leonid
      2. Main.java
        1 kB
        Leonid
      3. mina_sshd_with_pscp_client.log
        15 kB
        Leonid
      4. mina_sshd_with_scp_client.log
        20 kB
        Leonid
      5. client.log
        0.4 kB
        Leonid

        Activity

        Hide
        Guillaume Nodet added a comment -

        Fixed. As a workaround, specifying -scp as an option to pscp.exe works too.
        But I've fixed the channel type to only set the type if the request has been successfully handled.

        Show
        Guillaume Nodet added a comment - Fixed. As a workaround, specifying -scp as an option to pscp.exe works too. But I've fixed the channel type to only set the type if the request has been successfully handled.
        Hide
        Leonid added a comment -

        The attached logs are created in the following way:
        1. started the server
        2. copied an empty file by the means of scp to the server -> mina_sshd_with_scp_client.log
        3. restarted the server
        4. copied an empty file by the means of pscp to the server -> mina_sshd_with_pscp_client.log

        The attached code is copied and adapted from http://mina.apache.org/sshd/embedding-sshd-in-5-minutes.html

        Show
        Leonid added a comment - The attached logs are created in the following way: 1. started the server 2. copied an empty file by the means of scp to the server -> mina_sshd_with_scp_client.log 3. restarted the server 4. copied an empty file by the means of pscp to the server -> mina_sshd_with_pscp_client.log The attached code is copied and adapted from http://mina.apache.org/sshd/embedding-sshd-in-5-minutes.html

          People

          • Assignee:
            Guillaume Nodet
            Reporter:
            Leonid
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development