Skip to content

Commit

Permalink
Added scp cheatsheet
Browse files Browse the repository at this point in the history
Added scp cheatsheet
  • Loading branch information
1nPr0c committed Aug 24, 2015
1 parent ee3619f commit c0d816f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Cheatsheet_scp.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[+] Secure Copy (scp) Cheatsheet
--------------------------------

[>] Copy remote file to local host:

$ scp [email protected]:<remote_file> /some/local/directory

[>] Copy local file to remote host:

$ scp <local_file> [email protected]:/some/remote/directory

[>] Copy local directory to remote directory:

scp -r <local_dir> [email protected]:/some/remote/directory/<remote_dir>

[>] Copy a file from one remote host to another:

scp your_username@<host1>:/some/remote/directory/foobar.txt your_username@<host2>:/some/remote/directory/

[>] Improve scp performance (use blowfish):

scp -c blowfish <local_file> [email protected]:/some/remote/directory

0 comments on commit c0d816f

Please sign in to comment.