{"id":3111,"date":"2021-07-12T21:00:47","date_gmt":"2021-07-12T16:30:47","guid":{"rendered":"https:\/\/fireserver.ir\/blog\/?p=3111"},"modified":"2021-07-12T21:27:22","modified_gmt":"2021-07-12T16:57:22","slug":"enable-ubuntu-root-access-on-ssh","status":"publish","type":"post","link":"https:\/\/fireserver.ir\/blog\/enable-ubuntu-root-access-on-ssh\/","title":{"rendered":"\u0641\u0639\u0627\u0644\u0633\u0627\u0632\u06cc Root \u062f\u0631 Ubuntu 20.04"},"content":{"rendered":"<p>\u0633\u0644\u0627\u0645 \u062e\u062f\u0645\u062a \u062a\u0645\u0627\u0645 \u0641\u0627\u06cc\u0631 \u0633\u0631\u0648\u0631\u06cc \u0647\u0627\u06cc \u0639\u0632\u06cc\u0632\u060c \u0627\u0645\u0631\u0648\u0632 \u062f\u0631 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634 \u062e\u062f\u0645\u062a \u0634\u0645\u0627 \u062e\u0648\u0627\u0647\u06cc\u0645 \u0628\u0648\u062f \u062a\u0627 \u06cc\u0627\u062f \u0628\u06af\u06cc\u0631\u06cc\u062f \u062f\u0631 \u0633\u0631\u0648\u0631 \u0645\u062c\u0627\u0632\u06cc ubuntu \u0628\u0647 \u0631\u0627\u062d\u062a\u06cc \u062f\u0633\u062a\u0631\u0633\u06cc \u0644\u0627\u06af\u06cc\u0646 \u0627\u0632 \u0637\u0631\u06cc\u0642 root \u0631\u0627 \u0641\u0639\u0627\u0644\u0633\u0627\u0632\u06cc \u06a9\u0646\u06cc\u062f.\u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06a9\u0647 \u0645\u06cc\u062f\u0648\u0646\u06cc\u062f \u062f\u0631 \u0633\u0631\u0648\u0631 \u0645\u062c\u0627\u0632\u06cc Ubuntu\u060c \u062f\u0633\u062a\u0631\u0633\u06cc Root \u0628\u0647 \u0635\u0648\u0631\u062a \u067e\u06cc\u0634 \u0641\u0631\u0636 \u063a\u06cc\u0631 \u0641\u0639\u0627\u0644 \u0627\u0633\u062a \u0648 \u0627\u06af\u0631 \u0634\u0645\u0627 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u06cc\u06a9\u06cc \u0627\u0632 \u06cc\u0648\u0632\u0631 \u0647\u0627\u06cc \u0627\u0631\u0634\u062f \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u0647 \u062e\u0637 \u0641\u0631\u0645\u0627\u0646 \u0631\u0627 \u062f\u0627\u0631\u06cc\u062f \u0628\u0627\u0647\u0627\u0645\u0648\u0646 \u0647\u0645\u0631\u0627\u0647 \u0628\u0627\u0634\u06cc\u062f.<\/p>\n<h2>\u0622\u0645\u0648\u0632\u0634 \u0641\u0639\u0627\u0644\u0633\u0627\u0632\u06cc Root \u062f\u0631 Ubuntu 20.04<\/h2>\n<p>1. \u0627\u0628\u062a\u062f\u0627 \u0642\u0628\u0644 \u0627\u0632 \u0647\u0631\u06a9\u0627\u0631\u06cc \u0628\u0627 \u0646\u0627\u0645 \u06a9\u0627\u0631\u0628\u0631\u06cc \u0648 \u0631\u0645\u0632 \u0639\u0628\u0648\u0631\u062a\u0648\u0646 \u0648\u0627\u0631\u062f \u0633\u0631\u0648\u0631 \u0645\u062c\u0627\u0632\u06cc \u0627\u0648\u0628\u0648\u0646\u062a\u0648 \u062e\u0648\u062f\u062a\u0648\u0646 \u0628\u0634\u06cc\u062f \u0648 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0628\u0631\u0627\u06cc \u06cc\u0648\u0632\u0631 Root \u0631\u0645\u0632 \u0639\u0628\u0648\u0631\u06cc \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0646\u06cc\u062f.<\/p>\n<p><code style=\"direction: ltr;\">sudo passwd root<\/code><\/p>\n<p>2. \u0628\u0639\u062f \u0627\u0632 \u062a\u0639\u0631\u06cc\u0641 \u0631\u0645\u0632 \u0628\u0631\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631 root \u0634\u0645\u0627 \u0628\u0627\u06cc\u062f \u0627\u0632 \u0637\u0631\u06cc\u0642 \u06a9\u0627\u0646\u0641\u06cc\u06af SSH \u06a9\u0627\u0631\u0628\u0631 \u0631\u0648\u062a \u0631\u0627 \u0645\u062c\u0627\u0632 \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0628\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u0637\u0631\u06cc\u0642 \u062e\u0637 \u0641\u0631\u0645\u0627\u0646 \u0648\u0627\u0631\u062f \u0634\u0648\u062f\u060c \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646\u06a9\u0627\u0631 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0641\u0627\u06cc\u0644 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u062e\u0637 \u0641\u0631\u0645\u0627\u0646 \u0631\u0627 \u062a\u0648\u0633\u0637 \u0648\u06cc\u0631\u0627\u06cc\u0634\u06af\u0631 \u0628\u0627\u0632 \u0645\u06cc \u06a9\u0646\u06cc\u0645.<\/p>\n<p><code style=\"direction: ltr;\">sudo nano \/etc\/ssh\/sshd_config <\/code><\/p>\n<p><a href=\"https:\/\/fireserver.ir\/blog\/wp-content\/uploads\/2021\/07\/Edit-PermitRootLogin-yes-Ubuntu.webp\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/fireserver.ir\/blog\/wp-content\/uploads\/2021\/07\/Edit-PermitRootLogin-yes-Ubuntu.webp\" alt=\"\" width=\"562\" height=\"274\" class=\"aligncenter size-full wp-image-3119\" \/><\/a><\/p>\n<p>3. \u062f\u0631 \u0641\u0627\u06cc\u0644 \u0628\u0627\u0632 \u0634\u062f\u0647 \u0634\u0645\u0627 \u0628\u0627\u06cc\u062f \u06a9\u0644\u0645\u0647 PermitRootLogin \u0631\u0627 \u067e\u06cc\u062f\u0627 \u06a9\u0631\u062f\u0647 \u0648 \u0628\u0647 \u0635\u0648\u0631\u062a \u0632\u06cc\u0631 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f \u062a\u0627 \u0628\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u0637\u0631\u06cc\u0642 ssh \u0628\u0627 \u06a9\u0627\u0631\u0628\u0631 root \u0644\u0627\u06af\u06cc\u0646 \u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u0642\u0628\u0644 \u0627\u0632 \u062a\u063a\u06cc\u06cc\u0631<\/p>\n<p><code style=\"direction: ltr;\"> PermitRootLogin no <\/code><\/p>\n<p>\u0628\u0639\u062f \u0627\u0632 \u062a\u063a\u06cc\u06cc\u0631<\/p>\n<p><code style=\"direction: ltr;\"> PermitRootLogin yes <\/code><\/p>\n<p>\u06a9\u0644\u06cc\u062f \u0647\u0627\u06cc Ctrl + X \u0631\u0627 \u0641\u0634\u0627\u0631 \u062f\u0627\u062f\u0647 \u0648 \u0633\u067e\u0633 \u06a9\u0644\u06cc\u062f Y \u0648 \u062f\u0631 \u0627\u062f\u0627\u0645\u0647 Enter \u0631\u0627 \u0645\u06cc \u0632\u0646\u06cc\u0645 \u062a\u0627 \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a \u0627\u06cc\u062c\u0627\u062f \u0634\u062f\u0647 \u062f\u0631 \u0641\u0627\u06cc\u0644 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a ssh \u0630\u062e\u06cc\u0631\u0647 \u0634\u0648\u062f \u0648 \u062f\u0631 \u0627\u062f\u0627\u0645\u0647 \u0639\u0628\u0627\u0631\u062a \u0632\u06cc\u0631 \u0631\u0627 \u062f\u0631 \u062a\u0631\u0645\u06cc\u0646\u0627\u0644 \u0648\u0627\u0631\u062f \u0645\u06cc \u06a9\u0646\u06cc\u0645 \u062a\u0627 \u0627\u06cc\u0646 \u0633\u0631\u0648\u06cc\u0633 \u0631\u06cc \u0627\u0633\u062a\u0627\u0631\u062a \u0634\u0648\u062f.<\/p>\n<p><code style=\"direction: ltr;\"> service sshd restart <\/code><\/p>\n<p>\u0628\u0627 \u0627\u0646\u062c\u0627\u0645 \u0645\u0631\u0627\u062d\u0644 \u0628\u0627\u0644\u0627\u060c \u06a9\u0627\u0631\u0628\u0631 root \u0645\u06cc \u062a\u0648\u0627\u0646\u062f \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 SSH \u0628\u0647 \u0633\u0631\u0648\u0631 \u0645\u062a\u0635\u0644 \u0634\u0648\u062f.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0633\u0644\u0627\u0645 \u062e\u062f\u0645\u062a \u062a\u0645\u0627\u0645 \u0641\u0627\u06cc\u0631 \u0633\u0631\u0648\u0631\u06cc \u0647\u0627\u06cc \u0639\u0632\u06cc\u0632\u060c \u0627\u0645\u0631\u0648\u0632 \u062f\u0631 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634 \u062e\u062f\u0645\u062a \u0634\u0645\u0627 \u062e\u0648\u0627\u0647\u06cc\u0645 \u0628\u0648\u062f \u062a\u0627 \u06cc\u0627\u062f \u0628\u06af\u06cc\u0631\u06cc\u062f \u062f\u0631 \u0633\u0631\u0648\u0631 \u0645\u062c\u0627\u0632\u06cc ubuntu \u0628\u0647 \u0631\u0627\u062d\u062a\u06cc \u062f\u0633\u062a\u0631\u0633\u06cc \u0644\u0627\u06af\u06cc\u0646 \u0627\u0632 \u0637\u0631\u06cc\u0642 root \u0631\u0627 \u0641\u0639\u0627\u0644\u0633\u0627\u0632\u06cc \u06a9\u0646\u06cc\u062f.\u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06a9\u0647 \u0645\u06cc\u062f\u0648\u0646\u06cc\u062f \u062f\u0631 \u0633\u0631\u0648\u0631 \u0645\u062c\u0627\u0632\u06cc Ubuntu\u060c \u062f\u0633\u062a\u0631\u0633\u06cc Root \u0628\u0647 \u0635\u0648\u0631\u062a \u067e\u06cc\u0634 \u0641\u0631\u0636 \u063a\u06cc\u0631 \u0641\u0639\u0627\u0644 \u0627\u0633\u062a \u0648 \u0627\u06af\u0631 \u0634\u0645\u0627 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u06cc\u06a9\u06cc \u0627\u0632 \u06cc\u0648\u0632\u0631 &hellip;<\/p>\n","protected":false},"author":7,"featured_media":3112,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[143,1],"tags":[],"class_list":["post-3111","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-tutorials"],"_links":{"self":[{"href":"https:\/\/fireserver.ir\/blog\/wp-json\/wp\/v2\/posts\/3111","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fireserver.ir\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fireserver.ir\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fireserver.ir\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/fireserver.ir\/blog\/wp-json\/wp\/v2\/comments?post=3111"}],"version-history":[{"count":7,"href":"https:\/\/fireserver.ir\/blog\/wp-json\/wp\/v2\/posts\/3111\/revisions"}],"predecessor-version":[{"id":3120,"href":"https:\/\/fireserver.ir\/blog\/wp-json\/wp\/v2\/posts\/3111\/revisions\/3120"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fireserver.ir\/blog\/wp-json\/wp\/v2\/media\/3112"}],"wp:attachment":[{"href":"https:\/\/fireserver.ir\/blog\/wp-json\/wp\/v2\/media?parent=3111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fireserver.ir\/blog\/wp-json\/wp\/v2\/categories?post=3111"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fireserver.ir\/blog\/wp-json\/wp\/v2\/tags?post=3111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}