Skip to content

Instantly share code, notes, and snippets.

@BenSlabbert
Created February 26, 2020 13:02
Show Gist options
  • Save BenSlabbert/bdbb5bb3df80a92f5ddf38fc10d7753d to your computer and use it in GitHub Desktop.
Save BenSlabbert/bdbb5bb3df80a92f5ddf38fc10d7753d to your computer and use it in GitHub Desktop.
scp file from remote to local with ssh id key
#!/bin/sh
scp -i SSH_PEM_KEY USERNAME@IP_ADDRESS:PATH_TO_FILE PATH_TO_DESTINATION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment