copy files from one machine to another using ssh

copy files from one machine to another using ssh

Syntax:

scp <source> <destination>

To copy a file from B to A while logged into B:

scp /path/to/file [email protected]:/path/to/destination

To copy a file from B to A while logged into A:

scp [email protected]:/path/to/file /path/to/destination

ٍSource: https://unix.stackexchange.com/questions/106480/how-to-copy-files-from-one-machine-to-another-using-ssh

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.