📢 Webサイト閉鎖と移転のお知らせ
このWebサイトは2026年9月に閉鎖いたします。
新しい記事は移転先で追加しております。(旧サイトでは記事を追加しておりません)
| 51行目: | 51行目: | ||
#: <code>Set-Service -Name sshd -StartupType 'Automatic'</code> | #: <code>Set-Service -Name sshd -StartupType 'Automatic'</code> | ||
#: <br> | #: <br> | ||
# | # ファイアウォールルールを設定する。 | ||
<syntaxhighlight lang="powershell"> | <syntaxhighlight lang="powershell"> | ||
if (!(Get-NetFirewallRule -Name "OpenSSH-Server-In-TCP" -ErrorAction SilentlyContinue | Select-Object Name, Enabled)) | if (!(Get-NetFirewallRule -Name "OpenSSH-Server-In-TCP" -ErrorAction SilentlyContinue | Select-Object Name, Enabled)) | ||