Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-4323

Not able to create session factory using password authenitication

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: FTP/SFTP Support
    • Labels:
      None

      Description

      We are getting below error, when we are trying to make session factory instance:
      Caused by: com.jcraft.jsch.JSchException: SSH_MSG_DISCONNECT: 2 Too many authentication failures
      We are using 4.3.6.RELEASE spring integration version.

      Code snippet for the same is:

      <bean id="sftpSessionFactory"
                    class="org.springframework.integration.file.remote.session.CachingSessionFactory">
                    <constructor-arg ref="defaultSftpSessionFactory" />
             </bean>
      
             <bean id="defaultSftpSessionFactory"
                    class="org.springframework.integration.sftp.session.DefaultSftpSessionFactory">
                    <property name="host" value="${cmg.sftp.host}" />
                    <property name="port" value="${cmg.sftp.port}" />
                    <property name="user" value="${cmg.sftp.user}" />
                    <property name="password" value="${cmg.sftp.password}" />
                    <property name="allowUnknownKeys" value="true" />
                    <property name="sessionConfig">
                           <map>
                                 <entry key="PreferredAuthentications" value="publickey,password" />                         
                           </map>
                    </property>
             </bean>
      

      Please help me on this ASAP, it's very critical for me.

        Attachments

          Activity

            People

            Assignee:
            abilan Artem Bilan
            Reporter:
            gupamah mohit
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: