Ver código fonte

scp: fix -P example (#5343)

The -P parameter comes first to use a specific port.
Eric Nielsen 4 anos atrás
pai
commit
5e56c38d37
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      pages/common/scp.md

+ 1 - 1
pages/common/scp.md

@@ -10,7 +10,7 @@
 
 
 - Use a specific port when connecting to the remote host:
 - 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:
 - Copy a file from a remote host to a local directory: