{"id":2616,"date":"2023-09-10T13:24:19","date_gmt":"2023-09-10T11:24:19","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=2616"},"modified":"2023-09-10T13:24:22","modified_gmt":"2023-09-10T11:24:22","slug":"ssh-keygen","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2023\/09\/10\/ssh-keygen\/","title":{"rendered":"ssh-keygen"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Zu ssh hat @robertgoedl schon einen Artikel geschrieben.<br><a href=\"https:\/\/linux-bibel.at\/index.php\/2023\/09\/10\/ssh-secure-shell-unter-linux-am-terminal-und-auf-der-grafischen-oberflaeche\/\" data-type=\"post\" data-id=\"2501\">https:\/\/www.linux-bibel-oesterreich.at\/ &#8230; .php?t=175<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Mit SSH kann man sich bequem auf einen anderen Rechner im Netzwerk einloggen, man muss sich aber jedes mal mit dem jeweiligen Passwort identifizieren.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ssh-keygen erzeugt ein Schl\u00fcsselpaar mit dem man sich sicher ohne Passwort auf einem anderen Rechner einloggen kann.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>~ $ ssh-keygen\nGenerating public\/private rsa key pair.\nEnter file in which to save the key (\/home\/josef\/.ssh\/id_rsa): &#91;enter]\nCreated directory '\/home\/josef\/.ssh'.\nEnter passphrase (empty for no passphrase): &#91;enter]\nEnter same passphrase again: &#91;enter]\nYour identification has been saved in \/home\/josef\/.ssh\/id_rsa\nYour public key has been saved in \/home\/josef\/.ssh\/id_rsa.pub\nThe key fingerprint is:\nSHA256:o2QzkeIF4QjCHLVX2I9b1Xxtb8ciA4S56PlxlRGC7UA josef@compu\nThe key's randomart image is:\n+---&#91;RSA 3072]----+\n|=.o.o.ooE*o +.  .|\n|.+ o.o.o= oo.o .o|\n|  ..o.+.o+.. o.o.|\n|   ..o.o.o. = . =|\n|    ..=.S  . o o.|\n|     oo=...      |\n|      .. o       |\n|        .        |\n|                 |\n+----&#91;SHA256]-----+<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Jetzt muss man nur noch mit ssh-copy-id die id_rsa.pub Datei auf den Zielrechner kopieren:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh-copy-id -i \/home\/username\/.ssh\/id_rsa.pub user@server<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Nun kann man sich ohne Passwort mit ssh user@server einloggen.<\/p>\n\n\n\n<p class=\"has-light-green-cyan-color has-text-color wp-block-paragraph\">Verfasst von Josef_K<\/p>\n<div class=\"pld-like-dislike-wrap pld-custom\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir\" data-post-id=\"2616\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Hoch.png\" alt=\"Gef\u00e4llt mir\" \/>\r\n            <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">3    <\/span>\r\n<\/div><div class=\"pld-dislike-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-dislike-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir nicht\" data-post-id=\"2616\" data-trigger-type=\"dislike\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Runter.png\" alt=\"Gef\u00e4llt mir nicht\" \/>\r\n            <\/a>\r\n    <span class=\"pld-dislike-count-wrap pld-count-wrap\"><\/span>\r\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Zu ssh hat @robertgoedl schon einen Artikel geschrieben.https:\/\/www.linux-bibel-oesterreich.at\/ &#8230; .php?t=175 Mit SSH kann man sich bequem auf einen anderen Rechner im Netzwerk einloggen, man muss sich aber jedes mal mit dem jeweiligen Passwort identifizieren. ssh-keygen erzeugt ein Schl\u00fcsselpaar mit dem man sich sicher ohne Passwort auf einem anderen Rechner einloggen kann. Jetzt muss man nur [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":697,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38,72],"tags":[39,37],"class_list":["post-2616","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-netzwerk","category-sicherheit","tag-netzwerk","tag-sicherheit"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/2616","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/comments?post=2616"}],"version-history":[{"count":1,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/2616\/revisions"}],"predecessor-version":[{"id":2617,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/2616\/revisions\/2617"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media\/697"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=2616"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=2616"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=2616"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}