Skip to content

Instantly share code, notes, and snippets.

@DaWe35
Last active July 10, 2023 13:55
Show Gist options
  • Save DaWe35/ede03b82be13569ca7245a0f9d4e9fba to your computer and use it in GitHub Desktop.
Save DaWe35/ede03b82be13569ca7245a0f9d4e9fba to your computer and use it in GitHub Desktop.
SCP and rsync commands

Copy local file to remote server using SSH key

rsync --compress --archive --partial --append-verify --verbose --progress -e "ssh -i ~/SSH_KEY" LOCAL_FILE.zip REMOTE_USER@REMOTE_IP:REMOTE_FILE.zip

scp -i ~/SSH_KEY LOCAL_FILE REMOTE_USER@REMOTE_IP:REMOTE_FILE.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment