{"id":179,"date":"2025-08-28T10:59:53","date_gmt":"2025-08-28T10:59:53","guid":{"rendered":"https:\/\/linuxbase.io\/?p=179"},"modified":"2025-08-28T10:59:53","modified_gmt":"2025-08-28T10:59:53","slug":"ssh-key-auf-einem-linux-server-hinterlegen","status":"publish","type":"post","link":"https:\/\/netguide.io\/linux\/de\/ssh-key-auf-einem-linux-server-hinterlegen\/","title":{"rendered":"SSH-Key auf einem Linux-Server hinterlegen &#8211; so geht&#8217;s"},"content":{"rendered":"\n<p>Wer sich sicherer und ohne st\u00e4ndiges Passwort-Eintippen auf einem Linux-Server anmelden m\u00f6chte, sollte SSH-Keys verwenden. Mit einem SSH-Key meldest du dich verschl\u00fcsselt an &#8211; schnell, einfach und sicher.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">1. SSH-Key auf deinem Rechner erzeugen<\/h4>\n\n\n\n<p>Im Terminal auf deinem Rechner:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2\"><span style=\"padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#24292e\"><\/span><span role=\"button\" style=\"color:#e1e4e8\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" aria-hidden=\"true\" readonly>ssh-keygen -t rsa -b 4096 -C \"deine.email@example.com\"\n<\/textarea><\/pre><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\"><code><span class=\"line\"><span style=\"color: #B392F0\">ssh-keygen<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #79B8FF\">-t<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">rsa<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #79B8FF\">-b<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #79B8FF\">4096<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #79B8FF\">-C<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">&quot;deine.email@example.com&quot;<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>-t rsa<\/code> legt den Schl\u00fcsseltyp fest.<\/li>\n\n\n\n<li><code>-b 4096<\/code> sorgt f\u00fcr starke Verschl\u00fcsselung.<\/li>\n\n\n\n<li><code>-C<\/code> f\u00fcgt einen Kommentar hinzu (z.\u202fB. deine E-Mail).<\/li>\n<\/ul>\n\n\n\n<p>Folge den Anweisungen und w\u00e4hle Speicherort sowie optional ein Passwort.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">2. Public Key auf den Server kopieren<\/h4>\n\n\n\n<p><strong>Automatisch:<\/strong><\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2\"><span style=\"padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#24292e\"><\/span><span role=\"button\" style=\"color:#e1e4e8\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" aria-hidden=\"true\" readonly>ssh-copy-id benutzername@serveradresse\n<\/textarea><\/pre><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\"><code><span class=\"line\"><span style=\"color: #B392F0\">ssh-copy-id<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">benutzername@serveradresse<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>Dies f\u00fcgt deinen Schl\u00fcssel zu <code>~\/.ssh\/authorized_keys<\/code> auf dem Server hinzu.<\/p>\n\n\n\n<p><strong>Manuell:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Auf dem Server einloggen: <code>ssh benutzername@serveradresse<\/code><\/li>\n\n\n\n<li>Datei <code>~\/.ssh\/authorized_keys<\/code> \u00f6ffnen oder erstellen: <code>nano ~\/.ssh\/authorized_keys<\/code><\/li>\n\n\n\n<li>Den Inhalt deines Public Keys (<code>id_rsa.pub<\/code>) am Ende der Datei einf\u00fcgen, speichern und schlie\u00dfen.<\/li>\n\n\n\n<li>Berechtigungen pr\u00fcfen: <code>chmod 600 ~\/.ssh\/authorized_keys chmod 700 ~\/.ssh<\/code><\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">3. Verbindung testen<\/h4>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2\"><span style=\"padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#24292e\"><\/span><span role=\"button\" style=\"color:#e1e4e8\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" aria-hidden=\"true\" readonly>ssh benutzername@serveradresse\n<\/textarea><\/pre><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\"><code><span class=\"line\"><span style=\"color: #B392F0\">ssh<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">benutzername@serveradresse<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>Wenn alles funktioniert, meldest du dich direkt an &#8211; ohne Passwort.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">4. Extra-Tipps<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Windows-Nutzer:<\/strong> Programme wie <a href=\"https:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>PuTTY<\/strong> mit <strong>Pageant<\/strong><\/a> und <strong><a href=\"https:\/\/mobaxterm.mobatek.net\/download.html\" target=\"_blank\" rel=\"noreferrer noopener\">MobaXTerm<\/a><\/strong> erleichtern die Nutzung von SSH-Keys erheblich.<\/li>\n\n\n\n<li><strong>Dateitransfer:<\/strong> Mit <strong>WinSCP<\/strong> kann man sich ebenfalls per SSH-Key authentifizieren.<\/li>\n\n\n\n<li>Optional auf dem Server: Passwort-Authentifizierung deaktivieren (<code>\/etc\/ssh\/sshd_config<\/code> \u2192 <code>PasswordAuthentication no<\/code>), um nur Schl\u00fcssel zuzulassen.<\/li>\n<\/ul>\n\n\n\n<p>SSH-Keys sind sicher, komfortabel und sparen Zeit beim Arbeiten mit Servern.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Wer sich sicherer und ohne st\u00e4ndiges Passwort-Eintippen auf einem Linux-Server anmelden m\u00f6chte, sollte SSH-Keys verwenden. Mit einem SSH-Key meldest du [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":309,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[9,27],"tags":[63,65,67,69,71,73],"class_list":["post-179","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-proxmox","tag-ssh-2","tag-authorized_keys","tag-linux","tag-ssh","tag-ssh-key","tag-ssh-keys"],"uagb_featured_image_src":{"full":["https:\/\/netguide.io\/linux\/wp-content\/uploads\/sites\/2\/2025\/08\/Linux.png",1920,1080,false],"thumbnail":["https:\/\/netguide.io\/linux\/wp-content\/uploads\/sites\/2\/2025\/08\/Linux-150x150.png",150,150,true],"medium":["https:\/\/netguide.io\/linux\/wp-content\/uploads\/sites\/2\/2025\/08\/Linux-300x169.png",300,169,true],"medium_large":["https:\/\/netguide.io\/linux\/wp-content\/uploads\/sites\/2\/2025\/08\/Linux-768x432.png",768,432,true],"large":["https:\/\/netguide.io\/linux\/wp-content\/uploads\/sites\/2\/2025\/08\/Linux-1024x576.png",1024,576,true],"1536x1536":["https:\/\/netguide.io\/linux\/wp-content\/uploads\/sites\/2\/2025\/08\/Linux-1536x864.png",1536,864,true],"2048x2048":["https:\/\/netguide.io\/linux\/wp-content\/uploads\/sites\/2\/2025\/08\/Linux.png",1920,1080,false]},"uagb_author_info":{"display_name":"tobias.pries","author_link":"https:\/\/netguide.io\/linux\/author\/tobias-pries\/"},"uagb_comment_info":0,"uagb_excerpt":"Wer sich sicherer und ohne st\u00e4ndiges Passwort-Eintippen auf einem Linux-Server anmelden m\u00f6chte, sollte SSH-Keys verwenden. Mit einem SSH-Key meldest du [&hellip;]","_links":{"self":[{"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/posts\/179","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/comments?post=179"}],"version-history":[{"count":0,"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/posts\/179\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/media\/309"}],"wp:attachment":[{"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/media?parent=179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/categories?post=179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/tags?post=179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}