1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 13:05:59 +02:00

scp: fix -P example (#5343)

The -P parameter comes first to use a specific port.
This commit is contained in:
Eric Nielsen 2021-03-06 15:29:14 -05:00 committed by GitHub
parent 07a4563f5e
commit 5e56c38d37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,7 @@
- Use a specific port when connecting to the remote host:
`scp {{path/to/local_file}} -P {{port}} {{remote_host}}:{{path/to/remote_file}}`
`scp -P {{port}} {{path/to/local_file}} {{remote_host}}:{{path/to/remote_file}}`
- Copy a file from a remote host to a local directory: