1
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?

AWS 踏み台サーバーを経由したプライベートサーバーへのアクセス(※自分用メモ)

Posted at

踏み台サーバーを経由したssh接続

# 一時的な鍵の保存
ssh-add ~/.ssh/⚪︎⚪︎⚪︎⚪︎⚪︎.pem
# 鍵の保存ができているか確認
ssh-add -l  

# 踏み台サーバーへアクセス
# -Aは鍵をプライベートサブネットへ転送するオプション
ssh -A -i ~/.ssh/⚪︎⚪︎⚪︎⚪︎⚪︎.pem ec2-user@パブリックIP
# 踏み台サーバからプライベートへのアクセス
ssh ec2-user@プライベートIP
1
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
1
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?