There are two ways.

My preference is generally as follows.

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





or

rsync -auv -e ssh –progress sourcedir/ user@dest.com:/dest/dir/

or

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

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

Leave a Reply