From 365397c40b4879b8168b76ec57b39275c626c9c5 Mon Sep 17 00:00:00 2001 From: Kiran Joshi Date: Thu, 17 Dec 2020 10:16:17 +0000 Subject: [PATCH] scp: add -P example (#5027) --- pages/common/scp.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pages/common/scp.md b/pages/common/scp.md index 6188179e21..cda70bd9b6 100644 --- a/pages/common/scp.md +++ b/pages/common/scp.md @@ -2,11 +2,16 @@ > Secure copy. > Copy files between hosts using Secure Copy Protocol over SSH. +> More information: . - 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}}`