How to copy File or Directory from Local Machine/Remote Server to remote Linux server

There are two ways.

My preference is generally as follows.

scp -r sourcedir/ user@:/dest/dir/


rsync -auv -e ssh –progress sourcedir/


rsync -avlzp sourcedir/ user@:/dest/dir/

you can put file name instead of sourcedir to copy file too.

Leave a Reply

Your email address will not be published.