5 Replies Latest reply on Dec 9, 2011 10:47 AM by Tom Cunningham

    SFTP Error: com.jcraft.jsch.JSchException: failed to send channel request

    Anonymous User Newbie

      Hello experts,


      I am trying to connect to a SFTP server using the ftp provider of JBoss ESB.


      <ftp-provider hostname="xxx.yy.ch" name="FtpGateway">

         <ftp-bus busid="FtpGatewayEDI">

          <ftp-message-filter directory="/data/"

           error-directory="/data/" input-suffix=".xml"

           password="lala" post-delete="false"

           post-directory="/data/airbp/" post-suffix=".archived"

           protocol="sftp" read-only="false" username="rubbelthecat" work-suffix=".work"  





      Unfortunately I get the following exception when trying to connect:



      Caused by: com.jcraft.jsch.JSchException: failed to send channel request
      at com.jcraft.jsch.Request.write(Request.java:65)
      at com.jcraft.jsch.RequestSftp.request(RequestSftp.java:47)
      at com.jcraft.jsch.ChannelSftp.start(ChannelSftp.java:186)
      at com.jcraft.jsch.Channel.connect(Channel.java:199)
      at com.jcraft.jsch.Channel.connect(Channel.java:144)
      at org.jboss.internal.soa.esb.util.SecureFtpImpl.initialize(SecureFtpImpl.java:259)
      ... 59 more


      The strange thing is that with openSSH and FileZila I can connect without any problems using the same credentials.


      Can you please help out ? My hair are getting less and less due to this problem. Unfortunately the error message is very poor. I had also look at the source code, but without any success.







      Dennis Suhari