facelordgists
10/31/2018 - 11:47 PM

how to use SCP

how to use SCP

# Upload / copy a single file from the current local directory to the home dir of a remote server that's configured in your ssh config
scp test.txt gateway-team-orange:test.txt

# Download / copy a single file from the home dir of a remote server that's configured in your ssh config to your current local directory
scp cw-tuv:error-logs-all.log error-logs-all.log

# Copy a single file from one server to another (both in home directory)
scp gateway-team-green:test.txt gateway-team-orange:test.txt