title: JSch SCP file transfer using "exec" channel
body: <p>I'm very new to the SCP protocol and JSch. I have to transfer a file fro a remote device via SCP to Android. The server side developers refused to tell be anything about their device except for the file location, and the root account which can be used to access it with SCP.</p>
  
  <p>Here are the steps I tried.</p>
  
  <ol>
  <li><p>Confirm that using JSch, my Android client can establish connection with the server. [complete]</p></li>
  <li><p>Confirm that using JSch, and the <code>ChannelExec</code> object, I can send the <code>ls</code> command and read its output. [complete]</p></li>
  <li><p>Confirm that using JSch, and the <code>ChannelSFTP</code> object, I can transfer a file from the device. [failed]</p></li>
  </ol>
  
  <p>The reason why (3) failed seems that the device (server) is not configured for SFTP. The maker keeps on saying that commands on ssh like below works:</p>
  
  <pre class="lang-none prettyprint-override"><code>scp root@192.168.5.1/usr/WS026.jpeg [targetPath]
  </code></pre>
  
  <p>They say that the above command will copy the first parameter to the target path of the client. So, alternative to using the SFTP, <b>how can I implement that in JSch channel "exec"?</b></p>