Skip to content

Instantly share code, notes, and snippets.

@krhoyt
Created March 6, 2025 17:58
Show Gist options
  • Save krhoyt/10dd5a3442b1275f0753fdb908521f3b to your computer and use it in GitHub Desktop.
Save krhoyt/10dd5a3442b1275f0753fdb908521f3b to your computer and use it in GitHub Desktop.
SCP Command Examples
# Remote login generally lands in user root, but may want ~/ prefix for specificity
# Specificity may be desired on local path as well with ./ depending on location
scp USER@SERVER:PATH_TO_REMOTE_FILE PATH_TO_LOCAL_FILE
# Remote login generally lands in user root, but may want ~/ prefix for specificity
# Specificity may be desired on local path as well with ./ depending on location
scp PATH_TO_LOCAL_FILE USER@SERVER:PATH_TO_REMOTE_FILE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment