{"id":462,"date":"2022-06-27T07:39:51","date_gmt":"2022-06-27T05:39:51","guid":{"rendered":"http:\/\/sebabu-it.de\/?p=462"},"modified":"2023-05-22T21:51:35","modified_gmt":"2023-05-22T19:51:35","slug":"debian-anmeldung-als-root-per-ssh-zulassen","status":"publish","type":"post","link":"https:\/\/sebabu.landau-software.de\/?p=462","title":{"rendered":"Debian &#8211; Anmeldung als root per SSH zulassen"},"content":{"rendered":"\n<!--more-->\n\n\n\n<p>Quelle: <a href=\"https:\/\/pits-online.info\/2010\/09\/03\/anmeldung-als-root-per-ssh-zulassen\/\">PITS Online<\/a><\/p>\n\n\n\n<p>Stand: 03.09.2010<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>Je nach Linux und ssh Version wird man eine unterschiedliche Standardkonfiguration der ssh Implementation vorfinden. Aus Sicherheitsgr\u00fcnden sollte man jedoch dem root Nutzer die direkte Anmeldung an ein System nicht erlauben.<\/p>\n\n\n\n<p>Um die Anmeldung per root zu unterbinden muss die entsprechende Dienstkonfiguration&nbsp;angepasst werden:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>ssh Konfiguration anpassen\n<ul class=\"wp-block-list\">\n<li><code>vi \/etc\/ssh\/sshd_config<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>den Schalter f\u00fcr die Anmeldung per root suchen\n<ul class=\"wp-block-list\">\n<li><code>PermitRootLogin<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Anmeldung per root erlauben oder verweigern\n<ul class=\"wp-block-list\">\n<li><code>PermitRootLogin yes<\/code>&nbsp;\u2192 erlauben<\/li>\n\n\n\n<li><code>PermitRootLogin no<\/code>&nbsp;\u2192 verweigern<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u00c4nderungen speichern<\/li>\n\n\n\n<li>Dienst neustarten\n<ul class=\"wp-block-list\">\n<li><code>\/etc\/init.d\/ssh restart<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>Zus\u00e4tzlich kann und sollte man die Nutzer, welche ssh nutzen k\u00f6nnen einschr\u00e4nken. Dazu geht man \u00e4hnlich vor wie eben beschrieben und erg\u00e4nzt folgende Zeile.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>AllowUsers &lt;login&gt; &lt;login&gt; &lt;login&gt;<\/code><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":633,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[36],"tags":[],"class_list":["post-462","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/sebabu.landau-software.de\/index.php?rest_route=\/wp\/v2\/posts\/462","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sebabu.landau-software.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sebabu.landau-software.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sebabu.landau-software.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sebabu.landau-software.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=462"}],"version-history":[{"count":3,"href":"https:\/\/sebabu.landau-software.de\/index.php?rest_route=\/wp\/v2\/posts\/462\/revisions"}],"predecessor-version":[{"id":623,"href":"https:\/\/sebabu.landau-software.de\/index.php?rest_route=\/wp\/v2\/posts\/462\/revisions\/623"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sebabu.landau-software.de\/index.php?rest_route=\/wp\/v2\/media\/633"}],"wp:attachment":[{"href":"https:\/\/sebabu.landau-software.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=462"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sebabu.landau-software.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=462"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sebabu.landau-software.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}