{"id":286,"date":"2010-03-12T17:40:07","date_gmt":"2010-03-12T15:40:07","guid":{"rendered":"http:\/\/blog.cipworx.org\/martin\/?p=286"},"modified":"2010-03-12T17:40:07","modified_gmt":"2010-03-12T15:40:07","slug":"ssh","status":"publish","type":"post","link":"https:\/\/blog.cipworx.org\/laserman\/2010\/03\/12\/ssh\/","title":{"rendered":"ssh"},"content":{"rendered":"<p>ssh weniger sicher aber etwas mehr bequem machen:<\/p>\n<p>1.) <strong>HashKnownHosts no<\/strong><br \/>\nin \/etc\/ssh\/ssh_config oder in ~\/.ssh\/config<\/p>\n<p>Danach werde ndie Eintr\u00e4ge in ~\/.ssh\/known_hosts wieder &#8220;so wie fr\u00fcher&#8221; und man kann leicht einen Eintrag finden und entfernen, wenn sich ein host key ge\u00e4ndert hat.<\/p>\n<p>2.)  <strong>StrictHostKeyChecking no<\/strong><br \/>\nin \/etc\/ssh\/ssh_config oder in ~\/.ssh\/config<\/p>\n<p>Nachdem man seinen Schl\u00fcssel mit <strong>ssh-copy-id<\/strong> auf den Zielrechner \u00fcbertragen hat, kann man ssh in scripten benutzen, auch wenn der Zielrechner nicht in <strong>known_hosts<\/strong> steht.<\/p>\n<p>z.B. ein screenshot holen:<br \/>\nssh >\/tmp\/screenshot.xwd -i id_dsa user@rechner xwd -silent -root -display 0:0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ssh weniger sicher aber etwas mehr bequem machen: 1.) HashKnownHosts no in \/etc\/ssh\/ssh_config oder in ~\/.ssh\/config Danach werde ndie Eintr\u00e4ge in ~\/.ssh\/known_hosts wieder &#8220;so wie fr\u00fcher&#8221; und man kann leicht einen Eintrag finden und entfernen, wenn sich ein host key ge\u00e4ndert hat. 2.) StrictHostKeyChecking no in \/etc\/ssh\/ssh_config oder in ~\/.ssh\/config Nachdem man seinen Schl\u00fcssel mit [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,4,9],"tags":[],"class_list":["post-286","post","type-post","status-publish","format-standard","hentry","category-debian","category-linux","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/posts\/286","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/comments?post=286"}],"version-history":[{"count":2,"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/posts\/286\/revisions"}],"predecessor-version":[{"id":288,"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/posts\/286\/revisions\/288"}],"wp:attachment":[{"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/media?parent=286"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/categories?post=286"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/tags?post=286"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}