{"id":5830,"date":"2021-05-29T21:20:23","date_gmt":"2021-05-29T21:20:23","guid":{"rendered":"https:\/\/parsvds.com\/wiki\/?p=5830"},"modified":"2021-05-29T21:20:23","modified_gmt":"2021-05-29T21:20:23","slug":"enable-ssh-root-linux","status":"publish","type":"post","link":"https:\/\/parsvds.com\/wikitest\/2021\/05\/29\/enable-ssh-root-linux\/","title":{"rendered":"\u0641\u0639\u0627\u0644 \u06a9\u0631\u062f\u0646 \u062f\u0633\u062a\u0631\u0633\u06cc SSH \u06cc\u0648\u0632\u0631 root \u062f\u0631 \u0633\u0631\u0648\u0631 \u0644\u06cc\u0646\u0648\u06a9\u0633\u06cc \u0627\u0648\u0628\u0648\u0646\u062a\u0648 \u0648 \u062f\u0628\u06cc\u0627\u0646"},"content":{"rendered":"\n<p>\u067e\u0633 \u0627\u0632 \u0646\u0635\u0628 \u0633\u06cc\u0633\u062a\u0645 \u062c\u062f\u06cc\u062f \u060c \u0648\u0631\u0648\u062f <strong>root <\/strong>\u062f\u0631 Linux \u0628\u0647 \u0637\u0648\u0631 \u067e\u06cc\u0634 \u0641\u0631\u0636 \u063a\u06cc\u0631\u0641\u0639\u0627\u0644 \u0634\u062f\u0647 \u0627\u0633\u062a. \u0648\u0642\u062a\u06cc \u0645\u06cc \u062e\u0648\u0627\u0647\u06cc\u062f \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u06a9\u0627\u0631\u0628\u0631 \u0627\u0635\u0644\u06cc (root) \u0628\u0647 \u0633\u0631\u0648\u0631  Linux \u062e\u0648\u062f \u0648\u0627\u0631\u062f \u0634\u0648\u06cc\u062f \u060c \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u0647 \u0634\u0645\u0627 \u0631\u062f \u0645\u06cc \u0634\u0648\u062f:<\/p>\n\n\n\n<p class=\"info\">\u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634 \u0646\u0633\u062e\u0647 \u0647\u0627\u06cc CentOS 6 CentOS 7 &#8211; debian &#8211; ubuntu \u062a\u0633\u062a \u0634\u062f\u0647 \u0648 \u0628\u0647 \u062f\u0631\u0633\u062a\u06cc \u06a9\u0627\u0631 \u0645\u06cc\u06a9\u0646\u062f ( \u0627\u0644\u0628\u062a\u0647 \u0645\u062d\u062f\u0648\u062f\u06cc\u062a \u0648\u0631\u0648\u062f root \u0628\u0631 \u0631\u0648\u06cc \u0633\u06cc\u0633\u062a\u0645 \u0647\u0627\u06cc CentOS\u200c \u067e\u06cc\u0634\u0641\u0631\u0636 \u0648\u062c\u0648\u062f \u0646\u062f\u0627\u0631\u062f \u0648 \u0628\u0631 \u0631\u0648\u06cc Debian \u0648 Ubuntu \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f )<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ ssh root@parsvds\nroot@parsvds's password: \nPermission denied, please try again.\nroot@parsvds's password: \nPermission denied, please try again.\nroot@parsvds's password: \nPermission denied (publickey,password).<\/code><\/pre>\n\n\n\n<p>\u0628\u0631\u0627\u06cc \u0641\u0639\u0627\u0644 \u06a9\u0631\u062f\u0646 \u0648\u0631\u0648\u062f SSH \u0628\u0631\u0627\u06cc \u06cc\u06a9 \u06a9\u0627\u0631\u0628\u0631 \u0631\u06cc\u0634\u0647 \u062f\u0631 \u0633\u06cc\u0633\u062a\u0645 \u0644\u06cc\u0646\u0648\u06a9\u0633 \u060c \u0627\u0628\u062a\u062f\u0627 \u0628\u0627\u06cc\u062f \u0633\u0631\u0648\u0631 SSH \u0631\u0627 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u06a9\u0646\u06cc\u062f. \/ etc \/ ssh \/ sshd_config \u0631\u0627 \u0628\u0627\u0632 \u06a9\u0631\u062f\u0647 \u0648 \u062e\u0637 \u0632\u06cc\u0631 \u0631\u0627 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f: \u062f\u0633\u062a\u0648\u0631 <\/p>\n\n\n\n<p class=\"warning\">\u062a\u0648\u062c\u0647 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u0627\u0628\u062a\u062f\u0627 \u0628\u0627\u06cc\u062f \u0627\u0632 \u0637\u0631\u06cc\u0642 \u06cc\u0648\u0632\u0631 \u062f\u06cc\u06af\u0631\u06cc \u06a9\u0647 \u062f\u0633\u062a\u0631\u0633\u06cc \u062f\u0627\u0631\u06cc\u062f <strong>sudo su root\u200c <\/strong>\u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0628\u062a\u0648\u0627\u0646\u06cc\u062f \u0648\u0627\u0631\u062f \u06cc\u0648\u0632\u0631 \u0634\u0648\u06cc\u062f \u0648 \u0633\u067e\u0633 \u0641\u0627\u06cc\u0644 \u0641\u0648\u0642 \u0631\u0627 \u0628\u0627 \u0648\u06cc\u0631\u0627\u0634\u06af\u0631\u06cc \u0645\u0627\u0646\u0646\u062f nano \u0628\u0627\u0632 \u06a9\u0646\u06cc\u062f \u0648 \u0648\u06cc\u0631\u0627\u06cc\u0634 \u06a9\u0646\u06cc\u062f <br><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>From:\nPermitRootLogin without-password\nTo:\nPermitRootLogin yes<\/code><\/pre>\n\n\n\n<p>\u067e\u0633 \u0627\u0632 \u0627\u0646\u062c\u0627\u0645 \u062a\u063a\u06cc\u06cc\u0631 \u0641\u0648\u0642 \u060c \u0633\u0631\u0648\u06cc\u0633 SSH \u062e\u0648\u062f \u0631\u0627 \u0645\u062c\u062f\u062f\u0627\u064b \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \/etc\/init.d\/ssh restart OR  service sshd restart\n&#91; ok ] Restarting ssh (via systemctl): ssh.service.<\/code><\/pre>\n\n\n\n<p>\u0627\u0632 \u0627\u06cc\u0646 \u0628\u0647 \u0628\u0639\u062f \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f ssh \u0648\u0627\u0631\u062f \u0634\u0648\u06cc\u062f \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 root :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ ssh root@parsvds\nroot@parsvds's password: \n\nThe programs included with the Debian GNU\/Linux system are free software;\nthe exact distribution terms for each program are described in the\nindividual files in \/usr\/share\/doc\/*\/copyright.\n\nDebian GNU\/Linux comes with ABSOLUTELY NO WARRANTY, to the extent\npermitted by applicable law.<\/code><\/pre>\n\n\n\n<p class=\"success\">\u067e\u0627\u0631\u0633 \u0648\u06cc \u062f\u06cc \u0627\u0633 \u0627\u0631\u0627\u06cc\u0647 \u062f\u0647\u0646\u062f\u0647 \u0633\u0631\u0648\u0631 \u0647\u0627\u06cc \u0645\u062c\u0627\u0632\u06cc \u0627\u0632 \u0628\u06cc\u0634 \u0627\u0632 29 \u0644\u0648\u06a9\u06cc\u0634\u0646 \u0628\u0647 \u0635\u0648\u0631\u062a \u062a\u062d\u0648\u06cc\u0644 \u0622\u0646\u06cc &#8211; (\u200c<a href=\"https:\/\/parsvds.com\/\"><strong>\u062e\u0631\u06cc\u062f VPS<\/strong><\/a> )<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u067e\u0633 \u0627\u0632 \u0646\u0635\u0628 \u0633\u06cc\u0633\u062a\u0645 \u062c\u062f\u06cc\u062f \u060c \u0648\u0631\u0648\u062f root \u062f\u0631 Linux \u0628\u0647 \u0637\u0648\u0631 \u067e\u06cc\u0634 \u0641\u0631\u0636 \u063a\u06cc\u0631\u0641\u0639\u0627\u0644 \u0634\u062f\u0647 \u0627\u0633\u062a. \u0648\u0642\u062a\u06cc \u0645\u06cc \u062e\u0648\u0627\u0647\u06cc\u062f \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u06a9\u0627\u0631\u0628\u0631 \u0627\u0635\u0644\u06cc (root) \u0628\u0647 \u0633\u0631\u0648\u0631 Linux \u062e\u0648\u062f \u0648\u0627\u0631\u062f \u0634\u0648\u06cc\u062f \u060c \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u0647 \u0634\u0645\u0627 \u0631\u062f \u0645\u06cc \u0634\u0648\u062f: \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634 \u0646\u0633\u062e\u0647 \u0647\u0627\u06cc CentOS 6 CentOS 7 &#8211; debian &#8211; ubuntu \u062a\u0633\u062a \u0634\u062f\u0647 \u0648 \u0628\u0647 \u062f\u0631\u0633\u062a\u06cc [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":5831,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","footnotes":""},"categories":[2,3,9,22,27],"tags":[1520,1521,1522,1526],"class_list":["post-5830","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-debian","category-ubuntu","category-windows-guides","category-faq","tag---ssh-root-centos","tag---ssh-root-debian","tag---ssh-root-ubuntu","tag----ssh-root"],"uagb_featured_image_src":{"full":["https:\/\/parsvds.com\/wikitest\/wp-content\/uploads\/2021\/05\/enable-ssh-debian-1.png",802,402,false],"thumbnail":["https:\/\/parsvds.com\/wikitest\/wp-content\/uploads\/2021\/05\/enable-ssh-debian-1-150x150.png",150,150,true],"medium":["https:\/\/parsvds.com\/wikitest\/wp-content\/uploads\/2021\/05\/enable-ssh-debian-1-300x150.png",300,150,true],"medium_large":["https:\/\/parsvds.com\/wikitest\/wp-content\/uploads\/2021\/05\/enable-ssh-debian-1-768x385.png",768,385,true],"large":["https:\/\/parsvds.com\/wikitest\/wp-content\/uploads\/2021\/05\/enable-ssh-debian-1.png",800,401,false],"1536x1536":["https:\/\/parsvds.com\/wikitest\/wp-content\/uploads\/2021\/05\/enable-ssh-debian-1.png",802,402,false],"2048x2048":["https:\/\/parsvds.com\/wikitest\/wp-content\/uploads\/2021\/05\/enable-ssh-debian-1.png",802,402,false]},"uagb_author_info":{"display_name":"\u0639\u0644\u06cc \u0632\u0647\u06cc\u0631\u06cc","author_link":"https:\/\/parsvds.com\/wikitest\/author\/lemo1996\/"},"uagb_comment_info":0,"uagb_excerpt":"\u067e\u0633 \u0627\u0632 \u0646\u0635\u0628 \u0633\u06cc\u0633\u062a\u0645 \u062c\u062f\u06cc\u062f \u060c \u0648\u0631\u0648\u062f root \u062f\u0631 Linux \u0628\u0647 \u0637\u0648\u0631 \u067e\u06cc\u0634 \u0641\u0631\u0636 \u063a\u06cc\u0631\u0641\u0639\u0627\u0644 \u0634\u062f\u0647 \u0627\u0633\u062a. \u0648\u0642\u062a\u06cc \u0645\u06cc \u062e\u0648\u0627\u0647\u06cc\u062f \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u06a9\u0627\u0631\u0628\u0631 \u0627\u0635\u0644\u06cc (root) \u0628\u0647 \u0633\u0631\u0648\u0631 Linux \u062e\u0648\u062f \u0648\u0627\u0631\u062f \u0634\u0648\u06cc\u062f \u060c \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u0647 \u0634\u0645\u0627 \u0631\u062f \u0645\u06cc \u0634\u0648\u062f: \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634 \u0646\u0633\u062e\u0647 \u0647\u0627\u06cc CentOS 6 CentOS 7 &#8211; debian &#8211; ubuntu \u062a\u0633\u062a \u0634\u062f\u0647 \u0648 \u0628\u0647 \u062f\u0631\u0633\u062a\u06cc&hellip;","_links":{"self":[{"href":"https:\/\/parsvds.com\/wikitest\/wp-json\/wp\/v2\/posts\/5830","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/parsvds.com\/wikitest\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/parsvds.com\/wikitest\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/parsvds.com\/wikitest\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/parsvds.com\/wikitest\/wp-json\/wp\/v2\/comments?post=5830"}],"version-history":[{"count":0,"href":"https:\/\/parsvds.com\/wikitest\/wp-json\/wp\/v2\/posts\/5830\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/parsvds.com\/wikitest\/wp-json\/wp\/v2\/media\/5831"}],"wp:attachment":[{"href":"https:\/\/parsvds.com\/wikitest\/wp-json\/wp\/v2\/media?parent=5830"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/parsvds.com\/wikitest\/wp-json\/wp\/v2\/categories?post=5830"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/parsvds.com\/wikitest\/wp-json\/wp\/v2\/tags?post=5830"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}