Skip to content

Instantly share code, notes, and snippets.

@juancarloscruzd
Forked from roalcantara/gist:5490277
Last active October 26, 2015 17:06
Show Gist options
  • Save juancarloscruzd/aa5493b18888c49978fc to your computer and use it in GitHub Desktop.
Save juancarloscruzd/aa5493b18888c49978fc to your computer and use it in GitHub Desktop.
SCP + PEM File
eval `ssh-agent -s`
$ scp -i /path/to/file.pem /path/to/copy/foo.gz username@<some.public.host>:/target/path/
$ scp -i /path/to/file.pem username@<host>:/path/to/copy/foo.gz /target/to/paste/
scp -P 18765 -r [email protected]:~/public_html ~/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment