{"id":212,"date":"2016-06-13T20:00:58","date_gmt":"2016-06-13T18:00:58","guid":{"rendered":"http:\/\/tomdus.de\/wp\/?p=212"},"modified":"2016-07-25T10:17:23","modified_gmt":"2016-07-25T08:17:23","slug":"ssh-anmeldung-ohne-passwort","status":"publish","type":"post","link":"https:\/\/tomdus.de\/wp\/ssh-anmeldung-ohne-passwort\/","title":{"rendered":"SSH Anmeldung ohne Passwort"},"content":{"rendered":"<p>Sie m\u00f6chten sich vom Rechner A auf einem fremden Rechner B ohne Password-Eingabe mittels ssh anmelden. Die Anmeldung erfolgt somit mittels public keys.<br \/>\nEine Voraussetzung daf\u00fcr ist die Erstellung von SSH key pair (siehe <a href=\"http:\/\/tomdus.de\/wp\/erstelle-ssh-key-pair-in-ubuntu\/\">Erstelle SSH key pair in Ubuntu<\/a>).<\/p>\n<ol>\n<li>Verifizieren Sie die Anmeldung<\/li>\n<li><code>$ tomas@ubuntu:~$ ssh-copy-id -i ~\/.ssh\/id_rsa.pub BENUTZER@ZIELRECHNER<\/code> (Beispiel: <code>$ tomas@ubuntu:~$ ssh-copy-id -i .ssh\/id_rsa.pub martin@centos1.localdomain<\/code>)\n<ul>\n<li>BENUTZER ist Benutzer auf dem Zielrechner<\/li>\n<li>ZIELRECHNER Name des Zielrechners<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-265 size-full\" src=\"http:\/\/tomdus.de\/wp\/wp-content\/uploads\/2016\/06\/ssh-copy-id-root-centos1.png\" alt=\"ssh-copy-id\" width=\"726\" height=\"315\" srcset=\"https:\/\/tomdus.de\/wp\/wp-content\/uploads\/2016\/06\/ssh-copy-id-root-centos1.png 726w, https:\/\/tomdus.de\/wp\/wp-content\/uploads\/2016\/06\/ssh-copy-id-root-centos1-300x130.png 300w\" sizes=\"auto, (max-width: 726px) 100vw, 726px\" \/><\/li>\n<li>Anmeldung ohne Password m\u00f6glich <code>$ ssh root@centos1.localdomain<\/code><\/li>\n<p> \t<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-269 size-full\" src=\"http:\/\/tomdus.de\/wp\/wp-content\/uploads\/2016\/06\/ssh-root-centos.png\" alt=\"ssh root\" width=\"740\" height=\"180\" srcset=\"https:\/\/tomdus.de\/wp\/wp-content\/uploads\/2016\/06\/ssh-root-centos.png 740w, https:\/\/tomdus.de\/wp\/wp-content\/uploads\/2016\/06\/ssh-root-centos-300x73.png 300w\" sizes=\"auto, (max-width: 740px) 100vw, 740px\" \/>\n<\/ol>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sie m\u00f6chten sich vom Rechner A auf einem fremden Rechner B ohne Password-Eingabe mittels ssh anmelden. Die Anmeldung erfolgt somit mittels public keys. Eine Voraussetzung daf\u00fcr ist die Erstellung von SSH key pair (siehe Erstelle SSH key pair in Ubuntu). Verifizieren Sie die Anmeldung $ tomas@ubuntu:~$ ssh-copy-id -i ~\/.ssh\/id_rsa.pub BENUTZER@ZIELRECHNER (Beispiel: $ tomas@ubuntu:~$ ssh-copy-id -i [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-212","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/tomdus.de\/wp\/wp-json\/wp\/v2\/posts\/212","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tomdus.de\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tomdus.de\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tomdus.de\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tomdus.de\/wp\/wp-json\/wp\/v2\/comments?post=212"}],"version-history":[{"count":8,"href":"https:\/\/tomdus.de\/wp\/wp-json\/wp\/v2\/posts\/212\/revisions"}],"predecessor-version":[{"id":266,"href":"https:\/\/tomdus.de\/wp\/wp-json\/wp\/v2\/posts\/212\/revisions\/266"}],"wp:attachment":[{"href":"https:\/\/tomdus.de\/wp\/wp-json\/wp\/v2\/media?parent=212"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tomdus.de\/wp\/wp-json\/wp\/v2\/categories?post=212"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tomdus.de\/wp\/wp-json\/wp\/v2\/tags?post=212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}