LoginSignup
11
12

More than 5 years have passed since last update.

Windows でポート22番を開く方法

Last updated at Posted at 2016-01-06

Windows で動いている sshd に接続する手順です。既に sshd は動いていると仮定します。sshd の起動は (Cygwin を使用している場合) 概ねこちらの記事の通りに設定できます。

環境

  • Windows 10 Home Edition

コマンド

コマンドプロンプトか Cygwin ターミナルを管理者権限で開いて次のコマンドを打ちます。

netsh advfirewall firewall add rule name="sshd" dir=in action=allow protocol=TCP localport=22

トラブルシューティング

マカフィーなどのアンチウィルスソフトが外部からの接続を妨げることがあります。接続に失敗するときは、それらのソフトウェアを無効にして動作確認をして、問題の切り分けをすることをおすすめします。

11
12
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
11
12