{"id":870,"date":"2023-05-17T15:00:35","date_gmt":"2023-05-17T06:00:35","guid":{"rendered":"https:\/\/www.miraiserver.ne.jp\/column\/?p=870"},"modified":"2025-08-15T16:49:14","modified_gmt":"2025-08-15T07:49:14","slug":"about_ubuntu-ssh","status":"publish","type":"post","link":"https:\/\/www.miraiserver.ne.jp\/column\/about_ubuntu-ssh\/","title":{"rendered":"Ubuntu\u306bSSH\u30b5\u30fc\u30d0\u30fc\u3092\u69cb\u7bc9\u3057\u3001SSH\u306b\u63a5\u7d9a\u3059\u308b\u624b\u9806\u3010\u521d\u5fc3\u8005\u5411\u3051\u3011"},"content":{"rendered":"<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-4056 size-full\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/Ubuntu\u306bSSH\u30b5\u30fc\u30d0\u30fc\u3092\u69cb\u7bc9\u3057-SSH\u306b\u63a5\u7d9a\u3059\u308b\u624b\u9806-.webp\" alt=\"\" width=\"900\" height=\"500\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/Ubuntu\u306bSSH\u30b5\u30fc\u30d0\u30fc\u3092\u69cb\u7bc9\u3057-SSH\u306b\u63a5\u7d9a\u3059\u308b\u624b\u9806-.webp 900w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/Ubuntu\u306bSSH\u30b5\u30fc\u30d0\u30fc\u3092\u69cb\u7bc9\u3057-SSH\u306b\u63a5\u7d9a\u3059\u308b\u624b\u9806--300x167.webp 300w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/Ubuntu\u306bSSH\u30b5\u30fc\u30d0\u30fc\u3092\u69cb\u7bc9\u3057-SSH\u306b\u63a5\u7d9a\u3059\u308b\u624b\u9806--640x356.webp 640w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/Ubuntu\u306bSSH\u30b5\u30fc\u30d0\u30fc\u3092\u69cb\u7bc9\u3057-SSH\u306b\u63a5\u7d9a\u3059\u308b\u624b\u9806--768x427.webp 768w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/>\u9060\u9694\u5730\u306b\u3042\u308bLinux\u30b5\u30fc\u30d0\u30fc\u3084\u3001\u30af\u30e9\u30a6\u30c9\u4e0a\u306e\u4eee\u60f3\u30b5\u30fc\u30d0\u30fc\u3001VPS\u306b\u63a5\u7d9a\u3059\u308b\u306b\u306f\u3001SSH\u3092\u4f7f\u7528\u3059\u308b\u3068\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\"><strong>SSH<\/strong>\u306f\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u4e0a\u3067\u5b89\u5168\u306b\u30ea\u30e2\u30fc\u30c8\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u5834\u5408\u3084\u3001\u9060\u9694\u5730\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u304c\u5fc5\u8981\u306a\u969b\u306b\u8907\u6570\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u540c\u3058\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u5834\u5408\u306b\u4f7f\u7528\u3057\u307e\u3059<\/span>\u3002<\/p>\n<p><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">\u6697\u53f7\u5316\u901a\u4fe1\u3092\u5229\u7528\u3057\u3066\u30c7\u30fc\u30bf\u306e\u3084\u308a\u53d6\u308a\u3092\u4fdd\u8b77\u3057\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u304c\u91cd\u8996\u3055\u308c\u308b\u5834\u9762\u306b<strong>SSH<\/strong>\u304c\u5e83\u304f\u5229\u7528\u3055\u308c\u3066\u3044\u307e\u3059<\/span>\u3002<\/p>\n<p>\u672c\u8a18\u4e8b\u3067\u306f\u3001<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\"><strong>SSH<\/strong>\u3092\u5229\u7528\u3059\u308b\u306b\u3042\u305f\u308a\u3001<strong>Ubuntu\u306bSSH\u30b5\u30fc\u30d0\u30fc\u3092\u69cb\u7bc9\u3059\u308b\u65b9\u6cd5<\/strong>\u3001<strong>SSH\u306b\u63a5\u7d9a\u3059\u308b\u307e\u3067\u306e\u624b\u9806<\/strong>\u3092\u7d39\u4ecb<\/span>\u3057\u307e\u3059\u3002<\/p>\n<div class=\"cardlink\">\r\n    <a class=\"image\" href=\"https:\/\/www.miraiserver.ne.jp\/column\/about_ubuntu\/\">\r\n     <img src=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2025\/08\/Ubuntu\u3068\u306f\u3002\u7279\u5fb4\u3001\u3067\u304d\u308b\u3053\u3068\u3001\u901a\u5e38\u7248\u3068LTE\u7248\u306e\u9055\u3044\u3092\u89e3\u8aac-1.webp\">\r\n    <\/a>\r\n    <div class=\"content\">\r\n     <div class=\"title_area\">\r\n      <p class=\"date\">2022.10.13<\/p>\r\n      <h4 class=\"title\">\r\n       <a href=\"https:\/\/www.miraiserver.ne.jp\/column\/about_ubuntu\/\">Ubuntu\u3068\u306f\u3002\u7279\u5fb4\u3001\u3067\u304d\u308b\u3053\u3068\u3001\u901a\u5e38\u7248\u3068LTE\u7248\u306e\u9055\u3044\u3092\u89e3\u8aac<\/a>\r\n      <\/h4>\r\n     <\/div>\r\n     <p class=\"desc\"><span>\r\n\r\nUbuntu\u306fLinux\u7cfb\u306eOS\u3067\u3042\u308a\u3001\u591a\u304f\u306eLinux\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u306e\u4e2d\u3067\u3082\u9ad8\u3044\u4eba\u6c17\u3092\u8a87\u308a\u307e\u3059\u3002\r\n\r\n\u975e\u5e38\u306b\u6271\u3044\u3084\u3059\u3044\u305f...<\/span><\/p>\r\n    <\/div>\r\n   <\/div>\n\n<div class=\"cardlink\">\r\n    <a class=\"image\" href=\"https:\/\/www.miraiserver.ne.jp\/column\/about_ssh\/\">\r\n     <img src=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2025\/08\/SSH\u63a5\u7d9a.webp\">\r\n    <\/a>\r\n    <div class=\"content\">\r\n     <div class=\"title_area\">\r\n      <p class=\"date\">2022.09.29<\/p>\r\n      <h4 class=\"title\">\r\n       <a href=\"https:\/\/www.miraiserver.ne.jp\/column\/about_ssh\/\">SSH\u63a5\u7d9a\u3068\u306f\u3002\u30ea\u30e2\u30fc\u30c8\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u3078\u306e\u63a5\u7d9a\u65b9\u6cd5\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01<\/a>\r\n      <\/h4>\r\n     <\/div>\r\n     <p class=\"desc\"><span>\u9060\u9694\u5730\u306b\u3042\u308b\u30b5\u30fc\u30d0\u30fc\u3084\u3001VPS\uff08\u4eee\u60f3\u5c02\u7528\u30b5\u30fc\u30d0\u30fc\uff09\u3078\u63a5\u7d9a\u3057\u3066\u9060\u9694\u64cd\u4f5c\u3092\u884c\u3046\u65b9\u6cd5\u3068\u3057\u3066\u3001SSH\u63a5\u7d9a\u304c\u3042\u308a\u307e\u3059\u3002\r\n\r\n\u30ea\u30e2\u30fc\u30c8\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u3078...<\/span><\/p>\r\n    <\/div>\r\n   <\/div>\n\n<div class=\"well2\" style=\"text-align: center;\">\n<p><strong>Ubuntu<\/strong>\u3092<strong>VPS<\/strong>\u3067\u5229\u7528\u3059\u308b\u306a\u3089<strong style=\"font-size: 16px;\"><span style=\"color: #339966;\"><br \/>\n\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc<br \/>\n<\/span><\/strong><strong><span style=\"color: #ff0000;\">\uff3c2\u9031\u9593\u7121\u6599\u30fb\u5168\u30d7\u30e9\u30f3SSD\u642d\u8f09\uff0f<\/span><br \/>\n<a class=\"q_custom_button q_custom_button3 animation_type1 rounded\" style=\"width: 400px; height: 70px;\" href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=article-frame&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener\">\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u3092\u7121\u6599\u3067\u8a66\u3059<\/a><\/strong><\/p>\n<\/div>\n<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">\u76ee\u6b21<\/p><ul class=\"toc_list\"><li><a href=\"#SSH\"><span class=\"toc_number toc_depth_1\">1<\/span> SSH\u30b5\u30fc\u30d0\u30fc\u306e\u69cb\u7bc9<\/a><ul><li><a href=\"#i\"><span class=\"toc_number toc_depth_2\">1.1<\/span> \u524d\u63d0\u6761\u4ef6<\/a><\/li><li><a href=\"#SSH-2\"><span class=\"toc_number toc_depth_2\">1.2<\/span> SSH\u30b5\u30fc\u30d0\u30fc\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/li><li><a href=\"#SSH-3\"><span class=\"toc_number toc_depth_2\">1.3<\/span> SSH\u30b5\u30fc\u30d0\u30fc\u306e\u8d77\u52d5\u30fb\u505c\u6b62<\/a><\/li><\/ul><\/li><li><a href=\"#SSH-4\"><span class=\"toc_number toc_depth_1\">2<\/span> SSH\u306e\u8a2d\u5b9a<\/a><ul><li><a href=\"#SSH-5\"><span class=\"toc_number toc_depth_2\">2.1<\/span> SSH\u306e\u8a2d\u5b9a\u5909\u66f4<\/a><\/li><li><a href=\"#SSH-6\"><span class=\"toc_number toc_depth_2\">2.2<\/span> SSH\u63a5\u7d9a\u7528\u306e\u9375\u306e\u4f5c\u6210<\/a><\/li><\/ul><\/li><li><a href=\"#i-2\"><span class=\"toc_number toc_depth_1\">3<\/span> \u307e\u3068\u3081<\/a><\/li><li><a href=\"#UbuntuVPS\"><span class=\"toc_number toc_depth_1\">4<\/span> Ubuntu\u3092VPS\u3067\u5229\u7528\u3059\u308b\u306a\u3089\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc<\/a><\/li><\/ul><\/div>\n<h2 class=\"styled_h2\"><span id=\"SSH\">SSH\u30b5\u30fc\u30d0\u30fc\u306e\u69cb\u7bc9<\/span><\/h2>\n<h3 class=\"styled_h3\"><span id=\"i\">\u524d\u63d0\u6761\u4ef6<\/span><\/h3>\n<p>\u4eca\u56de\u306f\u3001\u4eee\u60f3\u30de\u30b7\u30f3\u4e0a\u306bUbuntu\u304a\u3088\u3073SSH\u30b5\u30fc\u30d0\u30fc\u3092\u69cb\u7bc9\u3057\u307e\u3059\u3002<\/p>\n<p>\u4eee\u60f3\u30de\u30b7\u30f3\u306e\u30b9\u30da\u30c3\u30af\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul style=\"list-style-type: disc;\">\n<li><strong>CPU\uff1a2vCPU<\/strong><\/li>\n<li><strong>Memory\uff1a4GB<\/strong><\/li>\n<li><strong>Disk\uff1a50GB<\/strong><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Ubuntu\u3001Nginx\u306f\u4ee5\u4e0b\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul style=\"list-style-type: disc;\">\n<li><strong>Ubuntu\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\uff1aUbuntu 22.04.2 LTS<\/strong><\/li>\n<li><strong>Nginx\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\uff1aOpenSSH_8.9p1<\/strong><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<div class=\"cardlink\">\r\n    <a class=\"image\" href=\"https:\/\/www.miraiserver.ne.jp\/column\/about_ubuntu-ipadress\/\">\r\n     <img src=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2025\/08\/Ubuntu-22.04-LTS\u3067\u306e-IP\u30a2\u30c9\u30ec\u30b9\u8a2d\u5b9a\u65b9\u6cd5-3.webp\">\r\n    <\/a>\r\n    <div class=\"content\">\r\n     <div class=\"title_area\">\r\n      <p class=\"date\">2023.04.13<\/p>\r\n      <h4 class=\"title\">\r\n       <a href=\"https:\/\/www.miraiserver.ne.jp\/column\/about_ubuntu-ipadress\/\">Ubuntu 22.04 LTS\u3067\u306eIP\u30a2\u30c9\u30ec\u30b9\u8a2d\u5b9a\u65b9\u6cd5\u3002\u30b3\u30de\u30f3\u30c9\u3082\u7d39\u4ecb<\/a>\r\n      <\/h4>\r\n     <\/div>\r\n     <p class=\"desc\"><span>\u30d1\u30bd\u30b3\u30f3\u3084\u30b5\u30fc\u30d0\u30fc\u3068\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3067\u901a\u4fe1\u3059\u308b\u306b\u306f\u3001IP\u30a2\u30c9\u30ec\u30b9\u306e\u8a2d\u5b9a\u304c\u5fc5\u8981\u3067\u3059\u3002\r\n\r\nUbuntu\u3067IP\u30a2\u30c9\u30ec\u30b9\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u3068\u3057\u3066\u306f\u3001CU...<\/span><\/p>\r\n    <\/div>\r\n   <\/div>\n\n<div class=\"cardlink\">\r\n    <a class=\"image\" href=\"https:\/\/www.miraiserver.ne.jp\/column\/about_ubuntu-nginx\/\">\r\n     <img src=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/Ubuntu\u3068Nginx\u3067\u306eWeb\u30b5\u30fc\u30d0\u30fc\u69cb\u7bc9\u65b9\u6cd5\u3010\u521d\u5fc3\u8005\u5411\u3051\u3011.webp\">\r\n    <\/a>\r\n    <div class=\"content\">\r\n     <div class=\"title_area\">\r\n      <p class=\"date\">2023.05.11<\/p>\r\n      <h4 class=\"title\">\r\n       <a href=\"https:\/\/www.miraiserver.ne.jp\/column\/about_ubuntu-nginx\/\">Ubuntu\u3068Nginx\u3067\u306eWeb\u30b5\u30fc\u30d0\u30fc\u69cb\u7bc9\u65b9\u6cd5\u3010\u521d\u5fc3\u8005\u5411\u3051\u3011<\/a>\r\n      <\/h4>\r\n     <\/div>\r\n     <p class=\"desc\"><span>Nginx\uff08\u30a8\u30f3\u30b8\u30f3\u30a8\u30c3\u30af\u30b9\uff09\u306f\u3001Apache(\u30a2\u30d1\u30c3\u30c1)\u306b\u6b21\u3050\u4eba\u6c17\u306eWeb\u30b5\u30fc\u30d0\u30fc\u3067\u3059\u3002\r\n\r\nNginx\uff08\u30a8\u30f3\u30b8\u30f3\u30a8\u30c3\u30af\u30b9\uff09\u3001Apach...<\/span><\/p>\r\n    <\/div>\r\n   <\/div>\n\n<p>\u307e\u305f\u3001\u30b3\u30de\u30f3\u30c9\u306e\u6a19\u8a18\u306b\u3064\u3044\u3066\u306f\u3001\u5b9f\u969b\u306b\u5165\u529b\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3092<strong>\u592a\u5b57<\/strong>\u3001\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u5f8c\u306b\u5165\u529b\u3092\u6c42\u3081\u3089\u308c\u308b\u7b87\u6240\u306b\u3064\u3044\u3066\u306f<span style=\"color: #ff0000;\">\u8d64\u5b57<\/span>\u3001\u88dc\u8db3\u306e\u5185\u5bb9\u3092<span style=\"color: #3366ff;\">\u9752\u5b57<\/span>\u3067\u8a18\u8f09\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-117 size-full\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a.png\" alt=\"Unix\u7cfbOS\u5c02\u9580\u306e\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u300c\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u300d\" width=\"728\" height=\"90\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a.png 728w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a-300x37.png 300w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a-640x79.png 640w\" sizes=\"(max-width: 728px) 100vw, 728px\" \/><\/a><\/p>\n<h3 class=\"styled_h3\"><span id=\"SSH-2\">SSH\u30b5\u30fc\u30d0\u30fc\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/span><\/h3>\n<p>\u4eca\u56de\u306fUbuntu\u306b\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u5229\u7528\u3067\u304d\u308b\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f7f\u7528\u3057\u3066SSH\u30b5\u30fc\u30d0\u30fc\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<p>SSH\u30b5\u30fc\u30d0\u30fc\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306b\u306f\u3001\u7ba1\u7406\u8005\u6a29\u9650\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>root\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f7f\u7528\u3059\u308b\u304b\u3001\u901a\u5e38\u30e6\u30fc\u30b6\u30fc\uff08\u4ee5\u4e0b\u306e\u4f8b\u3067\u306f\u3001testuser\uff09\u3092sudo\u30b0\u30eb\u30fc\u30d7\u306b\u8ffd\u52a0\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\"># <strong>usermod -aG sudo testuser<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6b21\u306b\u3001SSH\u30b5\u30fc\u30d0\u30fc\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\uff08openssh-server\uff09\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u4f8b\u3067\u306f\u3001\u5148\u307b\u3069sudo\u30b0\u30eb\u30fc\u30d7\u306b\u8ffd\u52a0\u3057\u305f\u901a\u5e38\u30e6\u30fc\u30b6\u30fc\u3092\u4f7f\u3063\u3066\u3001sudo\u30b3\u30de\u30f3\u30c9\u304b\u3089openssh-server\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\">$ <strong>sudo apt update<\/strong><\/p>\n<p>$ <strong>sudo apt install openssh-server<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3059\u308b\u3068\u3001\u3059\u3067\u306b\u8d77\u52d5\u3057\u305f\u72b6\u614b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u8d77\u52d5\u72b6\u614b\u304a\u3088\u3073openssh-server\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<h4 class=\"styled_h4\">\u8d77\u52d5\u72b6\u614b\u306e\u78ba\u8a8d<\/h4>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\">$ <strong>sudo systemctl status ssh<\/strong><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-890 alignleft\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/\u8d77\u52d5\u72b6\u614b\u78ba\u8a8d.png\" alt=\"\" width=\"600\" height=\"402\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/\u8d77\u52d5\u72b6\u614b\u78ba\u8a8d.png 908w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/\u8d77\u52d5\u72b6\u614b\u78ba\u8a8d-300x201.png 300w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/\u8d77\u52d5\u72b6\u614b\u78ba\u8a8d-537x360.png 537w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/\u8d77\u52d5\u72b6\u614b\u78ba\u8a8d-768x515.png 768w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4 class=\"styled_h4\">openssh-server\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d<\/h4>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\">$ <strong>ssh -v<\/strong><\/p>\n<p>OpenSSH_8.9p1 Ubuntu-3ubuntu0.1, OpenSSL 3.0.2 15 Mar 2022<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>SSH\u30b5\u30fc\u30d0\u30fc\u304c\u8d77\u52d5\u3057\u3066\u3044\u308b\u72b6\u614b\u3067\u3001\u5225\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u63a5\u7d9a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u5225\u7aef\u672b\u304b\u3089Teraterm\u3092\u4f7f\u7528\u3057\u3001SSH\u7d4c\u7531\u3067\u63a5\u7d9a\u3057\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4058\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/\u753b\u50cf2.webp\" alt=\"\" width=\"538\" height=\"279\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/\u753b\u50cf2.webp 538w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/\u753b\u50cf2-300x156.webp 300w\" sizes=\"(max-width: 538px) 100vw, 538px\" \/><\/p>\n<p>\u63a5\u7d9a\u304c\u6210\u529f\u3059\u308b\u3068\u3001\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u805e\u304b\u308c\u307e\u3059\u3002<\/p>\n<p>\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066\u3001\u300cOK\u300d\u3092\u62bc\u4e0b\u3057\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3067\u306f\u300ctestuser\u300d\u3068\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u4ed6\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u5b58\u5728\u3057\u3066\u3044\u308c\u3070\u3001\u305d\u3061\u3089\u3067\u3082\u304b\u307e\u3044\u307e\u305b\u3093\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-thumbnail wp-image-4059\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/\u753b\u50cf3-488x360.webp\" alt=\"\" width=\"488\" height=\"360\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/\u753b\u50cf3-488x360.webp 488w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/\u753b\u50cf3-300x221.webp 300w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/\u753b\u50cf3.webp 538w\" sizes=\"(max-width: 488px) 100vw, 488px\" \/><\/p>\n<p>\u7121\u4e8b\u63a5\u7d9a\u304c\u3067\u304d\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30d7\u30ed\u30f3\u30d7\u30c8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-thumbnail wp-image-4060\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/\u753b\u50cf4-487x360.webp\" alt=\"\" width=\"487\" height=\"360\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/\u753b\u50cf4-487x360.webp 487w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/\u753b\u50cf4-300x222.webp 300w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/\u753b\u50cf4.webp 602w\" sizes=\"(max-width: 487px) 100vw, 487px\" \/><\/p>\n<p><a href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-117 size-full\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a.png\" alt=\"Unix\u7cfbOS\u5c02\u9580\u306e\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u300c\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u300d\" width=\"728\" height=\"90\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a.png 728w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a-300x37.png 300w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a-640x79.png 640w\" sizes=\"(max-width: 728px) 100vw, 728px\" \/><\/a><\/p>\n<h3 class=\"styled_h3\"><span id=\"SSH-3\">SSH\u30b5\u30fc\u30d0\u30fc\u306e\u8d77\u52d5\u30fb\u505c\u6b62<\/span><\/h3>\n<p>SSH\u30b5\u30fc\u30d0\u30fc\u3092\u64cd\u4f5c\u3059\u308b\u4e0a\u3067\u306e\u57fa\u672c\u7684\u306a\u30b3\u30de\u30f3\u30c9\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u76f4\u5f8c\u306f\u3059\u3067\u306bWeb\u30b5\u30fc\u30d0\u30fc\u304c\u8d77\u52d5\u3057\u305f\u72b6\u614b\u3067\u3059\u304c\u3001\u505c\u6b62\u3084\u8d77\u52d5\u3001\u81ea\u52d5\u8d77\u52d5\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u305f\u3044\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n<table id=\"tablepress-61\" class=\"tablepress tablepress-id-61\">\n<thead>\n<tr class=\"row-1 odd\">\n\t<th class=\"column-1\">\u64cd\u4f5c<\/th><th class=\"column-2\">\u30b3\u30de\u30f3\u30c9<\/th>\n<\/tr>\n<\/thead>\n<tbody class=\"row-hover\">\n<tr class=\"row-2 even\">\n\t<td class=\"column-1\">SSH\u30b5\u30fc\u30d0\u30fc\u306e\u505c\u6b62<\/td><td class=\"column-2\">$ sudo systemctl stop ssh<\/td>\n<\/tr>\n<tr class=\"row-3 odd\">\n\t<td class=\"column-1\">SSH\u30b5\u30fc\u30d0\u30fc\u306e\u8d77\u52d5<\/td><td class=\"column-2\">$ sudo systemctl start ssh<\/td>\n<\/tr>\n<tr class=\"row-4 even\">\n\t<td class=\"column-1\">SSH\u30b5\u30fc\u30d0\u30fc\u306e\u518d\u8d77\u52d5<\/td><td class=\"column-2\">$ sudo systemctl restart ssh<\/td>\n<\/tr>\n<tr class=\"row-5 odd\">\n\t<td class=\"column-1\">\u8a2d\u5b9a\u306e\u30ea\u30ed\u30fc\u30c9<\/td><td class=\"column-2\">$ sudo  systemctl reload ssh<\/td>\n<\/tr>\n<tr class=\"row-6 even\">\n\t<td class=\"column-1\">\u81ea\u52d5\u8d77\u52d5\u306e\u6709\u52b9\u5316<\/td><td class=\"column-2\">$ sudo  systemctl enable ssh<\/td>\n<\/tr>\n<tr class=\"row-7 odd\">\n\t<td class=\"column-1\">\u81ea\u52d5\u8d77\u52d5\u306e\u7121\u52b9\u5316<\/td><td class=\"column-2\">$ sudo  systemctl disable ssh<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-61 from cache -->\n<h2 class=\"styled_h2\"><span id=\"SSH-4\">SSH\u306e\u8a2d\u5b9a<\/span><\/h2>\n<p>SSH\u30b5\u30fc\u30d0\u30fc\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u76f4\u5f8c\u306f\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u304c\u5f31\u3044\u72b6\u614b\u3067\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u306f\u3001\u6700\u4f4e\u9650\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u78ba\u4fdd\u3059\u308b\u305f\u3081\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<h3 class=\"styled_h3\"><span id=\"SSH-5\">SSH\u306e\u8a2d\u5b9a\u5909\u66f4<\/span><\/h3>\n<p>SSH\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u300c\/etc\/ssh\/ssh_config\u300d\u3068\u3001\u300c\/etc\/ssh\/sshd_config\u300d\u306e2\u3064\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>ssh_config\u306f\u300c\u4ed6\u306e\u30b5\u30fc\u30d0\u30fc\u306bssh\u3067\u63a5\u7d9a\u3059\u308b\u3068\u304d\u300d\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u3042\u308a\u3001<\/p>\n<p>sshd_config\u306f\u300c\u4ed6\u306e\u30b5\u30fc\u30d0\u30fc\u304b\u3089ssh\u3067\u63a5\u7d9a\u3055\u308c\u308b\u3068\u304d\u300d\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u300c\/etc\/ssh\/sshd_config\u300d\u306e\u5185\u5bb9\u3092\u66f4\u65b0\u3057\u307e\u3059\u3002<\/p>\n<p>\u66f4\u65b0\u3059\u308b\u969b\u306f\u3001\u4e07\u304c\u4e00\u4e0d\u5177\u5408\u304c\u767a\u751f\u3057\u3066\u3082\u8a2d\u5b9a\u3092\u623b\u305b\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u3068\u3063\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h4 class=\"styled_h4\">root\u30e6\u30fc\u30b6\u30fc\u306b\u306a\u308a\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u5f97<\/h4>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\">$ <strong>sudo su<\/strong><\/p>\n<p>#\u00a0<span style=\"color: #3366ff;\"> \u203b\u2190\u30d7\u30ed\u30f3\u30d7\u30c8\u304c\u30b7\u30e3\u30fc\u30d7\u306b\u5909\u308f\u308b<\/span><\/p>\n<p># <strong>cp \/etc\/ssh\/ssd_config \/etc\/ssh\/sshd_config.bak<\/strong><\/p>\n<p><span style=\"color: #3366ff;\"><strong>\u00a0\u00a0 <\/strong>\u203b\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u5f97<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4 class=\"styled_h4\">sshd_config\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6<\/h4>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\"><strong># vi \/etc\/ssh\/sshd_config<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<h4 class=\"styled_h4\">root\u30e6\u30fc\u30b6\u30fc\u3067\u306e\u30ed\u30b0\u30a4\u30f3\u3092\u6291\u6b62\uff08PermitRootLogin\uff09<\/h4>\n<p>PermitRootLogin\u306f\u3001root\u30e6\u30fc\u30b6\u30fc\u306b\u3088\u308b\u63a5\u7d9a\u3092\u8a31\u53ef\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u300cprohibit-password\u300d\u306f\u3001\u516c\u958b\u9375\u8a8d\u8a3c\u306e\u307f\u6709\u52b9\u3067\u3059\u3002<\/p>\n<p>root\u6a29\u9650\u306f\u975e\u5e38\u306b\u5f37\u529b\u306a\u305f\u3081\u3001root\u30e6\u30fc\u30b6\u30fc\u3067\u306e\u30ed\u30b0\u30a4\u30f3\u3092\u6291\u6b62\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u300cno\u300d\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4061\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/\u753b\u50cf5.webp\" alt=\"\" width=\"602\" height=\"40\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/\u753b\u50cf5.webp 602w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/\u753b\u50cf5-300x20.webp 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/p>\n<h4 class=\"styled_h4\">\u30d1\u30b9\u30ef\u30fc\u30c9\u672a\u8a2d\u5b9a\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u63a5\u7d9a\u3092\u6291\u6b62\uff08PermitEmptyPasswords\uff09<\/h4>\n<p>\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u30e6\u30fc\u30b6\u30fc\uff08\u7a7a\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\uff09\u306b\u3088\u308b\u63a5\u7d9a\u3092\u6291\u6b62\u3059\u308b\u5834\u5408\u306b\u306f\u3001\u300cno\u300d\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4062\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/\u753b\u50cf6.webp\" alt=\"\" width=\"602\" height=\"19\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/\u753b\u50cf6.webp 602w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/\u753b\u50cf6-300x9.webp 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/p>\n<h4 class=\"styled_h4\">\u30dd\u30fc\u30c8\u756a\u53f7\u306e\u5909\u66f4\uff08Port\uff09<\/h4>\n<p>SSH\u30dd\u30fc\u30c8\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u300c22\u300d\u3067\u3059\u304c\u3001\u5e83\u304f\u77e5\u308c\u6e21\u3063\u3066\u3044\u308b\u305f\u3081\u3001\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30dd\u30fc\u30c8\u306b\u5909\u66f4\u3059\u308b\u3053\u3068\u3067\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u5f37\u5316\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u306f\u4f8b\u3068\u3057\u3066\u300c10022\u300d\u306b\u5909\u66f4\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4063\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/\u753b\u50cf7.webp\" alt=\"\" width=\"602\" height=\"19\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/\u753b\u50cf7.webp 602w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/\u753b\u50cf7-300x9.webp 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/p>\n<h4 class=\"styled_h4\">\u516c\u958b\u9375\u8a8d\u8a3c\u3092\u6709\u52b9\u5316\uff08PubkeyAuthentication\uff09<\/h4>\n<p>\u516c\u958b\u9375\u8a8d\u8a3c\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306b\u306f\u3001yes\u306b\u3057\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4064\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/\u753b\u50cf8.webp\" alt=\"\" width=\"602\" height=\"17\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/\u753b\u50cf8.webp 602w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/\u753b\u50cf8-300x8.webp 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/p>\n<h4 class=\"styled_h4\">\u79d8\u5bc6\u9375\u30d5\u30a1\u30a4\u30eb\u306e\u8a2d\u5b9a\uff08HostKey\uff09<\/h4>\n<p>\u8a8d\u8a3c\u7528\u306e\u79d8\u5bc6\u9375\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u3001Hostkey\u306b\u30d1\u30b9\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4065\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/\u753b\u50cf9.webp\" alt=\"\" width=\"602\" height=\"65\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/\u753b\u50cf9.webp 602w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/\u753b\u50cf9-300x32.webp 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/p>\n<h4 class=\"styled_h4\">\u30d1\u30b9\u30ef\u30fc\u30c9\u8a8d\u8a3c\u306e\u6291\u6b62\uff08PasswordAuthentication\uff09<\/h4>\n<p>\u30d1\u30b9\u30ef\u30fc\u30c9\u306b\u3088\u308b\u8a8d\u8a3c\u3092\u62d2\u5426\u3057\u307e\u3059\u3002<\/p>\n<p>\u60aa\u610f\u306e\u3042\u308b\u30e6\u30fc\u30b6\u30fc\u304c\u5916\u90e8\u304b\u3089\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u4fb5\u5165\u3092\u8a66\u307f\u308b\u306e\u3092\u9632\u3050\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30d1\u30b9\u30ef\u30fc\u30c9\u8a8d\u8a3c\u3092\u62d2\u5426\u3059\u308b\u5834\u5408\u306f\u3001\u516c\u958b\u9375\u8a8d\u8a3c\u306b\u3088\u308b\u63a5\u7d9a\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u304b\u3089\u3001\u5b9f\u65bd\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4066\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/\u753b\u50cf10.webp\" alt=\"\" width=\"602\" height=\"17\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/\u753b\u50cf10.webp 602w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/05\/\u753b\u50cf10-300x8.webp 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/p>\n<p>\u8a2d\u5b9a\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3001openssh-server\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\"><strong># systemctl restart ssh<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><a href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-117 size-full\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a.png\" alt=\"Unix\u7cfbOS\u5c02\u9580\u306e\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u300c\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u300d\" width=\"728\" height=\"90\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a.png 728w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a-300x37.png 300w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a-640x79.png 640w\" sizes=\"(max-width: 728px) 100vw, 728px\" \/><\/a><\/p>\n<h3 class=\"styled_h3\"><span id=\"SSH-6\">SSH\u63a5\u7d9a\u7528\u306e\u9375\u306e\u4f5c\u6210<\/span><\/h3>\n<p>SSH\u306b\u3088\u308b\u63a5\u7d9a\u306f\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5229\u7528\u3057\u3066\u3082\u53ef\u80fd\u3067\u3059\u304c\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u77e5\u3089\u308c\u3066\u3057\u307e\u3046\u3068\u4ed6\u4eba\u3067\u3082\u63a5\u7d9a\u3067\u304d\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u9ad8\u3081\u308b\u306b\u306f\u3001\u516c\u958b\u9375\u8a8d\u8a3c\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002<\/p>\n<p>\u516c\u958b\u9375\u8a8d\u8a3c\u306b\u3064\u3044\u3066\u306f\u3001\u3053\u3061\u3089\u306e\u30b3\u30e9\u30e0\u3067\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<div class=\"cardlink\">\r\n    <a class=\"image\" href=\"https:\/\/www.miraiserver.ne.jp\/column\/about_openssh_publickeyauthentication\/\">\r\n     <img src=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/09\/OpenSSH\u3068\u306f\u3002\u5b89\u5168\u306a\u901a\u4fe1\u306e\u305f\u3081\u306e\u516c\u958b\u9375\u8a8d\u8a3c\u306e\u8a2d\u5b9a\u65b9\u6cd5\u3092\u89e3\u8aac\u3002.webp\">\r\n    <\/a>\r\n    <div class=\"content\">\r\n     <div class=\"title_area\">\r\n      <p class=\"date\">2023.09.21<\/p>\r\n      <h4 class=\"title\">\r\n       <a href=\"https:\/\/www.miraiserver.ne.jp\/column\/about_openssh_publickeyauthentication\/\">OpenSSH\u3068\u306f\u3002\u5b89\u5168\u306a\u901a\u4fe1\u306e\u305f\u3081\u306e\u516c\u958b\u9375\u8a8d\u8a3c\u306e\u8a2d\u5b9a\u65b9\u6cd5\u3092\u89e3\u8aac\uff01<\/a>\r\n      <\/h4>\r\n     <\/div>\r\n     <p class=\"desc\"><span>OpenSSH\u306f\u3001SSH\u30d7\u30ed\u30c8\u30b3\u30eb\u306b\u3088\u308b\u9060\u9694\u5730\u306e\u30ea\u30e2\u30fc\u30c8\u30db\u30b9\u30c8\u3068\u306e\u6697\u53f7\u5316\u901a\u4fe1\u3092\u5b9f\u73fe\u3059\u308b\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u3059\u3002\r\n\r\n\u4e3b\u306bUnix\u7cfb\u30b5\u30fc\u30d0\u30fc\u3068\u306e\u901a...<\/span><\/p>\r\n    <\/div>\r\n   <\/div>\n\n<p>\u516c\u958b\u9375\u8a8d\u8a3c\u3092\u8a2d\u5b9a\u3057\u3001\u3088\u308a\u5b89\u5168\u306bSSH\u63a5\u7d9a\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2 class=\"styled_h2\"><span id=\"i-2\">\u307e\u3068\u3081<\/span><\/h2>\n<p>\u4eca\u56de\u306fUbuntu\u4e0a\u306bSSH\u30b5\u30fc\u30d0\u30fc\u3092\u69cb\u7bc9\u3057\u3001\u8a2d\u5b9a\u3092\u884c\u3046\u624b\u9806\u3092\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\"><strong>SSH\u306b\u3088\u308b\u63a5\u7d9a<\/strong>\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u3068\u3001\u30af\u30e9\u30a6\u30c9\u4e0a\u306e\u4eee\u60f3\u30b5\u30fc\u30d0\u30fc\u3084VPS\u3001\u9060\u9694\u5730\u306e\u30b5\u30fc\u30d0\u30fc\u304c\u6271\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u3001\u5927\u5909\u4fbf\u5229\u3067\u3059<\/span>\u3002<\/p>\n<p>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u5f37\u5316\u3059\u308b\u305f\u3081\u306b\u3082\u3001\u516c\u958b\u9375\u8a8d\u8a3c\u306e\u8a2d\u5b9a\u3082\u542b\u3081\u3001\u7406\u89e3\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2 class=\"styled_h2\"><span id=\"UbuntuVPS\">Ubuntu\u3092VPS\u3067\u5229\u7528\u3059\u308b\u306a\u3089\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc<\/span><\/h2>\n<p><a href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener\"><strong>\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc<\/strong><\/a>\u306f\u3001\u30a2\u30b7\u30b9\u30c8\u30a2\u30c3\u30d7\u682a\u5f0f\u4f1a\u793e\u304c\u63d0\u4f9b\u3057\u3066\u3044\u308b\u3001<strong>Unix\u7cfb\u30b5\u30fc\u30d0\u30fc<\/strong>\u306b\u7279\u5316\u3057\u305f\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002<\/p>\n<p><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\"><a href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener\"><strong>\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u306eVPS<\/strong><\/a>\u3067\u306f\u3001<strong>\u9ad8\u901f\u51e6\u7406\u304c\u53ef\u80fd\u306aSSD<\/strong>\u3092<strong>\u5168\u30d7\u30e9\u30f3\u306b\u642d\u8f09<\/strong>\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<p><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">OS\u306f\u3001<b>Ubuntu<\/b>\u3084<b>Debian<\/b>\u3001<b>AlmaLinux<\/b>\u306a\u3069\u306e\u8c4a\u5bcc\u306a\u30e9\u30a4\u30f3\u30a2\u30c3\u30d7\u304b\u3089\u9078\u629e\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p><a href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener\"><strong>2\u9031\u9593\u7121\u6599\u30c8\u30e9\u30a4\u30a2\u30eb<\/strong><\/a>\u3092\u5b9f\u65bd\u3057\u3066\u304a\u308a\u307e\u3059\u306e\u3067\u3001\u307e\u305a\u306f\u304a\u6c17\u8efd\u306b\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.miraiserver.ne.jp\/\" target=\"_blank\" rel=\"noopener\">\u25bc\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u306b\u3064\u3044\u3066\u306f\u3053\u3061\u3089\u25bc<\/a><a href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-111 size-full\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_336x280_a.png\" alt=\"Unix\u7cfbOS\u5c02\u9580\u306e\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u300c\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u300d\" width=\"336\" height=\"280\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_336x280_a.png 336w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_336x280_a-300x250.png 300w\" sizes=\"(max-width: 336px) 100vw, 336px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\u9060\u9694\u5730\u306b\u3042\u308bLinux\u30b5\u30fc\u30d0\u30fc\u3084\u3001\u30af\u30e9\u30a6\u30c9\u4e0a\u306e\u4eee\u60f3\u30b5\u30fc\u30d0\u30fc\u3001VPS\u306b\u63a5\u7d9a\u3059\u308b\u306b\u306f\u3001SSH\u3092\u4f7f\u7528\u3059\u308b\u3068\u4fbf\u5229\u3067\u3059\u3002 SSH\u306f\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u4e0a\u3067\u5b89\u5168\u306b\u30ea\u30e2\u30fc\u30c8\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u5834\u5408\u3084\u3001\u9060\u9694\u5730\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u304c\u5fc5\u8981\u306a\u969b\u306b\u8907\u6570\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u540c\u3058\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u5834\u5408\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002 \u6697\u53f7\u5316\u901a\u4fe1\u3092\u5229\u7528\u3057\u3066\u30c7\u30fc\u30bf\u306e\u3084\u308a\u53d6\u308a\u3092\u4fdd\u8b77\u3057\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u304c\u91cd\u8996\u3055\u308c\u308b\u5834\u9762\u306bSSH\u304c\u5e83\u304f\u5229\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002 \u672c\u8a18\u4e8b\u3067\u306f\u3001SSH\u3092\u5229\u7528\u3059\u308b\u306b\u3042\u305f\u308a\u3001Ubuntu\u306bSSH\u30b5\u30fc\u30d0\u30fc\u3092\u69cb\u7bc9\u3059\u308b\u65b9\u6cd5\u3001SSH\u306b\u63a5\u7d9a\u3059\u308b\u307e\u3067\u306e\u624b\u9806\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002 Ubuntu\u3092VPS\u3067\u5229\u7528\u3059\u308b\u306a\u3089 \u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc \uff3c2\u9031\u9593\u7121\u6599\u30fb\u5168\u30d7\u30e9\u30f3SSD\u642d\u8f09\uff0f \u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u3092\u7121\u6599\u3067\u8a66\u3059 \u76ee\u6b211 SSH\u30b5\u30fc\u30d0\u30fc\u306e\u69cb\u7bc91.1 \u524d\u63d0\u6761\u4ef61.2 SSH\u30b5\u30fc\u30d0\u30fc\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb1.3 SSH\u30b5\u30fc\u30d0\u30fc\u306e\u8d77\u52d5\u30fb\u505c\u6b622 SSH\u306e\u8a2d\u5b9a2.1 SSH\u306e\u8a2d\u5b9a\u5909\u66f42.2 SSH\u63a5\u7d9a\u7528\u306e\u9375\u306e\u4f5c\u62103 \u307e\u3068\u30814 Ubuntu\u3092VPS\u3067\u5229\u7528\u3059\u308b\u306a\u3089\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc SSH\u30b5\u30fc\u30d0\u30fc\u306e\u69cb\u7bc9 \u524d\u63d0\u6761\u4ef6 \u4eca\u56de\u306f\u3001\u4eee\u60f3\u30de\u30b7\u30f3\u4e0a\u306bUbuntu\u304a\u3088\u3073SSH\u30b5\u30fc\u30d0\u30fc\u3092\u69cb\u7bc9\u3057\u307e\u3059\u3002 \u4eee\u60f3\u30de\u30b7\u30f3\u306e\u30b9\u30da\u30c3\u30af\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002 CPU\uff1a2vCPU Memory\uff1a4GB Disk\uff1a50GB Ubuntu\u3001Nginx\u306f\u4ee5\u4e0b\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002 Ubuntu\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\uff1aUbuntu 22.04.2 LTS Nginx\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\uff1aOpenSSH_8.9p1 \u307e\u305f\u3001\u30b3\u30de\u30f3\u30c9\u306e\u6a19\u8a18\u306b\u3064\u3044\u3066\u306f\u3001\u5b9f\u969b\u306b\u5165\u529b\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3092\u592a\u5b57\u3001\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u5f8c\u306b\u5165\u529b\u3092\u6c42\u3081\u3089\u308c\u308b\u7b87\u6240\u306b\u3064\u3044\u3066\u306f\u8d64\u5b57\u3001\u88dc\u8db3\u306e\u5185\u5bb9\u3092\u9752\u5b57\u3067\u8a18\u8f09\u3057\u3066\u3044\u307e\u3059\u3002 SSH\u30b5\u30fc\u30d0\u30fc\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u4eca\u56de\u306fUbuntu\u306b\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u5229\u7528\u3067\u304d\u308b\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f7f\u7528\u3057\u3066SSH\u30b5\u30fc\u30d0\u30fc\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002 SSH\u30b5\u30fc\u30d0\u30fc\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306b\u306f\u3001\u7ba1\u7406\u8005\u6a29\u9650\u304c\u5fc5\u8981\u3067\u3059\u3002 root\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f7f\u7528\u3059\u308b\u304b\u3001\u901a\u5e38\u30e6\u30fc\u30b6\u30fc\uff08\u4ee5\u4e0b\u306e\u4f8b\u3067\u306f\u3001testuser\uff09\u3092sudo\u30b0\u30eb\u30fc\u30d7\u306b\u8ffd\u52a0\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002 # usermod -aG sudo testuser \u6b21\u306b\u3001SSH\u30b5\u30fc\u30d0\u30fc\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\uff08openssh-server\uff09\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002 \u4ee5\u4e0b\u306e\u4f8b\u3067\u306f\u3001\u5148\u307b\u3069sudo\u30b0\u30eb\u30fc\u30d7\u306b\u8ffd\u52a0\u3057\u305f\u901a\u5e38\u30e6\u30fc\u30b6\u30fc\u3092\u4f7f\u3063\u3066\u3001sudo\u30b3\u30de\u30f3\u30c9\u304b\u3089openssh-server\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u307e\u3059\u3002 $ sudo apt update $ sudo apt install openssh-server \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3059\u308b\u3068\u3001\u3059\u3067\u306b\u8d77\u52d5\u3057\u305f\u72b6\u614b\u306b\u306a\u308a\u307e\u3059\u3002 \u8d77\u52d5\u72b6\u614b\u304a\u3088\u3073openssh-server\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002 \u8d77\u52d5\u72b6\u614b\u306e\u78ba\u8a8d $ [&hellip;]","protected":false},"author":1,"featured_media":4056,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[188,190],"tags":[181,182,22,53,67],"_links":{"self":[{"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/posts\/870"}],"collection":[{"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/comments?post=870"}],"version-history":[{"count":19,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/posts\/870\/revisions"}],"predecessor-version":[{"id":4070,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/posts\/870\/revisions\/4070"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/media\/4056"}],"wp:attachment":[{"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/media?parent=870"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/categories?post=870"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/tags?post=870"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}