mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 05:22:09 +02:00
scp: specify port on host
This commit is contained in:
parent
327a045f5a
commit
45871b2662
1 changed files with 4 additions and 0 deletions
|
@ -21,6 +21,10 @@
|
|||
|
||||
`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
|
||||
|
||||
`scp {{10.0.0.1}}:{{/remote/path/file.txt}} {{20.0.0.2}}:{{/other/remote/path}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue