title: How to confirm SFTP file delivery?
body: <p>I am sending a file using SFTP and public key for non-root user, looks like the file is sent, but I cant find it on the target folder, maybe due to permission. </p>
  
  <pre><code>sftp&gt; ls
  sftp&gt; put /tmp/testx
  Uploading /tmp/testx to /folder1/target_folder
  /tmp/testx                                 100%    5     0.0KB/s   00:01
  sftp&gt; get testx
  Couldn't stat remote file: No such file or directory
  File "/folder1/target_folder/testx" not found.
  sftp&gt; ls
  sftp&gt;
  </code></pre>
  
  <p>here is the -vvv :</p>
  
  <pre><code>debug3: SSH_FXP_REALPATH . -&gt; /folder1
  debug3: Looking up /tmp/file_to_send
  debug3: Sent message sender_host 4 T:17 I:2
  debug3: Wrote 80 bytes for a total of 2653
  debug3: Received stat reply T:105 I:2
  debug3: Sent message SSH2_FXP_OPEN I:3 P:/folder1/target_directory/file_to_send
  debug3: Wrote 112 bytes for a total of 2765
  debug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:6206
  debug3: Wrote 6288 bytes for a total of 9053
  debug3: SSH2_FXP_STATUS 0
  </code></pre>
  
  <p>target directory </p>
  
  <pre><code> drw-rw-rw-    1  0   0       target_directory
  </code></pre>
  
  <p>How can I make sure the file is delivered, without server access ? </p>