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.
If you remove this line then it will not attempt password authentication, which suggests that there is no password associated with that account.
You should be able to do the same by not specifying the password.
Kev