{"id":169,"date":"2015-07-03T15:30:48","date_gmt":"2015-07-03T15:30:48","guid":{"rendered":"http:\/\/linux.suriyasuneel.com\/?p=169"},"modified":"2016-09-13T12:43:59","modified_gmt":"2016-09-13T12:43:59","slug":"sftp","status":"publish","type":"post","link":"http:\/\/linux.suriyasuneel.com\/?p=169","title":{"rendered":"SFTP &#038; SCP"},"content":{"rendered":"<h3>SCP<\/h3>\n<p>Git Bash has scp but not sftp.<\/p>\n<pre>$scp -i &lt;identity_file_name&gt; -P &lt;port_number&gt; .\/201* user_name@hot_name:&lt;destination_directory&gt;\r\n<\/pre>\n<p>Now i can upload all the files that start with 201, and as long as i&#8217;m in the same folder where the files<br \/>\nare.<\/p>\n<h3>SFTP<\/h3>\n<p>It is very easy to perform upload and download files once we get into the sftp shell.<br \/>\nIt can be done by issuing the following command. If you don&#8217;t have the public\/private key implemented then you<br \/>\nhave to enter the password to login.<\/p>\n<pre>$sftp -i&lt;identify_file_name&gt; -P&lt;port_number&gt; user_name@host_name\r\n<\/pre>\n<p>Once you are in the shell, it will look like this<\/p>\n<pre>sftp&gt;\r\n<\/pre>\n<p>To upload a file<\/p>\n<pre>sftp&gt;put &lt;file_name&gt;\r\n<\/pre>\n<p>To download a file<\/p>\n<pre>sftp&gt;get &lt;file_name&gt;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>SCP Git Bash has scp but not sftp. $scp -i &lt;identity_file_name&gt; -P &lt;port_number&gt; .\/201* user_name@hot_name:&lt;destination_directory&gt; Now i can upload all the files that start with 201, and as long as i&#8217;m in the same folder where the files are. SFTP It is very easy to perform upload and download files once we get into the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"_links":{"self":[{"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=\/wp\/v2\/posts\/169"}],"collection":[{"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=169"}],"version-history":[{"count":5,"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=\/wp\/v2\/posts\/169\/revisions"}],"predecessor-version":[{"id":185,"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=\/wp\/v2\/posts\/169\/revisions\/185"}],"wp:attachment":[{"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=169"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}