-
-
Save ayoola-moore/a595a857b7c1af6a94bc577a62256a1a to your computer and use it in GitHub Desktop.
Revisions
-
dehamzah revised this gist
Dec 19, 2016 . 1 changed file with 47 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,12 +1,56 @@ ## Basic Syntax ``` $ scp source_file_path destination_file_path ``` ### Uploading Single file ``` $ scp ~/my_local_file.txt user@remote_host.com:/some/remote/directory ``` Multiple files ``` $ scp foo.txt bar.txt username@remotehost:/path/directory/ ``` ### Downloading Single file ``` $ scp user@remote_host.com:/some/remote/directory ~/my_local_file.txt ``` Multiple files ``` $ scp username@remotehost:/path/directory/\{foo.txt,bar.txt\} . ``` ### Extra Options #### Verbose Output ``` $ scp -v source_file_path destination_file_path ``` #### Copy Entire Directory (Recursively) ``` $ scp -r source_file_path destination_file_path ``` #### Speed Up Transfer with Compression ``` $ scp -C source_file_path destination_file_path ``` #### Specify Identity File ``` $ scp -i private_key.pem ~/test.txt [email protected]:/some/path/test.txt ``` -
dehamzah created this gist
Dec 19, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ ## Basic Syntax ``` $ scp source_file_name username@destination_host:destination_folder ``` ### Provide Information about whats going on with `-v` parameter ``` $ scp -v source_file_name username@destination_host:destination_folder ```