how to direct copy file/folder from server to server?

Following linux command use to copy file/folder from server to server:

scp [-o ssh_option ] [[user@ ] host1 : file1 ] [ ] [[user@ ] host2 : file2 ]

For Example:

scp -rv user@host:/path/to/source/dirORfile /path/to/destination

Leave a comment