title: Setting connection timeout for Spring Integration SFTP
body: <p>Is it possible to set connection timeout for Spring integration SFTP?</p>
  
  <pre><code>&lt;bean id="defaultSftpSessionFactory"
          class="org.springframework.integration.sftp.session.DefaultSftpSessionFactory"&gt;
      &lt;property name="host" value=""/&gt;
      &lt;property name="privateKey" value=""/&gt;
      &lt;property name="privateKeyPassphrase" value=""/&gt;
      &lt;property name="port" value=""/&gt;
      &lt;property name="user" value=""/&gt;
      &lt;property name="serverAliveInterval" value="100000"/&gt;
      &lt;property name="serverAliveCountMax" value="5"/&gt;
      &lt;property name="timeout" value="100000"/&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p><strong>serverAliveInterval</strong>, <strong>serverAliveCountMax</strong> and <strong>timeout</strong> doesn't make any difference what's related to connection timeout.</p>