{"id":330,"date":"2021-10-14T05:05:27","date_gmt":"2021-10-14T05:05:27","guid":{"rendered":"https:\/\/www.evermoretechnologies.com\/blog\/?p=330"},"modified":"2021-10-14T05:06:53","modified_gmt":"2021-10-14T05:06:53","slug":"scp-through-a-non-standard-port","status":"publish","type":"post","link":"https:\/\/www.evermoretechnologies.com\/blog\/2021\/10\/scp-through-a-non-standard-port\/","title":{"rendered":"scp through a non-standard port."},"content":{"rendered":"\n<p>In order to copy files through scp when the remote server use a non standard port for ssh, use the -P switch.  Do not use the ssh lower key -p switch, that is reserved for &#8220;preserve&#8221; which keeps the file timestamps and permissions.<br><br>Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>scp -P 8080 {user}@{host}:\/var\/www\/mysite mysitelocal<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In order to copy files through scp when the remote server use a non standard port for ssh, use the -P switch. Do not use the ssh lower key -p&#8230; <a href=\"https:\/\/www.evermoretechnologies.com\/blog\/2021\/10\/scp-through-a-non-standard-port\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[41,9,11],"tags":[],"_links":{"self":[{"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/330"}],"collection":[{"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=330"}],"version-history":[{"count":1,"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/330\/revisions"}],"predecessor-version":[{"id":331,"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/330\/revisions\/331"}],"wp:attachment":[{"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}