{"id":2136,"date":"2016-09-07T15:18:25","date_gmt":"2016-09-07T20:18:25","guid":{"rendered":"http:\/\/www.threshold-zero.com\/cblog\/?p=2136"},"modified":"2016-09-07T15:18:25","modified_gmt":"2016-09-07T20:18:25","slug":"rsync-to-aws-using-pem-key","status":"publish","type":"post","link":"https:\/\/www.threshold-zero.com\/cblog\/2016\/09\/rsync-to-aws-using-pem-key\/","title":{"rendered":"rsync to AWS using .PEM key"},"content":{"rendered":"<p>Took me a little while to figure this out, but it&#8217;s a pretty standard implementation of the rsync command &#8212; you use the &#8220;-e&#8221; command and then specify an entire ssh command to use, like below:<\/p>\n<blockquote><p>function amazonrsync {<br \/>\nrsync -rave &#8220;ssh -i ~\/.ssh\/AWS_key.pem&#8221; $1 $2<br \/>\n}<\/p><\/blockquote>\n<p>That&#8217;s an entire shell function, by the way, that makes the whole thing easier to use.\u00c2\u00a0 Feel free to put it in your shell alias file.<\/p>\n<p>Source: <em><a href=\"http:\/\/www.anthonychambers.co.uk\/blog\/rsync-to-aws-ec2-using-.pem-key\/9\">Rsync to AWS EC2 Using .PEM key &#8211; AnthonyChambers.co.uk Blog<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Took me a little while to figure this out, but it&#8217;s a pretty standard implementation of the rsync command &#8212; you use the &#8220;-e&#8221; command and then specify an entire ssh command to use, like below: function amazonrsync { rsync -rave &#8220;ssh -i ~\/.ssh\/AWS_key.pem&#8221; $1 $2 } That&#8217;s an entire shell function, by the way, [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[96,11,15,31],"tags":[],"class_list":["post-2136","post","type-post","status-publish","format-standard","hentry","category-computing","category-linux","category-science-and-technology","category-ubuntu"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2ZUZG-ys","_links":{"self":[{"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/posts\/2136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/comments?post=2136"}],"version-history":[{"count":1,"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/posts\/2136\/revisions"}],"predecessor-version":[{"id":2137,"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/posts\/2136\/revisions\/2137"}],"wp:attachment":[{"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/media?parent=2136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/categories?post=2136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/tags?post=2136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}