8
5

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 5 years have passed since last update.

【Mac】踏み台サーバ経由でリモートデスクトップ接続する方法

Last updated at Posted at 2019-07-28

概要

Macから踏み台サーバ経由でWindowsサーバにリモートデスクトップする方法です。
Windowsサーバは踏み台サーバからのアクセスのみを許可しています。

実行環境

踏み台サーバ

  • Amazon Linux release 2 (Karoo)

接続先サーバ

  • Windows

手順

前提条件

  • Macから踏み台サーバへsshできること
  • 踏み台サーバからWindowsサーバにsshできること
  • MacにWindowsにアクセスするためのアプリを入れていること。ここでは「Microsoft Remote Desktop 10」を使います。
    image.png

ポートフォワード

下記のsshコマンドを実行します。
"-i シークレットアクセスキー" は、鍵があれば指定してください。

ssh ユーザ名@踏み台サーバIP -i シークレットアクセスキー -L 13389:windowsサーバのIP:3389

アプリの設定

PC nameは localhost:13389 とし、 User account はWindowsサーバにアクセスするためのユーザとパスワードを設定してください。

image.png

設定が終わったら接続します。

以上

8
5
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
8
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?