scp file from server to local code example
Example 1: scp send file
scp ./file.txt remote_username@remote_ip:/remote/directory
Example 2: how to copy a file to a remote server using the command line
scp file.txt [email protected]:/remote/directory
Example 3: scp folder from server to local
scp -r [email protected]:/path/to/foo /home/user/Desktop/
Example 4: scp server to local
scp [email protected]:/remote/file.txt /local/directory
Example 5: how to scp from server to local
scp [email protected]:/root/Jmeter/reports.jtl Downloads/