this command <\/a>only.<\/p>\n\n\n\nNow pimp up the git to use the ssh command a bit differently:<\/p>\n\n\n\n
git -c core.sshCommand=\"ssh -i whereverisyourkey\/git_id_rsa\" pull origin master<\/pre>\n\n\n\nCraft this command into your systemd service file, or crontab or any other scheduler something.<\/p>\n\n\n\n
Uh, this is baaad, anyone has the (private) key, can steal your full git repo!<\/p>\n\n\n\n
Absolutely true. But if someone managed to get this key, then probably already took the full repo too (and many other things). But this key allows a read-only access so cannot alter the repo content. Unless if there is a way in the git protocol, I never checked, tbh. And the important thing, this key not allows remote login.<\/p>\n\n\n\n
Note: if the attacker manages to alter the repo content and somehow able to push it into your central git server, you are in trouble.<\/strong><\/p>\n\n\n\nPff… why bother then with all this crap? See above. You get automatic updates, and even can push the changes if you log in with your private key (or use your secure password).<\/p>\n","protected":false},"excerpt":{"rendered":"
At least, I hope.<\/p>\n","protected":false},"author":1,"featured_media":5278,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[135,134],"_links":{"self":[{"href":"https:\/\/wp.fisher.hu\/wp-json\/wp\/v2\/posts\/5273"}],"collection":[{"href":"https:\/\/wp.fisher.hu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.fisher.hu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.fisher.hu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.fisher.hu\/wp-json\/wp\/v2\/comments?post=5273"}],"version-history":[{"count":8,"href":"https:\/\/wp.fisher.hu\/wp-json\/wp\/v2\/posts\/5273\/revisions"}],"predecessor-version":[{"id":5283,"href":"https:\/\/wp.fisher.hu\/wp-json\/wp\/v2\/posts\/5273\/revisions\/5283"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wp.fisher.hu\/wp-json\/wp\/v2\/media\/5278"}],"wp:attachment":[{"href":"https:\/\/wp.fisher.hu\/wp-json\/wp\/v2\/media?parent=5273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.fisher.hu\/wp-json\/wp\/v2\/categories?post=5273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.fisher.hu\/wp-json\/wp\/v2\/tags?post=5273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}