tags:

views:

33

answers:

2

hi,

I wanted to know if there is an option in SFTP by which i could copy a folder from remote machine to local machine.

thanks

A: 

Hello, you can use lftp.

lftp sftp://...

Then use the mirror command. Read the manual for more help, lftp is well-documented and awesome.

Benoit
A: 

On Linux you should be able to copy files directly using following command.

scp -r <remote-ip>:<remote-directory> <local-target-directory>

Or you can mount the SFTP directory on local machine:

sshfs <remote-ip>:<remote-directory> <mount-directory>
hluk