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

Support native sftp client

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.8.0
    • 0.9.0
    • None

    Description

      I can't connect via a Linux sftp client to a sshd server, version 0.8.

      {shell}
      ~ $ sftp -P 8000 localhost
      subsystem request failed on channel 0
      Connection closed{shell} {shell}
      apache-sshd-0.8.0 $ ./bin/sshd.sh
      Starting SSHD on port 8000
      184 [main] INFO org.apache.sshd.common.util.SecurityUtils - Trying to register BouncyCastle as a JCE provider
      566 [main] INFO org.apache.sshd.common.util.SecurityUtils - Registration succeeded
      5972 [NioProcessor-2] INFO org.apache.sshd.server.session.ServerSession - Session created from /127.0.0.1:36970
      6144 [NioProcessor-2] INFO org.apache.sshd.server.session.ServerSession - Session eli@/127.0.0.1:36970 authenticated
      6162 [NioProcessor-2] INFO org.apache.sshd.server.session.ServerSession - Session eli@/127.0.0.1:36970 closed{shell}

      When running from the latest code (6/26/2013) I get an NPE on the server side:

      {shell}
      834155 [NioProcessor-7] INFO org.apache.sshd.server.session.ServerSession - Session created from /127.0.0.1:36952
      834277 [NioProcessor-7] INFO org.apache.sshd.server.session.ServerSession - Session eli@/127.0.0.1:36952 authenticated
      834279 [NioProcessor-7] WARN org.apache.sshd.server.session.ServerSession - Exception caught
      java.lang.NullPointerException
      at org.apache.sshd.server.channel.ChannelSession.doWriteData(ChannelSession.java:197)
      at org.apache.sshd.common.channel.AbstractChannel.handleData(AbstractChannel.java:127)
      at org.apache.sshd.common.session.AbstractSession.channelData(AbstractSession.java:1005)
      at org.apache.sshd.server.session.ServerSession.running(ServerSession.java:224)
      at org.apache.sshd.server.session.ServerSession.handleMessage(ServerSession.java:197)
      at org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:583)
      at org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:254)
      at org.apache.sshd.common.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:58)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:716)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:796)
      at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:119)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:426)
      at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:697)
      at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:651)
      at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:640)
      at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:67)
      at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1111)
      at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at java.lang.Thread.run(Thread.java:722)
      834281 [NioProcessor-7] INFO org.apache.sshd.server.session.ServerSession - Session eli@/127.0.0.1:36952 closed{shell}

      Attachments

        Activity

          People

            gnodet Guillaume Nodet
            eli Eli Collins
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: