mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-19 14:55:26 +02:00
scp: add -P example (#5027)
This commit is contained in:
parent
37eee7881c
commit
365397c40b
1 changed files with 5 additions and 0 deletions
|
@ -2,11 +2,16 @@
|
|||
|
||||
> Secure copy.
|
||||
> Copy files between hosts using Secure Copy Protocol over SSH.
|
||||
> More information: <https://man.openbsd.org/scp>.
|
||||
|
||||
- Copy a local file to a remote host:
|
||||
|
||||
`scp {{path/to/local_file}} {{remote_host}}:{{path/to/remote_file}}`
|
||||
|
||||
- Use a specific port when connecting to the remote host:
|
||||
|
||||
`scp {{path/to/local_file}} -P {{port}} {{remote_host}}:{{path/to/remote_file}}`
|
||||
|
||||
- Copy a file from a remote host to a local directory:
|
||||
|
||||
`scp {{remote_host}}:{{path/to/remote_file}} {{path/to/local_directory}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue