Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I copy folders using sftp? [closed]

Tags:

sftp

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

thanks

like image 646
rushi Avatar asked Oct 11 '10 14:10

rushi


1 Answers

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>
like image 181
hluk Avatar answered Sep 20 '22 07:09

hluk