forked from jivoi/Cheatsheets
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added scp cheatsheet
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 characters
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 |