Help us understand the problem. What is going on with this article?

Datagripで踏み台サーバ(Bastion)経由で接続する

More than 1 year has passed since last update.

ローカル環境のMac OSからAWS上に存在する踏み台サーバ経由でstaging環境へアクセスし、そこからDBへ接続する方法
ローカル → EC2(踏み台) → EC2(Staging) → RDBMS(Mysql)

前提

ローカル環境のMacの.ssh/configに踏み台経由での各サーバへの接続方法を記載

例:

.ssh/config
Host sample-proxy
  User user
  Port 22
  Hostname xxx.xxx.xxx
  preferredauthentications publickey
  IdentityFile ~/.ssh/id_rsa

Host *sample.jp
  User user
  port 22
  ProxyCommand ssh sample-proxy nc %h %p
  preferredauthentications publickey
  IdentityFile ~/.ssh/id_rsa

手順

2017年11月13日現在 stable版ではローカルの.ssh/configを読む設定は選択できなさそうです。
EAPだと上記設定が可能な為、設定できるようにします。

  1. Preferences > Appearance & Behavior > System Settings > Updates で Early Access Program を選択 eap.jpeg
  2. Datagrip をアップデートする
  3. SSH/SSL のAuth Typeで OpenSSH config and authentication agentを選択 ssh.jpeg
  4. これでローカルの.ssh/configを使用してDBアクセスが可能になります
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした