Here are some SCP command examples:
scp local-file.txt user@server-ip:/path/to/target-file.txt
scp user@server-ip:/path/to/remote-file.txt . # it will download the file in the current location
scp -i ~/.ssh/private-key -P 2222 local-file.txt user@server-ip:/path/to/target-file.txt