<bean id="sftpSessionFactory"
class="org.springframework.integration.sftp.session.DefaultSftpSessionFactory">
<property name="host" value="${host}" />
<property name="privateKey" value="file:${keyfile}"/>
<property name="user" value="${user}" />
<property name="port" value="${port}" />
</bean>
I have the above configuration. and I have public key under authorized keys ~/.ssh2 on server. I am still getting the Caused by: com.jcraft.jsch.JSchException: Auth fail error. All the credentials are correct and am able to sftp through command prompt. Kindly suggest asap. Confused. Please see the logs:
INFO | jvm 1 | 2014/10/31 13:41:23 | ... 21 more INFO | jvm 1 | 2014/10/31 13:41:23 | Caused by: com.jcraft.jsch.JSchException: Auth fail INFO | jvm 1 | 2014/10/31 13:41:23 | at com.jcraft.jsch.Session.connect(Session.java:464) INFO | jvm 1 | 2014/10/31 13:41:23 | at com.jcraft.jsch.Session.connect(Session.java:158) INFO | jvm 1 | 2014/10/31 13:41:23 | at org.springframework.integration.sftp.session.SftpSession.connect(SftpSession.java:198) INFO | jvm 1 | 2014/10/31 13:41:23 | ... 22 more
This is the detailed log. Iam Confused whether it is connecting or not. Could you please help me
${keyfile}? There are lots of places in that chain that could be broken. - Jim Garrison