0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Windows 11 でCLIでの SSH 接続手順

0
Last updated at Posted at 2026-05-31

WIndows11マシンから、WindowsサーバにCLIでのSSH接続の手順を整理します

Step 1  OpenSSH サーバーのインストール

PowerShell を管理者として実行して以下を実行

Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0

インストールできているかを確認

Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH*'

→ State : Installed と表示されればOK

Step 2  サービスの起動・自動起動設定

Start-Service sshd
Set-Service -Name sshd -StartupType 'Automatic'

Step 3  接続先のIPアドレスを確認

接続先のWindowsサーバで確認

ipconfig

→ IPv4 アドレス の値をメモ

Step 4  クライアントから接続

ssh ユーザー名@IPアドレス

トラブル時のチェック

サービス状態確認

Get-Service sshd

ファイアウォール確認

Get-NetFirewallRule -Name *ssh*
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?