SCP
📂

SCP

The SCP(Secure Copy Protocol) is a file transfer command based on SSH, used to securely copy files/directories between local and remote hosts

Parameters

 
-r # Recursively copy directories -P # Specify SSH port (note: uppercase -P, unlike ssh's -p)
Examples:
scp -r -P 8888 /home/test/ username@192.168.1.1:/home/data/copy_here/ scp -r -P 8888 username@192.168.1.1:/home/test /home/data/copy_here/ # upload multiple files scp -P 8888 /home/test/{file1,file2} username@192.168.1.1:/home/data/copy_here/
Â