{"id":245,"date":"2022-09-04T06:08:58","date_gmt":"2023-11-06T08:02:44","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/python-webssh%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%83%96%e3%83%a9%e3%82%a6%e3%82%b6%e3%81%8b%e3%82%89%e3%82%bf%e3%83%bc%e3%83%9f%e3%83%8a%e3%83%ab%e3%81%ab%e6%8e%a5%e7%b6%9a%e3%81%99\/"},"modified":"2025-07-31T21:57:37","modified_gmt":"2025-07-31T12:57:37","slug":"python-webssh%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%83%96%e3%83%a9%e3%82%a6%e3%82%b6%e3%81%8b%e3%82%89%e3%82%bf%e3%83%bc%e3%83%9f%e3%83%8a%e3%83%ab%e3%81%ab%e6%8e%a5%e7%b6%9a%e3%81%99","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/python-webssh%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%83%96%e3%83%a9%e3%82%a6%e3%82%b6%e3%81%8b%e3%82%89%e3%82%bf%e3%83%bc%e3%83%9f%e3%83%8a%e3%83%ab%e3%81%ab%e6%8e%a5%e7%b6%9a%e3%81%99\/","title":{"rendered":"Python WebSSH\u3092\u4f7f\u7528\u3057\u3066\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u63a5\u7d9a\u306e\u65b9\u6cd5"},"content":{"rendered":"<h2>\u4ee5\u4e0b\u306e\u6587\u7ae0\u3092\u65e5\u672c\u8a9e\u3067\u30d1\u30e9\u30d5\u30ec\u30fc\u30ba\u3057\u3066\u304f\u3060\u3055\u3044\u30021\u3064\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3060\u3051\u3067\u304b\u307e\u3044\u307e\u305b\u3093\u3002<\/h2>\n<p>\u30a4\u30f3\u30c8\u30ed\u30c0\u30af\u30b7\u30e7\u30f3<\/p>\n<p>\u901a\u5e38\u3001SSH\u30b5\u30fc\u30d0\u30fc\u306b\u63a5\u7d9a\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u4e0a\u3067\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30a2\u30d7\u30ea\u3092\u4f7f\u7528\u3059\u308b\u304b\u3001SSH\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u542b\u307e\u308c\u305f\u30bf\u30fc\u30df\u30ca\u30eb\u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u30fc\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002Python\u306eWebSSH\u306e\u3088\u3046\u306a\u4e00\u90e8\u306e\u30c4\u30fc\u30eb\u3067\u306f\u3001SSH\u7d4c\u7531\u3067\u63a5\u7d9a\u3057\u3066\u30a6\u30a7\u30d6\u30d6\u30e9\u30a6\u30b6\u5185\u3067\u76f4\u63a5\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f\u3055\u307e\u3056\u307e\u306a\u72b6\u6cc1\u3067\u5f79\u7acb\u3064\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u7279\u306b\u30e9\u30a4\u30d6\u30d7\u30ec\u30bc\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u3084\u30c7\u30e2\u3092\u884c\u3046\u969b\u306b\u306f\u975e\u5e38\u306b\u4fbf\u5229\u3067\u3059\u3002\u901a\u5e38\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u8996\u899a\u7684\u306b\u308f\u304b\u308a\u3084\u3059\u304f\u5171\u6709\u3059\u308b\u306e\u306f\u96e3\u3057\u3044\u5834\u5408\u306b\u3082\u5f79\u7acb\u3061\u307e\u3059\u3002\u307e\u305f\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u521d\u5fc3\u8005\u306b\u30a2\u30af\u30bb\u30b9\u6a29\u9650\u3092\u4e0e\u3048\u308b\u6559\u80b2\u74b0\u5883\u3067\u3082\u5f79\u306b\u7acb\u3061\u307e\u3059\u3002\u5f7c\u3089\u304c\u81ea\u5206\u306e\u30de\u30b7\u30f3\u306b\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u306a\u3044\u305f\u3081\u3067\u3059\uff08\u7279\u306bWindows\u3067\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\uff09\u3002\u6700\u5f8c\u306b\u3001Python\u306eWebSSH\u306f\u975e\u5e38\u306b\u30dd\u30fc\u30bf\u30d6\u30eb\u3067\u3042\u308a\u3001Python\u4ee5\u5916\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092\u5fc5\u8981\u3068\u3057\u307e\u305b\u3093\u3002\u4ed6\u306e\u30a6\u30a7\u30d6\u30d9\u30fc\u30b9\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u30b9\u30bf\u30c3\u30af\u306f\u306f\u308b\u304b\u306b\u8907\u96d1\u3067\u3001Linux\u306b\u7279\u5316\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001WebSSH\u3092\u8a2d\u5b9a\u3057\u3001\u30d6\u30e9\u30a6\u30b6\u3067SSH\u306b\u63a5\u7d9a\u3057\u307e\u3059\u3002\u3055\u3089\u306b\u3001\u30aa\u30d7\u30b7\u30e7\u30f3\u3067SSL\u8a3c\u660e\u66f8\u3067\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u5f37\u5316\u3057\u3001\u672c\u756a\u74b0\u5883\u3067\u306e\u5c55\u958b\u306bNginx\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u306e\u80cc\u5f8c\u3067\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<h3>\u524d\u63d0\u6761\u4ef6<\/h3>\n<ul class=\"post-ul\">\n<li>A Windows, Mac, or Linux environment with a running SSH service. It can be useful to run WebSSH locally, but if you don\u2019t have an SSH service running on a local machine, you can use a remote Linux server by following our initial server setup guide for Ubuntu 22.04.<\/li>\n<li>The Python programming language installed along with pip, its package manager. You can install Python and pip on Ubuntu by following Step 1 of this tutorial.<\/li>\n<li>Optionally, to enable HTTPS in the browser, you will need SSL certificates and your own domain name. You can obtain them by following How To Use Certbot Standalone Mode to Retrieve Let\u2019s Encrypt SSL Certificates. If you do not have your own domain name, you can use an IP address for the first two steps of this tutorial.<\/li>\n<\/ul>\n<h2>\u30b9\u30c6\u30c3\u30d71\uff1aWebSSH \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>Python\u3068pip\u304c\u3059\u3067\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3001PyPI\uff08Python\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30ea\u30dd\u30b8\u30c8\u30ea\uff09\u304b\u3089Python\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306f\u305a\u3067\u3059\u3002WebSSH\u306f\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089\u76f4\u63a5\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304a\u3088\u3073\u5b9f\u884c\u3059\u308b\u3088\u3046\u306b\u8a2d\u8a08\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001How To Install Python 3 and Set Up a Programming Environment\u3067\u8aac\u660e\u3055\u308c\u3066\u3044\u308b\u4ed6\u306e\u4eee\u60f3\u74b0\u5883\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u306f\u5fc5\u8981\u3042\u308a\u307e\u305b\u3093\u3002\u4eee\u60f3\u74b0\u5883\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e\u30c4\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5834\u5408\u3067\u306f\u306a\u304f\u3001\u81ea\u5206\u81ea\u8eab\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u4f5c\u696d\u3059\u308b\u969b\u306b\u3088\u308a\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p>WebSSH\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306b\u306f\u3001pip install\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> pip3 <span class=\"token function\">install<\/span> webssh<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u2026 Successfully built webssh Installing collected packages: tornado, pycparser, cffi, pynacl, paramiko, webssh Successfully installed cffi-1.15.1 paramiko-2.11.0 pycparser-2.21 pynacl-1.5.0 tornado-6.2 webssh-1.6.0<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>sudo\u3092\u4f7f\u7528\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3001wssh\u30b3\u30de\u30f3\u30c9\u304c\u30b0\u30ed\u30fc\u30d0\u30eb\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3001which wssh\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">which<\/span> wssh<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\/usr\/local\/bin\/wssh<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>WebSSH\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u3067\u306f\u3001\u5b9f\u884c\u3057\u3066\u63a5\u7d9a\u3057\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u6700\u521d\u306b\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u30eb\u30fc\u30eb\u3092\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002WebSSH\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30dd\u30fc\u30c88888\u3067\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3068\u3057\u3066ufw\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u305d\u306e\u30dd\u30fc\u30c8\u3092ufw\u306b\u8a31\u53ef\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> ufw allow <span class=\"token number\">8888<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u5f8c\u3067\u3001\u305d\u306e\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u30eb\u30fc\u30eb\u3092\u5f8c\u3067\u518d\u8a2a\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d72 &#8211; WebSSH\u306e\u5b9f\u884c\u3068\u63a5\u7d9a<\/h2>\n<p>\u30ed\u30fc\u30ab\u30eb\u30de\u30b7\u30f3\u3067WebSSH\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u8ffd\u52a0\u306e\u5f15\u6570\u306a\u3057\u3067wssh\u3092\u5358\u4f53\u3067\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u958b\u59cb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30ea\u30e2\u30fc\u30c8\u30b5\u30fc\u30d0\u30fc\u3067WebSSH\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u901a\u5e38\u306eHTTP\u7d4c\u7531\u3067\u306e\u30ea\u30e2\u30fc\u30c8\u63a5\u7d9a\u3092\u8a31\u53ef\u3059\u308b\u305f\u3081\u306b\u3001&#8211;fbidhttp=False\u30d5\u30e9\u30b0\u3092\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u4fdd\u8b77\u3055\u308c\u3066\u3044\u306a\u3044\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u7d4c\u7531\u3067\u63a5\u7d9a\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u5b89\u5168\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u30c7\u30e2\u7528\u306b\u4fbf\u5229\u3067\u3042\u308a\u3001\u5f8c\u3067\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067WebSSH\u3092\u5b89\u5168\u306b\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">wssh <mark><span class=\"token parameter variable\">&#8211;fbidhttp<\/span><span class=\"token operator\">=<\/span>False<\/mark><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4eca\u3067\u306f\u3001WebSSH\u306b\u63a5\u7d9a\u3057\u3066\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002Web\u30d6\u30e9\u30a6\u30b6\u3067your_domain:8888\u306b\u79fb\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\uff08\u30ed\u30fc\u30ab\u30eb\u3067\u5b9f\u884c\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001your_domain\u306e\u4ee3\u308f\u308a\u306blocalhost\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\uff09\u3002WebSSH\u306e\u30ed\u30b0\u30a4\u30f3\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656477dbdaa94e2bdf7b834c\/21-0.png\" alt=\"WebSSH login page\" \/><\/div>\n<p>\u5b9a\u671f\u7684\u306aSSH\u306e\u8cc7\u683c\u60c5\u5831\u3092\u63d0\u4f9b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3082\u3057Silicon Cloud\u306e\u521d\u671f\u30b5\u30fc\u30d0\u30fc\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u30ac\u30a4\u30c9\u306b\u5f93\u3063\u3066\u3044\u308b\u5834\u5408\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u306f\u306a\u304f\u30ad\u30fc\u30d9\u30fc\u30b9\u306e\u8a8d\u8a3c\u304c\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u306f\u305a\u3067\u3059\u3002\u3064\u307e\u308a\u3001\u63a5\u7d9a\u5148\u306e\u30b5\u30fc\u30d0\u30fc\u306e\u30db\u30b9\u30c8\u540d\u3001\u30b5\u30fc\u30d0\u30fc\u306e\u30e6\u30fc\u30b6\u30fc\u540d\u3001\u305d\u3057\u3066SSH\u30ad\u30fc\u306e\u307f\u3092\u6307\u5b9a\u3059\u308c\u3070\u5927\u4e08\u592b\u3067\u3059\u3002SSH\u30ad\u30fc\u306f\u901a\u5e38\u306f\u30ed\u30fc\u30ab\u30eb\u306e\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306e.ssh\/\u30d5\u30a9\u30eb\u30c0\u306b\u4f4d\u7f6e\u3057\u3066\u3044\u307e\u3059\uff08\u901a\u5e38\u306fid_rsa\u3068\u3044\u3046\u540d\u524d\u3067\u3059\uff09\u3002<\/p>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\u610f\uff1a\u30db\u30b9\u30c8\u540d\u3092\u624b\u52d5\u3067\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\u304b\u3089\u63a8\u6e2c\u3067\u304d\u308b\u3088\u3046\u306b\u3001WebSSH\u306f\u5b9f\u884c\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d0\u30fc\u4ee5\u5916\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u3082\u63a5\u7d9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u63a5\u7d9a\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d0\u30fc\u3068\u540c\u3058\u30b5\u30fc\u30d0\u30fc\u4e0a\u3067\u5b9f\u884c\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/div>\n<\/div>\n<p>\u300c\u63a5\u7d9a\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u306e\u30a6\u30a7\u30eb\u30ab\u30e0\u30d7\u30ed\u30f3\u30d7\u30c8\u304c\u8868\u793a\u3055\u308c\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656477dbdaa94e2bdf7b834c\/25-0.png\" alt=\"WebSSH command line\" \/><\/div>\n<p>\u3053\u306e\u6642\u70b9\u3067\u306f\u3001SSH\u63a5\u7d9a\u3057\u305f\u304b\u306e\u3088\u3046\u306b\u3001\u901a\u5e38\u901a\u308a\u306b\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001\u8907\u6570\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u540c\u3058WebSSH\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u540c\u6642\u306b\u63a5\u7d9a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002WebSSH\u3092\u30d3\u30c7\u30aa\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u3084\u30ad\u30e3\u30d7\u30c1\u30e3\u306e\u305f\u3081\u306b\u30ed\u30fc\u30ab\u30eb\u30de\u30b7\u30f3\u3067\u5b9f\u884c\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u3053\u308c\u3067\u5341\u5206\u3067\u3059\u3002\u7d42\u4e86\u6642\u306b\u306f\u3001WebSSH\u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\u3057\u305f\u30bf\u30fc\u30df\u30ca\u30eb\uff08WebSSH\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u306f\u3042\u308a\u307e\u305b\u3093\uff09\u3067Ctrl+C\u3092\u5165\u529b\u3057\u3066\u505c\u6b62\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30ea\u30e2\u30fc\u30c8\u30b5\u30fc\u30d0\u30fc\u4e0a\u3067\u5b9f\u884c\u3057\u3066\u3044\u308b\u5834\u5408\u3001WebSSH\u3092\u5b89\u5168\u3067\u306a\u3044HTTP\u63a5\u7d9a\u306e\u80cc\u5f8c\u3067\u672c\u756a\u74b0\u5883\u3067\u4f7f\u7528\u3057\u305f\u304f\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u3002SSH\u30b5\u30fc\u30d3\u30b9\u306e\u8a8d\u8a3c\u30e1\u30ab\u30cb\u30ba\u30e0\u306b\u3088\u308a\u4fdd\u8b77\u3055\u308c\u307e\u3059\u304c\u3001HTTP\u7d4c\u7531\u306eSSH\u63a5\u7d9a\u306f\u91cd\u5927\u306a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ea\u30b9\u30af\u3092\u3082\u305f\u3089\u3057\u3001\u4ed6\u306e\u4eba\u304cSSH\u306e\u8cc7\u683c\u60c5\u5831\u3092\u76d7\u3080\u53ef\u80fd\u6027\u304c\u9ad8\u304f\u306a\u308a\u307e\u3059\u3002\u6b21\u306e\u624b\u9806\u3067\u306f\u3001WebSSH\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u901a\u5e38\u306eSSH\u63a5\u7d9a\u3068\u540c\u3058\u304f\u3089\u3044\u5b89\u5168\u306b\u3059\u308b\u305f\u3081\u306b\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u78ba\u4fdd\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d73-\uff08\u4efb\u610f\uff09SSL\u8a3c\u660e\u66f8\u3067WebSSH\u3092\u30bb\u30ad\u30e5\u30a2\u306b\u3059\u308b<\/h2>\n<p>\u3053\u306e\u30b9\u30c6\u30c3\u30d7\u3092\u5b8c\u4e86\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u3059\u3067\u306b\u81ea\u5206\u306e\u30c9\u30e1\u30a4\u30f3\u540d\u3068SSL\u8a3c\u660e\u66f8\u3092\u53d6\u5f97\u3057\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u308c\u3092\u884c\u3046\u65b9\u6cd5\u306e\u4e00\u3064\u306f\u3001\u30b9\u30bf\u30f3\u30c9\u30a2\u30ed\u30f3\u30e2\u30fc\u30c9\u3067LetsEncrypt\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001LetsEncrypt\u304c\u8a3c\u660e\u66f8\u3092\u53d6\u5f97\u3059\u308b\u3068\u3001\u305d\u308c\u3089\u306f\u81ea\u52d5\u7684\u306b\/etc\/letsencrypt\/live\/your_domain\u306b\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">ls<\/span> \/etc\/letsencrypt\/live\/<mark>your_domain<\/mark><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>README cert.pem chain.pem fullchain.pem privkey.pem<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>WebSSH\u3092HTTPS\u3067\u52d5\u4f5c\u3055\u305b\u308b\u305f\u3081\u306b\u306f\u3001cert\u306e\u30d1\u30b9\u3068key\u306e\u30d1\u30b9\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3089\u306ffullchain.pem\u3068privkey.pem\u3067\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001WebSSH\u306f\u30dd\u30fc\u30c84433\u3067HTTPS\u30a2\u30af\u30bb\u30b9\u3092\u63d0\u4f9b\u3057\u307e\u3059\u306e\u3067\u3001\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3067\u305d\u306e\u30dd\u30fc\u30c8\u3092\u958b\u3051\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> ufw allow <span class=\"token number\">4433<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6b21\u306b\u3001\u8a31\u53ef\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u3067\u306f\u3001\u8a3c\u660e\u66f8\u3068\u30ad\u30fc\u306e\u30d1\u30b9\u3092\u6307\u5b9a\u3057\u3066WebSSH\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> wssh <span class=\"token parameter variable\">&#8211;certfile<\/span><span class=\"token operator\">=<\/span><span class=\"token string\">&#8216;\/etc\/letsencrypt\/live\/<mark>your_domain<\/mark>\/fullchain.pem&#8217;<\/span> <span class=\"token parameter variable\">&#8211;keyfile<\/span><span class=\"token operator\">=<\/span><span class=\"token string\">&#8216;\/etc\/letsencrypt\/live\/<mark>your_domain<\/mark>\/privkey.pem&#8217;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30a6\u30a7\u30d6\u30d6\u30e9\u30a6\u30b6\u3067https:\/\/your_domain:4433\u306b\u79fb\u52d5\u3057\u3001\u524d\u306e\u624b\u9806\u3068\u540c\u3058\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u304c\u8868\u793a\u3055\u308c\u308b\u306f\u305a\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u308aHTTPS\u304c\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u3067\u5b89\u5168\u306a\u30d7\u30ed\u30c0\u30af\u30b7\u30e7\u30f3\u8a2d\u5b9a\u306b\u5341\u5206\u3067\u3059\u3002\u305f\u3060\u3057\u3001\u307e\u3060wssh\u30a2\u30d7\u30ea\u3092\u76f4\u63a5\u30bf\u30fc\u30df\u30ca\u30eb\u304b\u3089\u5b9f\u884c\u3057\u3066\u304a\u308a\u3001\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u306f\u7570\u5e38\u306a\u30dd\u30fc\u30c8\u3067\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u6700\u5f8c\u306e2\u3064\u306e\u624b\u9806\u3067\u3001\u3053\u308c\u3089\u306e\u5236\u9650\u306e\u4e21\u65b9\u3092\u89e3\u9664\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d74 \u2013\uff08\u30aa\u30d7\u30b7\u30e7\u30f3\uff09Nginx\u306e\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u306bWebSSH\u3092\u5b9f\u884c\u3059\u308b<\/h2>\n<p>\u4ed6\u306e\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u524d\u306bNginx\u306a\u3069\u306e\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u3092\u914d\u7f6e\u3059\u308b\u3068\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u5411\u4e0a\u3057\u3001\u30b5\u30a4\u30c8\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u78ba\u4fdd\u304c\u7c21\u5358\u306b\u306a\u308a\u307e\u3059\u3002Nginx\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u8a2d\u5b9a\u3057\u3066\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u3068\u3057\u3066\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u304b\u3089WebSSH\u3078\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3084\u305d\u306e\u9006\u306e\u51e6\u7406\u3092Nginx\u304c\u7ba1\u7406\u3057\u307e\u3059\u3002<\/p>\n<p>\u30d1\u30c3\u30b1\u30fc\u30b8\u30ea\u30b9\u30c8\u3092\u66f4\u65b0\u3057\u305f\u5f8c\u3001apt\u3092\u4f7f\u7528\u3057\u3066Nginx\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> update nginx<\/li>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> nginx<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3082\u3057UFW\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306eHTTP\/HTTPS\u30dd\u30fc\u30c8\u3067\u3042\u308b80\u756a\u3068443\u756a\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u53ef\u80fd\u306b\u3059\u308b\u305f\u3081\u306b\u3001\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u8a2d\u5b9a\u306b\u3044\u304f\u3064\u304b\u5909\u66f4\u3092\u52a0\u3048\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002UFW\u306b\u306f\u3001\u3053\u308c\u3089\u306e\u30dd\u30fc\u30c8\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u63d0\u4f9b\u3059\u308b\u300cNginx Full\u300d\u3068\u3044\u3046\u6a19\u6e96\u306e\u8a2d\u5b9a\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> ufw allow \u201cNginx Full\u201d<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>Nginx\u3067\u306f\u3001sites-available\/\u3068\u3044\u3046\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u500b\u5225\u306e\u30d5\u30a1\u30a4\u30eb\u3054\u3068\u306b\u30b5\u30a4\u30c8\u3054\u3068\u306e\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002nano\u307e\u305f\u306f\u304a\u6c17\u306b\u5165\u308a\u306e\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3092\u4f7f\u7528\u3057\u3066\u3001\/etc\/nginx\/sites-available\/webssh\u306b\u65b0\u3057\u3044Nginx\u306e\u8a2d\u5b9a\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/nginx\/sites-available\/webssh<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u65b0\u3057\u3044\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u4ee5\u4e0b\u3092\u30b3\u30d4\u30fc\u3057\u3066\u3001your_domain\u3092\u81ea\u8eab\u306e\u30c9\u30e1\u30a4\u30f3\u540d\u306b\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\n<p>\u300c\/etc\/nginx\/sites-available\/webssh\u300d\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059:<\/p>\n<p>\u300c\/etc\/nginx\/sites-available\/webssh\u300d<\/p>\n<\/div>\n<pre class=\"post-pre\"><code>server {\r\n    listen 80 default_server;\r\n    listen [::]:80 default_server;\r\n    server_name <mark>your_domain<\/mark> www.<mark>your_domain<\/mark>\r\n    root \/var\/www\/html;\r\n\r\n    access_log \/var\/log\/nginx\/webssh.access.log;\r\n    error_log \/var\/log\/nginx\/webssh.error.log;\r\n\r\n    location \/ {\r\n        proxy_pass http:\/\/127.0.0.1:8888;\r\n        proxy_http_version 1.1;\r\n        proxy_read_timeout 300;\r\n        proxy_set_header Upgrade $http_upgrade;\r\n        proxy_set_header Connection \"upgrade\";\r\n        proxy_set_header Host $http_host;\r\n        proxy_set_header X-Real-IP $remote_addr;\r\n        proxy_set_header X-Real-PORT $remote_port;\r\n    }\r\n\r\n    listen 443 ssl;\r\n    # RSA certificate\r\n    ssl_certificate \/etc\/letsencrypt\/live\/<mark>your_domain<\/mark>\/fullchain.pem;\r\n    ssl_certificate_key \/etc\/letsencrypt\/live\/<mark>your_domain<\/mark>\/privkey.pem;\r\n\r\n    # Redirect non-https traffic to https\r\n    if ($scheme != \"https\") {\r\n        return 301 https:\/\/$host$request_uri;\r\n    }\r\n}\r\n<\/code><\/pre>\n<p>\u3053\u306e\u8a2d\u5b9a\u306f\u30013\u3064\u306e\u4e3b\u8981\u306a\u300c\u30d6\u30ed\u30c3\u30af\u300d\u304b\u3089\u69cb\u6210\u3055\u308c\u3066\u3044\u308b\u3068\u89e3\u91c8\u3067\u304d\u307e\u3059\u3002\u6700\u521d\u306e\u30d6\u30ed\u30c3\u30af\u306f\u3001\/\u30e9\u30a4\u30f3\u306e\u524d\u306b\u914d\u7f6e\u3055\u308c\u3066\u304a\u308a\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306eHTTP\u30dd\u30fc\u30c8\u3067\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3092\u63d0\u4f9b\u3059\u308b\u305f\u3081\u306eNginx\u306e\u96db\u5f62\u8a2d\u5b9a\u3092\u542b\u3093\u3067\u3044\u307e\u3059\u3002\/\u30d6\u30ed\u30c3\u30af\u306b\u306f\u3001\u5185\u90e8\u3067\u30dd\u30fc\u30c88888\u3067\u5b9f\u884c\u3055\u308c\u3066\u3044\u308bWebSSH\u3078\u306e\u63a5\u7d9a\u3092SSL\u3092\u7dad\u6301\u3057\u306a\u304c\u3089\u30d7\u30ed\u30ad\u30b7\u3059\u308b\u8a2d\u5b9a\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u306e\u6700\u5f8c\u306b\u3042\u308b\/\u30d6\u30ed\u30c3\u30af\u306e\u5f8c\u306e\u8a2d\u5b9a\u3067\u306f\u3001LetsEncrypt SSL\u306e\u30ad\u30fc\u30da\u30a2\u3092\u8aad\u307f\u8fbc\u307f\u3001HTTP\u63a5\u7d9a\u3092HTTPS\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3057\u307e\u3059\u3002<\/p>\n<p>\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3066\u9589\u3058\u3066\u304f\u3060\u3055\u3044\u3002\u3082\u3057nano\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001Ctrl+X\u3092\u62bc\u3057\u3001\u30d7\u30ed\u30f3\u30d7\u30c8\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u3001Y\u3092\u62bc\u3057\u3066\u304b\u3089Enter\u30ad\u30fc\u3092\u62bc\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u6b21\u306b\u3001\u3053\u306e\u65b0\u3057\u3044\u8a2d\u5b9a\u3092\u6709\u52b9\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002Nginx\u306e\u6163\u7fd2\u3067\u306f\u3001sites-available\/\u306b\u3042\u308b\u30d5\u30a1\u30a4\u30eb\u304b\u3089sites-enabled\/\u3068\u3044\u3046\u5225\u306e\u30d5\u30a9\u30eb\u30c0\u3078\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\uff08\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u306e\u3088\u3046\u306a\u3082\u306e\uff09\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u6709\u52b9\u5316\u307e\u305f\u306f\u7121\u52b9\u5316\u3059\u308b\u969b\u306b\u3053\u308c\u3092\u884c\u3063\u3066\u304f\u3060\u3055\u3044\u3002\u660e\u78ba\u3055\u306e\u305f\u3081\u306b\u3001\u5b8c\u5168\u306a\u30d1\u30b9\u3092\u4f7f\u7528\u3057\u3066\u305d\u306e\u30ea\u30f3\u30af\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">ln<\/span> <span class=\"token parameter variable\">-s<\/span> \/etc\/nginx\/sites-available\/webssh \/etc\/nginx\/sites-enabled\/webssh<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001Nginx\u306f\/etc\/nginx\/sites-available\/default\u3068\u3044\u3046\u5225\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u30da\u30fc\u30b8\u3068\u3057\u3066\u63d0\u4f9b\u3059\u308b\u305f\u3081\u306b\/etc\/nginx\/sites-enabled\/default\u306b\u30ea\u30f3\u30af\u3057\u3066\u3044\u307e\u3059\u3002\u65b0\u3057\u3044WebSSH\u306e\u8a2d\u5b9a\u3068\u7af6\u5408\u3059\u308b\u305f\u3081\u3001\/sites-enabled\u304b\u3089\u305d\u306e\u30eb\u30fc\u30eb\u3092\u524a\u9664\u3057\u3066\u7121\u52b9\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">rm<\/span> \/etc\/nginx\/sites-enabled\/default<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\uff1a\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306eNginx\u306e\u8a2d\u5b9a\u306f\u3001\u5358\u4e00\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u3042\u308bWebSSH\u3092\u63d0\u4f9b\u3059\u308b\u305f\u3081\u306b\u8a2d\u8a08\u3055\u308c\u3066\u3044\u307e\u3059\u3002Nginx\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u5f93\u3063\u3066\u3001\u540c\u3058\u30b5\u30fc\u30d0\u30fc\u3067\u8907\u6570\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u63d0\u4f9b\u3059\u308b\u305f\u3081\u306b\u3053\u306eNginx\u306e\u8a2d\u5b9a\u3092\u62e1\u5f35\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/div>\n<\/div>\n<p>\u6b21\u306b\u3001Nginx\u3092\u518d\u8d77\u52d5\u3059\u308b\u524d\u306b\u3001\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306bnginx -t\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> nginx <span class=\"token parameter variable\">-t<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>nginx: the configuration file \/etc\/nginx\/nginx.conf syntax is ok nginx: configuration file \/etc\/nginx\/nginx.conf test is successful<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u65b0\u305f\u306a\u8a2d\u5b9a\u304c\u53cd\u6620\u3055\u308c\u308b\u3088\u3046\u3001Nginx\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl restart nginx<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6700\u5f8c\u306b\u3001\u6a19\u6e96\u306eHTTP\/HTTPS\u30dd\u30fc\u30c8\u3092\u4ecb\u3057\u3066Nginx\u304c\u3059\u3079\u3066\u306e\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u51e6\u7406\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u3001\u4ee5\u524d\u306b\u4f5c\u6210\u3057\u305fWebSSH\u306b\u76f4\u63a5\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306e\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u30eb\u30fc\u30eb\u3092\u524a\u9664\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> ufw delete allow <span class=\"token number\">8888<\/span><\/li>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> ufw delete allow <span class=\"token number\">4433<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067WebSSH\u3092\u518d\u8d77\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">wssh<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4eca\u56de\u306f\u3001Nginx\u304c\u305d\u308c\u3092\u51e6\u7406\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u8a3c\u660e\u66f8\u3068\u9375\u306e\u30d1\u30b9\u3092\u63d0\u4f9b\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u305d\u306e\u5f8c\u3001\u30a6\u30a7\u30d6\u30d6\u30e9\u30a6\u30b6\u3067\u300cyour_domain\u300d\u306b\u79fb\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>WebSSH\u304cNginx\u3092\u4ecb\u3057\u3066HTTPS\u3067\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u306b\u6c17\u3065\u3044\u3066\u304f\u3060\u3055\u3044\u3002\u30dd\u30fc\u30c8\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3053\u306e\u6bb5\u968e\u3067\u306f\u3001wssh\u81ea\u4f53\u306e\u8d77\u52d5\u3092\u9664\u304f\u3059\u3079\u3066\u306e\u81ea\u52d5\u5316\u304c\u5b8c\u4e86\u3057\u3066\u3044\u307e\u3059\u3002\u6700\u7d42\u30b9\u30c6\u30c3\u30d7\u3067\u305d\u308c\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d75\uff1a\uff08\u4efb\u610f\uff09WebSSH\u306e\u305f\u3081\u306eSystemd\u30b5\u30fc\u30d3\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/h2>\n<p>\u6700\u521d\u306f\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u3067\u81ea\u52d5\u7684\u306b\u5b9f\u884c\u3055\u308c\u306a\u3044\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u3053\u3068\u306f\u76f4\u611f\u7684\u3067\u306f\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u6bce\u56de\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089\u76f4\u63a5\u8d77\u52d5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u554f\u984c\u306b\u5bfe\u3059\u308b\u89e3\u6c7a\u7b56\u306f\u3001\u72ec\u81ea\u306e\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u30b5\u30fc\u30d3\u30b9\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u3092\u884c\u3046\u305f\u3081\u306b\u3001\u30b5\u30fc\u30d0\u30fc\u306e init \u30b7\u30b9\u30c6\u30e0\u3067\u4f7f\u7528\u3067\u304d\u308b\u30e6\u30cb\u30c3\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u307b\u3068\u3093\u3069\u306e\u73fe\u4ee3\u306e Linux \u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001init \u30b7\u30b9\u30c6\u30e0\u306f Systemd \u3068\u547c\u3070\u308c\u3001systemctl \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u305d\u308c\u3068\u3084\u308a\u53d6\u308a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3082\u3057WebSSH\u304c\u307e\u3060\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u505c\u6b62\u3059\u308b\u305f\u3081\u306bCtrl+C\u3092\u62bc\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u6b21\u306b\u3001nano\u307e\u305f\u306f\u304a\u6c17\u306b\u5165\u308a\u306e\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3092\u4f7f\u7528\u3057\u3066\u3001\/etc\/systemd\/system\/webssh.service\u3068\u3044\u3046\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/systemd\/system\/webssh.service<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30e6\u30cb\u30c3\u30c8\u30d5\u30a1\u30a4\u30eb\u306b\u306f[\u30e6\u30cb\u30c3\u30c8]\u30bb\u30af\u30b7\u30e7\u30f3\u3001[\u30b5\u30fc\u30d3\u30b9]\u30bb\u30af\u30b7\u30e7\u30f3\u3001[\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb]\u30bb\u30af\u30b7\u30e7\u30f3\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<div>\/etc\/systemd\/system\/webssh.service \u3092\u65e5\u672c\u8a9e\u3067\u66f8\u304d\u63db\u3048\u308b\u3068\u3001\u300c\/etc\/systemd\/system\/webssh.service\u300d\u3068\u306a\u308a\u307e\u3059\u3002<\/div>\n<pre class=\"post-pre\"><code>[Unit]\r\nDescription=WebSSH terminal interface\r\nAfter=network.target\r\n\r\n[Service]\r\nUser=www-data\r\nGroup=www-data\r\nExecStart=wssh\r\n\r\n[Install]\r\nWantedBy=multi-user.target\r\n<\/code><\/pre>\n<p>\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5206\u5272\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 (Kono fairu wa ika no y\u014d ni bunkatsu suru koto ga dekimasu.)<\/p>\n<ul class=\"post-ul\">\n<li>The [Unit] section contains a plaintext description of your new service, as well as an After hook that specifies when it should be run at system startup, in this case after your server\u2019s networking interfaces have come up.<\/li>\n<li>The [Service] section specifies which command should actually be run, as well as which user should be running it. In this case, www-data is the default Nginx user on a Ubuntu server, and wssh is the command itself.<\/li>\n<li>The [Install] section contains only the WantedBy=multi-user.target line, which works together with the After line in the [Unit] section to ensure that the service is started when the server is ready to accept user logins.<\/li>\n<\/ul>\n<p>\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3066\u9589\u3058\u3066\u304f\u3060\u3055\u3044\u3002\u65b0\u3057\u3044WebSSH\u30b5\u30fc\u30d3\u30b9\u3092\u958b\u59cb\u3057\u3001\u8d77\u52d5\u6642\u306b\u81ea\u52d5\u7684\u306b\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u6709\u52b9\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl start webssh<\/li>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl <span class=\"token builtin class-name\">enable<\/span> webssh<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>systemctl status webssh \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u6b63\u5e38\u306b\u8d77\u52d5\u3057\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u6700\u521d\u306b\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u305f\u3068\u304d\u3068\u540c\u69d8\u306e\u51fa\u529b\u304c\u8868\u793a\u3055\u308c\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl status webssh<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u25cf webssh.service &#8211; WebSSH terminal interface Loaded: loaded (\/etc\/systemd\/system\/webssh.service; enabled; vendor preset: enabled) Active: active (running) since Thu 2022-08-11 22:08:25 UTC; 2s ago Main PID: 15678 (wssh) Tasks: 1 (limit: 1119) Memory: 20.2M CPU: 300ms CGroup: \/system.slice\/webssh.service \u2514\u250015678 \/usr\/bin\/python3 \/usr\/local\/bin\/wssh Aug 11 22:08:25 webssh22 systemd[1]: Started WebSSH terminal interface. Aug 11 22:08:26 webssh22 wssh[15678]: [I 220811 22:08:26 settings:125] WarningPolicy Aug 11 22:08:26 webssh22 wssh[15678]: [I 220811 22:08:26 main:38] Listening on :8888 (http)<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u304a\u4f7f\u3044\u306e\u30d6\u30e9\u30a6\u30b6\u3067\u3001https:\/\/your_domain \u3092\u518d\u8aad\u307f\u8fbc\u307f\u3059\u308b\u3068\u3001\u518d\u3073WebSSH\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u4ee5\u964d\u3001WebSSH\u3068Nginx\u306f\u81ea\u52d5\u7684\u306b\u30b5\u30fc\u30d0\u30fc\u3068\u3068\u3082\u306b\u518d\u8d77\u52d5\u3057\u3001\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u3067\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2>\u7d50\u8ad6<\/h2>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Web\u30d6\u30e9\u30a6\u30b6\u3067\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u63d0\u4f9b\u3059\u308b\u305f\u3081\u306e\u30dd\u30fc\u30bf\u30d6\u30eb\u306a\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3067\u3042\u308bWebSSH\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002\u305d\u306e\u5f8c\u3001SSL\u3092\u8ffd\u52a0\u3057\u3066\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u3092\u6539\u5584\u3057\u3001\u3055\u3089\u306bNginx\u306e\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u3092\u8ffd\u52a0\u3057\u3001\u6700\u5f8c\u306bWebSSH\u306e\u30b7\u30b9\u30c6\u30e0\u30b5\u30fc\u30d3\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u306f\u3001\u5c0f\u898f\u6a21\u306a\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306eWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4e00\u822c\u7684\u306b\u5c55\u958b\u3059\u308b\u305f\u3081\u306e\u826f\u3044\u30e2\u30c7\u30eb\u3067\u3042\u308a\u3001\u7279\u306bSSH\u3067\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306b\u9375\u30da\u30a2\u304c\u5fc5\u8981\u306a\u305f\u3081\u3001\u975e\u5e38\u306b\u91cd\u8981\u3067\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001SSH\u306e\u4ed6\u306e\u63a5\u7d9a\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066\u5b66\u3076\u3053\u3068\u3082\u304a\u8003\u3048\u306b\u306a\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u4e0b\u306e\u6587\u7ae0\u3092\u65e5\u672c\u8a9e\u3067\u30d1\u30e9\u30d5\u30ec\u30fc\u30ba\u3057\u3066\u304f\u3060\u3055\u3044\u30021\u3064\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3060\u3051\u3067\u304b\u307e\u3044\u307e\u305b\u3093\u3002 \u30a4\u30f3\u30c8\u30ed\u30c0\u30af\u30b7\u30e7\u30f3 \u901a\u5e38\u3001SSH\u30b5\u30fc\u30d0\u30fc\u306b\u63a5\u7d9a\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u4e0a\u3067\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30a2\u30d7\u30ea\u3092\u4f7f\u7528\u3059\u308b\u304b\u3001SSH\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u542b\u307e\u308c\u305f [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[31,26],"class_list":["post-245","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-python","tag-26"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Python WebSSH\u3092\u4f7f\u7528\u3057\u3066\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u63a5\u7d9a\u306e\u65b9\u6cd5 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"Python WebSSH\u3092\u4f7f\u7528\u3057\u3066\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u63a5\u7d9a\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/python-webssh\u3092\u4f7f\u7528\u3057\u3066\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u63a5\u7d9a\u3059\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python WebSSH\u3092\u4f7f\u7528\u3057\u3066\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u63a5\u7d9a\u306e\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"Python WebSSH\u3092\u4f7f\u7528\u3057\u3066\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u63a5\u7d9a\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/python-webssh\u3092\u4f7f\u7528\u3057\u3066\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u63a5\u7d9a\u3059\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-06T08:02:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T12:57:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656477dbdaa94e2bdf7b834c\/21-0.png\" \/>\n<meta name=\"author\" content=\"\u590f\u6a39, \u98a8\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u590f\u6a39, \u98a8\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"26\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/python-webssh%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%83%96%e3%83%a9%e3%82%a6%e3%82%b6%e3%81%8b%e3%82%89%e3%82%bf%e3%83%bc%e3%83%9f%e3%83%8a%e3%83%ab%e3%81%ab%e6%8e%a5%e7%b6%9a%e3%81%99\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/python-webssh%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%83%96%e3%83%a9%e3%82%a6%e3%82%b6%e3%81%8b%e3%82%89%e3%82%bf%e3%83%bc%e3%83%9f%e3%83%8a%e3%83%ab%e3%81%ab%e6%8e%a5%e7%b6%9a%e3%81%99\/\",\"name\":\"Python WebSSH\u3092\u4f7f\u7528\u3057\u3066\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u63a5\u7d9a\u306e\u65b9\u6cd5 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2023-11-06T08:02:44+00:00\",\"dateModified\":\"2025-07-31T12:57:37+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4e591db2661c4cc425470b461259391d\"},\"description\":\"Python WebSSH\u3092\u4f7f\u7528\u3057\u3066\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u63a5\u7d9a\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/python-webssh%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%83%96%e3%83%a9%e3%82%a6%e3%82%b6%e3%81%8b%e3%82%89%e3%82%bf%e3%83%bc%e3%83%9f%e3%83%8a%e3%83%ab%e3%81%ab%e6%8e%a5%e7%b6%9a%e3%81%99\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/python-webssh%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%83%96%e3%83%a9%e3%82%a6%e3%82%b6%e3%81%8b%e3%82%89%e3%82%bf%e3%83%bc%e3%83%9f%e3%83%8a%e3%83%ab%e3%81%ab%e6%8e%a5%e7%b6%9a%e3%81%99\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/python-webssh%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%83%96%e3%83%a9%e3%82%a6%e3%82%b6%e3%81%8b%e3%82%89%e3%82%bf%e3%83%bc%e3%83%9f%e3%83%8a%e3%83%ab%e3%81%ab%e6%8e%a5%e7%b6%9a%e3%81%99\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python WebSSH\u3092\u4f7f\u7528\u3057\u3066\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u63a5\u7d9a\u306e\u65b9\u6cd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4e591db2661c4cc425470b461259391d\",\"name\":\"\u590f\u6a39, \u98a8\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/65e0ff40534461b1fa000382dc194e1716f793ab0bcb218ac3c40895551a08c5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/65e0ff40534461b1fa000382dc194e1716f793ab0bcb218ac3c40895551a08c5?s=96&d=mm&r=g\",\"caption\":\"\u590f\u6a39, \u98a8\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/natsukikaze\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/python-webssh%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%83%96%e3%83%a9%e3%82%a6%e3%82%b6%e3%81%8b%e3%82%89%e3%82%bf%e3%83%bc%e3%83%9f%e3%83%8a%e3%83%ab%e3%81%ab%e6%8e%a5%e7%b6%9a%e3%81%99\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Python WebSSH\u3092\u4f7f\u7528\u3057\u3066\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u63a5\u7d9a\u306e\u65b9\u6cd5 - Blog - Silicon Cloud","description":"Python WebSSH\u3092\u4f7f\u7528\u3057\u3066\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u63a5\u7d9a\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/ja\/blog\/python-webssh\u3092\u4f7f\u7528\u3057\u3066\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u63a5\u7d9a\u3059\/","og_locale":"ja_JP","og_type":"article","og_title":"Python WebSSH\u3092\u4f7f\u7528\u3057\u3066\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u63a5\u7d9a\u306e\u65b9\u6cd5","og_description":"Python WebSSH\u3092\u4f7f\u7528\u3057\u3066\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u63a5\u7d9a\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/python-webssh\u3092\u4f7f\u7528\u3057\u3066\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u63a5\u7d9a\u3059\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-11-06T08:02:44+00:00","article_modified_time":"2025-07-31T12:57:37+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656477dbdaa94e2bdf7b834c\/21-0.png"}],"author":"\u590f\u6a39, \u98a8","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u590f\u6a39, \u98a8","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"26\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/python-webssh%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%83%96%e3%83%a9%e3%82%a6%e3%82%b6%e3%81%8b%e3%82%89%e3%82%bf%e3%83%bc%e3%83%9f%e3%83%8a%e3%83%ab%e3%81%ab%e6%8e%a5%e7%b6%9a%e3%81%99\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/python-webssh%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%83%96%e3%83%a9%e3%82%a6%e3%82%b6%e3%81%8b%e3%82%89%e3%82%bf%e3%83%bc%e3%83%9f%e3%83%8a%e3%83%ab%e3%81%ab%e6%8e%a5%e7%b6%9a%e3%81%99\/","name":"Python WebSSH\u3092\u4f7f\u7528\u3057\u3066\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u63a5\u7d9a\u306e\u65b9\u6cd5 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2023-11-06T08:02:44+00:00","dateModified":"2025-07-31T12:57:37+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4e591db2661c4cc425470b461259391d"},"description":"Python WebSSH\u3092\u4f7f\u7528\u3057\u3066\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u63a5\u7d9a\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/python-webssh%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%83%96%e3%83%a9%e3%82%a6%e3%82%b6%e3%81%8b%e3%82%89%e3%82%bf%e3%83%bc%e3%83%9f%e3%83%8a%e3%83%ab%e3%81%ab%e6%8e%a5%e7%b6%9a%e3%81%99\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/python-webssh%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%83%96%e3%83%a9%e3%82%a6%e3%82%b6%e3%81%8b%e3%82%89%e3%82%bf%e3%83%bc%e3%83%9f%e3%83%8a%e3%83%ab%e3%81%ab%e6%8e%a5%e7%b6%9a%e3%81%99\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/python-webssh%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%83%96%e3%83%a9%e3%82%a6%e3%82%b6%e3%81%8b%e3%82%89%e3%82%bf%e3%83%bc%e3%83%9f%e3%83%8a%e3%83%ab%e3%81%ab%e6%8e%a5%e7%b6%9a%e3%81%99\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"Python WebSSH\u3092\u4f7f\u7528\u3057\u3066\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u63a5\u7d9a\u306e\u65b9\u6cd5"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4e591db2661c4cc425470b461259391d","name":"\u590f\u6a39, \u98a8","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/65e0ff40534461b1fa000382dc194e1716f793ab0bcb218ac3c40895551a08c5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/65e0ff40534461b1fa000382dc194e1716f793ab0bcb218ac3c40895551a08c5?s=96&d=mm&r=g","caption":"\u590f\u6a39, \u98a8"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/natsukikaze\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/python-webssh%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%83%96%e3%83%a9%e3%82%a6%e3%82%b6%e3%81%8b%e3%82%89%e3%82%bf%e3%83%bc%e3%83%9f%e3%83%8a%e3%83%ab%e3%81%ab%e6%8e%a5%e7%b6%9a%e3%81%99\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/245","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=245"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/245\/revisions"}],"predecessor-version":[{"id":325765,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/245\/revisions\/325765"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=245"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=245"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}