Skip to content

Instantly share code, notes, and snippets.

@raybesiga
Created August 13, 2018 05:58
Show Gist options
  • Select an option

  • Save raybesiga/c2779052fc70604234bae214b6f49be9 to your computer and use it in GitHub Desktop.

Select an option

Save raybesiga/c2779052fc70604234bae214b6f49be9 to your computer and use it in GitHub Desktop.

Revisions

  1. raybesiga created this gist Aug 13, 2018.
    9 changes: 9 additions & 0 deletions scp-remote-local
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    ## To copy a file from remote to local

    `scp user@remote:/foo/bar/folder /home/bar/folder`

    ## To copy a folder from remote to local

    `scp -r user@remote:/foo/bar/folder /home/bar/folder`

    This uses a recursive copy