LoginSignup
3
1

More than 1 year has passed since last update.

Windows 10 / 11 で OpenSSH サーバーを起動、ポート変更

Posted at

インストール

powershell を管理者権限で実行

# インストール済みのバージョンを確認
Get-WindowsCapability -Online | ? { $_.Name -like 'OpenSSH*' }

# インストール実施
Add-WindowsCapability -Online -Name 'OpenSSH.Server~~~~0.0.1.0'

# サービス起動
Start-Service sshd

# サービス停止
Stop-Service sshd

port番号変更

C:\ProgramData\ssh\

  • sshd_config を編集
- #Port 22
+ Port 2222
# サービス停止
Stop-Service sshd

# サービス起動
Start-Service sshd
3
1
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
3
1