{"id":120,"date":"2012-03-11T17:46:41","date_gmt":"2012-03-11T17:46:41","guid":{"rendered":"http:\/\/www.davidhedges.info\/?p=120"},"modified":"2018-06-03T17:47:14","modified_gmt":"2018-06-03T17:47:14","slug":"rsync-from-windows-to-a-linux-server","status":"publish","type":"post","link":"https:\/\/www.davidhedges.info\/index.php\/2012\/03\/11\/rsync-from-windows-to-a-linux-server\/","title":{"rendered":"Rsync from windows to a linux server"},"content":{"rendered":"<p>I spent way too long trying to figure out why I couldn&#8217;t get windows (using cygwin) to rsync to my linux server using a key exchange (so I can automate it). In the event anyone else is wanting to try this, I&#8217;ll post it here (assuming cygwin is already installed):<\/p>\n<p>1. on the windows server run &#8220;ssh-keygen -t dsa&#8221; this will generate your key pair<br \/>\n2. make sure your rights are set correctly on the linux server for the .ssh directory and the files within it (this is what got me)<br \/>\nthe .ssh directory should be 700 (ex. chmod 700 .ssh)<br \/>\nthe files within it should be 600<br \/>\n3. copy your id_dsa.pub to the linux server from your windows server, then rename it authorized_keys, and move it into the .ssh directory (verify rights again)<\/p>\n<p>that should be all, from there you should be able to ssh or rsync from the windows host to the linux one without need for a password.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I spent way too long trying to figure out why I couldn&#8217;t get windows (using cygwin) to rsync to my linux server using a key exchange (so I can automate it). In the event anyone else is wanting to try this, I&#8217;ll post it here (assuming cygwin is already installed): 1. on the windows server [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[3],"tags":[],"class_list":["post-120","post","type-post","status-publish","format-standard","category-it-blog","entry"],"_links":{"self":[{"href":"https:\/\/www.davidhedges.info\/index.php\/wp-json\/wp\/v2\/posts\/120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.davidhedges.info\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.davidhedges.info\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.davidhedges.info\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.davidhedges.info\/index.php\/wp-json\/wp\/v2\/comments?post=120"}],"version-history":[{"count":1,"href":"https:\/\/www.davidhedges.info\/index.php\/wp-json\/wp\/v2\/posts\/120\/revisions"}],"predecessor-version":[{"id":121,"href":"https:\/\/www.davidhedges.info\/index.php\/wp-json\/wp\/v2\/posts\/120\/revisions\/121"}],"wp:attachment":[{"href":"https:\/\/www.davidhedges.info\/index.php\/wp-json\/wp\/v2\/media?parent=120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.davidhedges.info\/index.php\/wp-json\/wp\/v2\/categories?post=120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.davidhedges.info\/index.php\/wp-json\/wp\/v2\/tags?post=120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}