From 5e56c38d3780d1cc550d59ab713fdf2b3e6470b4 Mon Sep 17 00:00:00 2001 From: Eric Nielsen Date: Sat, 6 Mar 2021 15:29:14 -0500 Subject: [PATCH] scp: fix -P example (#5343) The -P parameter comes first to use a specific port. --- pages/common/scp.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/scp.md b/pages/common/scp.md index cda70bd9b6..dc46a68d3d 100644 --- a/pages/common/scp.md +++ b/pages/common/scp.md @@ -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: