<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Ping on Nyanmo main blog</title>
    <link>https://www.nyanmo.info/tags/ping/</link>
    <description>Recent content in Ping on Nyanmo main blog</description>
    <generator>Hugo</generator>
    <language>ja</language>
    <lastBuildDate>Fri, 09 Oct 2026 14:35:14 +0900</lastBuildDate>
    <atom:link href="https://www.nyanmo.info/tags/ping/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>SSH サーバーを Windows 上で構成する (Ping が Windows 機に通らない時の対応についても記述)</title>
      <link>https://www.nyanmo.info/posts/windows/sshdserversetup/</link>
      <pubDate>Fri, 09 Oct 2026 14:35:14 +0900</pubDate>
      <guid>https://www.nyanmo.info/posts/windows/sshdserversetup/</guid>
      <description>&lt;h2 id=&#34;この記事を作った動機&#34;&gt;この記事を作った動機&lt;/h2&gt;
&lt;p&gt;　Linux 環境ばっかりで SSH を使っていて、今まで Windows 環境では SSH クライアントは使ったことがあっても、SSH サーバーは使ったことがないということがあり、慣れていないところがあったので記録をしたい。主に、&lt;a href=&#34;https://woshub.com/connect-to-windows-via-ssh/&#34;&gt;How to Enable and Configure SSH Server on Windows with OpenSSH | Windows OS Hub&lt;/a&gt;参考にした。&lt;/p&gt;
&lt;p&gt;　設定としては、パスワード認証は許可せず、全て公開鍵認証をさせるようにしている。そのため、クライアントにて SSH 接続用の公開鍵を作成し、その公開鍵の部分を SSH サーバーとなる Windows 機にて設定する必要がある。基本的に設定は全体として管理者権限を付与して行っていることを前提とする。&lt;/p&gt;
&lt;h2 id=&#34;手順&#34;&gt;手順&lt;/h2&gt;
&lt;h3 id=&#34;openssh-をインストールする&#34;&gt;OpenSSH をインストールする&lt;/h3&gt;
&lt;p&gt;　&lt;a href=&#34;https://github.com/PowerShell/Win32-OpenSSH/releases/&#34;&gt;Releases · PowerShell/Win32-OpenSSH&lt;/a&gt;によりインストーラをダウンロードし、実行する。インストールされているときと、されていないときで、sshd(SSH サーバ) の設定ファイルが存在するかどうかが変わる。
&lt;figure class=&#34;align-center &#34;&gt;
    &lt;img loading=&#34;lazy&#34; src=&#34;https://www.nyanmo.info/posts/windows/sshdServerSetup/%e3%83%80%e3%82%a6%e3%83%b3%e3%83%ad%e3%83%bc%e3%83%89.png#center&#34;
         alt=&#34;ダウンロード&#34;/&gt; 
&lt;/figure&gt;
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;インストールされていないとき&lt;/li&gt;
&lt;/ul&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;ls C:\Programdata\ssh\sshd_config
# ls : パス &amp;#39;C:\Programdata\ssh\sshd_config&amp;#39; が存在しないため検出できません。
# 発生場所 行:1 文字:1
# + ls C:\Programdata\ssh\sshd_config
# + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#     + CategoryInfo          : ObjectNotFound: (C:\Programdata\ssh\sshd_config:String) [Get-ChildItem], ItemNotFoundException
#     + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;インストールされているとき&lt;/li&gt;
&lt;/ul&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt; ls C:\Programdata\ssh\sshd_config
# 
#     ディレクトリ: C:\Programdata\ssh
# 
# Mode                 LastWriteTime         Length Name
# ----                 -------------         ------ ----
# -a----        2025/10/22     19:12           2230 sshd_config
&lt;/code&gt;&lt;/pre&gt;&lt;h3 id=&#34;openssh-を設定する&#34;&gt;OpenSSH を設定する&lt;/h3&gt;
&lt;p&gt;　エディタはなんでもいいが、とにかく&lt;code&gt;C:\Programdata\ssh\sshd_config&lt;/code&gt;を開いて編集する。管理者権限が必要である。設定内容は各自調整が必要である。以下は簡易的にテスト用に用意した設定であり、適切ではないと思われる。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
