title: How to rename a file with sftp get command
body: <p>Is there a way to use a "get" command in sftp to get a folder without obtaining "Cannot download non-regular file:..../dir_name" or to get a file and save it with another name?</p>
  
  <p>In the second option I mean:</p>
  
  <pre><code>sftp&gt; ls
  hello.txt
  sftp&gt; get hello.txt (+ something) byebye.txt
  sftp&gt; exit
  </code></pre>
  
  <p>And in my directory I have <code>byebye.txt</code>.</p>