mirror of https://github.com/CrimsonTome/tldr.git
commit
bf3598ee92
|
@ -21,6 +21,10 @@
|
||||||
|
|
||||||
`scp {{/local/file.txt}} {{my_user}}@{{10.0.0.1}}:{{/remote/path}}`
|
`scp {{/local/file.txt}} {{my_user}}@{{10.0.0.1}}:{{/remote/path}}`
|
||||||
|
|
||||||
|
- specify port on host
|
||||||
|
|
||||||
|
`scp -P {{port}} {{/local/file.txt}} {{10.0.0.1}}:{{/remote/path}}`
|
||||||
|
|
||||||
- copy a file from one host to another
|
- copy a file from one host to another
|
||||||
|
|
||||||
`scp {{10.0.0.1}}:{{/remote/path/file.txt}} {{20.0.0.2}}:{{/other/remote/path}}`
|
`scp {{10.0.0.1}}:{{/remote/path/file.txt}} {{20.0.0.2}}:{{/other/remote/path}}`
|
||||||
|
|
Loading…
Reference in New Issue