scp from local to remote server code example
Example 1: scp send file
scp ./file.txt remote_username@remote_ip:/remote/directory
Example 2: scp server to local
scp [email protected]:/remote/file.txt /local/directory
Example 3: scp local to remote
scp -i <private_key> ./file.txt remote_username@remote_ip:/remote/directory
Example 4: how to scp from server to local
scp [email protected]:/root/Jmeter/reports.jtl Downloads/