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
|
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.
|
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 |
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.
|
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. |