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?

More than 1 year has passed since last update.

Windows Server 2016でSSHが使えない問題の解決方法

0
Last updated at Posted at 2025-04-16

はじめに

Windows Server 2016でSSH接続を試みた際に、OpenSSHがインストールされていなかったため、接続できずに作業が滞ってしまいました。
この記事では、その解決方法について紹介します。

目次

  1. 問題の発端
  2. 解決方法
  3. 参考文献

問題の発端

Windows Server 2016でリモートサーバにSSH接続しようとしたところ、標準ではOpenSSHがインストールされていないため、接続ができませんでした。
以下のようなエラーメッセージが表示されることがあります。

'ssh' is not recognized as an internal or external command, operable program or batch file.

このエラーメッセージは、SSHコマンドが認識されていないことを示しており、OpenSSHがインストールされていない可能性があります。

解決方法

以下の手順でOpenSSHをインストールし、SSH接続を可能にしました。

  1. OpenSSHのインストール

    • Server Worldのガイドに従い、Windows Server 2016にOpenSSHをインストールしました。
  2. インストール手順

    • OpenSSHクライアントおよびサーバをインストール。
    • サービスの起動と自動起動の設定を行いました。
  3. SSH接続の確認

    • インストール後、以下のコマンドを使用してサーバーのバージョンを確認し、SSH接続が正常に動作することを確認しました。
    ssh -V
    

    実行結果の例:

    OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5
    

    このように、OpenSSHのバージョン情報が表示されれば、インストールが成功していることを確認できます。

参考文献

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?