title: Apache Camel SFTP download is not working
body: <p>I am trying to download file from SFTP server location but log looks good finally nothing is downloaded from the server to local.No errors also coming.Please give your inputs thanks in advance.</p>
  
  <p><strong>SFTP files available:</strong></p>
  
  <pre><code>[root@rsysftp test1]# ls /tmp/files/test1
  test1.txt  test2.txt  test3.txt  test4.txt
  </code></pre>
  
  <p><strong>Router:</strong></p>
  
  <pre><code>@Component
  public class SampleCamelRouter extends RouteBuilder {
  
      @Override
      public void configure() throws Exception {
          getContext().getShutdownStrategy().setTimeout(10);
  
          from("sftp://ftpuser1@some.ip.value.here/tmp/files/test1?password=pass")
                  .to("file:C:/out")
                  .log("Downloaded file ${file:name} complete.");
      }
  
  }
  </code></pre>
  
  <p><strong>Log:</strong></p>
  
  <pre><code>o.a.camel.spring.SpringCamelContext      : Route: route1 started and consuming from: sftp://ftpuser1@some.ip.value.here/tmp/files/test1/test1.txt?password=xxxxxx
  o.a.camel.spring.SpringCamelContext      : Total 1 routes, of which 1 are started.
  o.a.camel.spring.SpringCamelContext      : Apache Camel 2.18.1 (CamelContext: SampleCamel) started in 30.871 seconds
  s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8080 (http)
  c.camel.examples.SampleCamelApplication  : Started SampleCamelApplication in 37.837 seconds (JVM running for 38.891)
  </code></pre>
  
  <p><strong>pom.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;groupId&gt;org.springframework&lt;/groupId&gt;
      &lt;artifactId&gt;gs-spring-boot&lt;/artifactId&gt;
      &lt;version&gt;0.1.0&lt;/version&gt;
  
      &lt;parent&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
          &lt;version&gt;1.5.5.RELEASE&lt;/version&gt;
      &lt;/parent&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
              &lt;artifactId&gt;camel-spring-boot-starter&lt;/artifactId&gt;
              &lt;version&gt;2.18.1&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
              &lt;artifactId&gt;camel-stream-starter&lt;/artifactId&gt;
              &lt;version&gt;2.18.1&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
              &lt;artifactId&gt;camel-ftp&lt;/artifactId&gt;
              &lt;version&gt;2.18.1&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;io.hawt&lt;/groupId&gt;
              &lt;artifactId&gt;hawtio-springboot&lt;/artifactId&gt;
              &lt;version&gt;2.0.0&lt;/version&gt;
          &lt;/dependency&gt;
  
      &lt;/dependencies&gt;
  
  
      &lt;properties&gt;
          &lt;java.version&gt;1.8&lt;/java.version&gt;
      &lt;/properties&gt;
  
  
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  
  &lt;/project&gt;
  </code></pre>