{"id":900,"date":"2018-11-12T04:21:50","date_gmt":"2018-11-12T04:21:50","guid":{"rendered":"http:\/\/orissawebhosting.in\/blog\/?p=900"},"modified":"2019-06-27T12:39:29","modified_gmt":"2019-06-27T12:39:29","slug":"copying-a-file-to-another-server-through-scp","status":"publish","type":"post","link":"https:\/\/orissawebhosting.in\/blog\/copying-a-file-to-another-server-through-scp\/","title":{"rendered":"Copying a file to another server through SCP in Orissa vps hosting"},"content":{"rendered":"<h4>To copy a file to another server, use the following procedure:<\/h4>\n<ul>\n<li>Log in to your server with SSH as root.<\/li>\n<li>Navigate to the directory where there are the files to be transferred, using\u00a0<em>cd<\/em>\u00a0command:<\/li>\n<\/ul>\n<pre>cd \/home\/albert<\/pre>\n<ul>\n<li>Type the following command (make sure you replace the IP address and the file name):<\/li>\n<\/ul>\n<pre>scp move.txt 100.101.102.11:\/root\/<\/pre>\n<p>In this example, 100.101.102.11 is the IP address of the destination server, and \/root\/ is the destination folder of move.txt<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-901 size-full\" src=\"http:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/11\/scp1.jpg\" alt=\"\" width=\"532\" height=\"141\" srcset=\"https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/11\/scp1.jpg 532w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/11\/scp1-300x80.jpg 300w\" sizes=\"(max-width: 532px) 100vw, 532px\" \/><\/p>\n<ul>\n<li>You will be prompted to enter the root password of the remote server.<\/li>\n<\/ul>\n<p><a href=\"http:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/11\/scp2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-903 size-large\" src=\"http:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/11\/scp2-1024x83.jpg\" alt=\"\" width=\"640\" height=\"52\" srcset=\"https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/11\/scp2-1024x83.jpg 1024w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/11\/scp2-300x24.jpg 300w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/11\/scp2-768x62.jpg 768w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/11\/scp2.jpg 1351w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>Now the move.txt file has been successfully transferred to\u00a0\u00a0destination server.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-904 size-full\" src=\"http:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/11\/scp3.jpg\" alt=\"\" width=\"493\" height=\"139\" srcset=\"https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/11\/scp3.jpg 493w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/11\/scp3-300x85.jpg 300w\" sizes=\"(max-width: 493px) 100vw, 493px\" \/><\/p>\n<h5>To copy a folder and its contents to another server, please use the following procedure:<\/h5>\n<p>If you need to copy a folder and its contents, you should use the -r (recursive) option with the command like this:<\/p>\n<pre>scp -r foldername 100.101.102.11:\/root\/<\/pre>\n<p>Now you know how to transfer the files from one server to another servers.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To copy a file to another server, use the following procedure: Log in to your server with SSH as root. Navigate to the directory where there are the files to be transferred, using\u00a0cd\u00a0command: cd \/home\/albert Type the following command (make sure you replace the IP address and the file name): scp move.txt 100.101.102.11:\/root\/ In this example, 100.101.102.11 is the IP address of the destination server, and \/root\/ is the destination folder of move.txt You will be prompted to enter the root password of the remote server. Now the move.txt file&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/900"}],"collection":[{"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/comments?post=900"}],"version-history":[{"count":11,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/900\/revisions"}],"predecessor-version":[{"id":1052,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/900\/revisions\/1052"}],"wp:attachment":[{"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/media?parent=900"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/categories?post=900"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/tags?post=900"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}