0
I am using SFTP to download files from a server. It connects to the server fine and when I enter ls
it lists all the files I am looking for.
When I get to the: sftp>
, I enter: get [FILENAME]
and then it says:
Fetching /directory/FILENAME to FILENAME
/directory/FILENAME 100%
then it takes me back to: sftp>
I have searched for the file on my computer but I cannot find it. I think the second directory it shows should be the local directory I want the file to be downloaded to right? If so how do I change it?
1In most SFTP clients, you can issue the
lpwd
command which will return the client's local working directory. That should be the calling shell's working directory, but it may not be. You can also uselcd
to change the local directory andlls
to get the local directory's contents. – Bacon Bits – 2014-10-27T19:24:48.607@BaconBits Thanks for the comment. I have included this to the answer. – Martin Prikryl – 2014-10-27T19:39:02.917
Additionally, you can usually use
!
in your ftp/sftp client to escape to the shell.!pwd
and/or!ls
would be particularly useful here. – Rich Homolka – 2014-10-27T19:54:56.397Thank you all so much for your help! I really appreciate it! Everything makes sense now :) – Mo Gaucho – 2014-10-27T20:43:10.520