From 6807d7a8b2d1d0cba92505c8d9233de4097ed85a Mon Sep 17 00:00:00 2001 From: Sindhuri1706 <35066155+Sindhuri1706@users.noreply.github.com> Date: Wed, 17 Oct 2018 23:52:56 +0530 Subject: [PATCH] SSH:Move files between servers (#18987) * added guidelines to move files between servers * Move and update scp article This commit moves the file to the correct place and updates the format of the content for correctly displaying content. The move is in accordance with the new architecture of where the Guide articles are placed within the repository. * Delete Django change Appears to be leftover from another commit. --- .../ssh/moving-files-between-servers/index.md | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 guide/english/ssh/moving-files-between-servers/index.md diff --git a/guide/english/ssh/moving-files-between-servers/index.md b/guide/english/ssh/moving-files-between-servers/index.md new file mode 100644 index 0000000000..ef4fa639c3 --- /dev/null +++ b/guide/english/ssh/moving-files-between-servers/index.md @@ -0,0 +1,36 @@ +--- +title: Moving files between servers +--- + +## Moving file from local computer to remote server + +* First add public key of remote server to known hosts +* The command to copy files from local computer to remote server is + +```shell +scp -i @host: +``` + +## Moving file from remote server to local computer + +* First add public key of remote server to known hosts +* The command to copy files from remote server to local computer is + +```shell +scp -i @: +``` + +## Moving file between remote servers + +* First add public key of remote servers to known hosts +* The command to copy files between remote server to local computer is + +```shell +scp -i @: @: +``` + +## To move entire directory use -r option + +```shell +scp -r root@hostname:/source_folder/* /destination_folder/ +```