{"id":1217,"date":"2018-05-22T15:34:03","date_gmt":"2018-05-22T20:34:03","guid":{"rendered":"http:\/\/blog.ls-al.com\/?p=1217"},"modified":"2018-05-22T15:34:21","modified_gmt":"2018-05-22T20:34:21","slug":"rsync-plus-ssh-config","status":"publish","type":"post","link":"https:\/\/blog.ls-al.com\/rsync-plus-ssh-config\/","title":{"rendered":"Rsync Plus SSH Config"},"content":{"rendered":"
Sometimes you need to use settings from the ssh config file or in my case a custom config file.\u00a0 Here is a quick note on how I did it.<\/p>\n
Example without SSH config just using the key and user@publicIP<\/strong><\/p>\n Example with SSH config<\/strong><\/p>\n Sometimes you need to use settings from the ssh config file or in my case a custom config file.\u00a0 Here<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[97,21],"tags":[],"class_list":["post-1217","post","type-post","status-publish","format-standard","hentry","category-rsync","category-ssh"],"_links":{"self":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/1217","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/comments?post=1217"}],"version-history":[{"count":0,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/1217\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/media?parent=1217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/categories?post=1217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/tags?post=1217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}\r\n$ pwd\r\n\/home\/rrossouw\/.ssh\r\n\r\n$ rsync -avz --exclude "env-vars" -e "ssh -i \/media\/sf_DATA\/ssh-keys\/oci-mgmt" \/media\/sf_DATA\/src\/terraform\/* opc@pu.blic.ip:~\/terraform\/\r\nsending incremental file list\r\ndevtest\/lb_private.tf\r\n\r\nsent 2,650 bytes received 91 bytes 1,096.40 bytes\/sec\r\ntotal size is 1,343,000 speedup is 489.97\r\n<\/pre>\n
\r\n$ pwd\r\n\/home\/rrossouw\/.ssh\r\n\r\n$ rsync -avz --exclude "env-vars" -e "ssh -F My-config" \/media\/sf_DATA\/src\/terraform\/* jump01:~\/terraform\/\r\nsending incremental file list\r\n\r\nsent 2,607 bytes received 32 bytes 1,759.33 bytes\/sec\r\ntotal size is 1,343,000 speedup is 508.90\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"