1 Reply Latest reply on Jul 13, 2009 7:21 AM by Kevin Conner

    SFTP : auth fail

    Chris Au Newbie

      Hi all,

      I tried to configure an ftp listener using protocol "sftp", below is the snippet of my jboss-esb.xml :

      <ftp-provider name="FTPprovider" hostname="myhost" >
      <ftp-bus busid="my_ftp" >
      <ftp-message-filter
      username="userx"
      password="userp"
      directory="/home/ftpfolder"
      input-suffix=".xml"
      work-suffix=".esbWorking"
      post-delete="false"
      post-suffix=".COMPLETE"
      error-delete="false"
      error-suffix=".HAS_ERROR"
      protocol="sftp"
      passive="false"
      />
      </ftp-bus>
      </ftp-provider>

      It keeps prompting me "Auth fail" error. So I tried to investigate into the code in : SecureFtpImpl.java . I used the same code in my testing client and found that this line is causing the problem :

      session.setConfig("PreferredAuthentications", "password") ;

      When I commented this line and compile, everything works fine. Could anyone guide me to any workaround or doc stating my problem? We would be more than happy that being no need to compile and package our own jboss-rosetta.jar

      Thanks a lot.