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?
In the second option I mean:
sftp> ls
hello.txt
sftp> get hello.txt (+ something) byebye.txt
sftp> exit
And in my directory I have byebye.txt.
no need any params, just