[jboss-dev-forums] [Design of JBoss ESB] - SFTP : auth fail

oichris do-not-reply at jboss.com
Sun Jul 5 23:46:28 EDT 2009


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.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241882#4241882

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241882



More information about the jboss-dev-forums mailing list