LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   sftp (https://www.linuxquestions.org/questions/linux-newbie-8/sftp-4175436512/)

skp 11-10-2012 12:31 AM

sftp
 
I tried to put a directory tree to the remote server but it is not getting transfered to the remote server. says ' the dir is not a regualr file' I guess it is not possible to transfer a directory using sftp. Can anyone please inform me the best way to put a directory tree through sftp or any method. As the ssh is blocked for user i am trying go through ftp

Turbocapitalist 11-10-2012 04:23 AM

put -r
 
You could try 'put -r' instead of plain 'put'. It does not work in all cases, but might work for yours. Sometimes you will have to create the target directory first before trying the transfer.

skp 11-10-2012 09:18 AM

Thanks for your reply but put -r doesnt work. I tried. Is there any way of putting the directory tree in any FTP client?
I tried using ncftp but couldn't work more on that...Please let me know if you have any other best solution

Turbocapitalist 11-10-2012 09:27 AM

put -r won't work by itself. The top directory being copied must already exist on the target machine. You can do that in sftp or out of it with mkdir.

skp 11-26-2012 10:22 PM

Thanks for your reply. It worked when i use lftp along with sftp. Now i can copy multiple directory trees using sftp.


All times are GMT -5. The time now is 05:59 AM.