title: How can i upload file by command line via sftp?
body: <p>I know how to get remote file via sftp.</p>
  
  <p>ex:</p>
  
  <pre><code>sftp root@10.0.0.1:/path/to/file.txt localfile.txt
  </code></pre>
  
  <p>How can i upload file to remote server?</p>
  
  <p>(I need use this command in my bash script.)</p>