{"id":1982,"date":"2023-11-30T09:25:51","date_gmt":"2023-11-30T00:25:51","guid":{"rendered":"https:\/\/www.kwonline.org\/memo2\/?p=1982"},"modified":"2024-01-11T15:41:06","modified_gmt":"2024-01-11T06:41:06","slug":"enable-sshd-on-ubuntu-22_04","status":"publish","type":"post","link":"https:\/\/www.kwonline.org\/memo2\/2023\/11\/30\/enable-sshd-on-ubuntu-22_04\/","title":{"rendered":"Ubuntu 22.04 \u3067 SSH \u30b5\u30fc\u30d0\u30fc\u3092\u4f7f\u3046"},"content":{"rendered":"<p>&nbsp;<br \/>\n\u4ed6\u306e PC \u304b\u3089 ssh \u3067\u5165\u308a\u305f\u304b\u3063\u305f\u306e\u3067\u30e1\u30e2\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo apt install openssh-server\r\n<\/pre>\n<p>\/etc\/ssh\/sshd_config \u3092\u7de8\u96c6\u3057\u3066\u8af8\u3005\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3055\u308c\u3066\u308b\u3068\u3053\u308d\u3092\u89e3\u9664<br \/>\npassword auth \u3068 pubkey auth \u3092\u3068\u308a\u3042\u3048\u305a\u4e21\u65b9\u4f7f\u3046<br \/>\n\u3042\u3068\u3067 password auth \u306f\u30aa\u30d5\u306b\u3059\u308b\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# sudo vim \/etc\/ssh\/sshd_config\r\nPort 22\r\nListenAddress 0.0.0.0\r\nPubkeyAuthentication yes\r\nPasswordAuthentication yes\r\n<\/pre>\n<p>\u4fdd\u5b58\u3057\u305f\u3089 ssh \u3092\u518d\u8d77\u52d5<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo systemctl restart ssh\r\n<\/pre>\n<p>\u3042\u3068\u306f\u2193\u306e\u6295\u7a3f\u306b\u8a18\u8f09\u306e\u65b9\u6cd5\u3067\u516c\u958b\u9375\u3092\u5225PC\u304b\u3089\u9001\u308c\u3070OK\u3002<\/p>\n<p><a href=\"https:\/\/www.kwonline.org\/memo2\/2023\/09\/29\/ssh-copy-id-to-copy-pubkey\/\" rel=\"noopener\" target=\"_blank\">SSH \u516c\u958b\u9375\u3092\u30ea\u30e2\u30fc\u30c8\u30b5\u30fc\u30d0\u30fc\u306b\u30b3\u30d4\u30fc\u3059\u308b<\/a><\/p>\n<p>\u305d\u306e\u3042\u3068\u3067 PasswordAuthentication no \u306b\u3057\u3066\u3057\u307e\u3046\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; \u4ed6\u306e PC \u304b\u3089 ssh \u3067\u5165\u308a\u305f\u304b\u3063\u305f\u306e\u3067\u30e1\u30e2\u3002 sudo apt install openssh-server \/etc\/ssh\/sshd_config \u3092\u7de8\u96c6\u3057\u3066\u8af8\u3005\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3055\u308c\u3066\u308b\u3068\u3053\u308d\u3092\u89e3\u9664 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-1982","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/posts\/1982","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/comments?post=1982"}],"version-history":[{"count":3,"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/posts\/1982\/revisions"}],"predecessor-version":[{"id":2008,"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/posts\/1982\/revisions\/2008"}],"wp:attachment":[{"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/media?parent=1982"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/categories?post=1982"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/tags?post=1982"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}