Skip to content

Instantly share code, notes, and snippets.

@yyoda
Created April 14, 2020 01:03
Show Gist options
  • Select an option

  • Save yyoda/829cfa598a5b611d7edd6e931a62e146 to your computer and use it in GitHub Desktop.

Select an option

Save yyoda/829cfa598a5b611d7edd6e931a62e146 to your computer and use it in GitHub Desktop.
Bastion 経由で特定のサーバーにポートフォワードで接続する方法

postgresql:5432 を localhost:54321 で受ける例

ssh -i ~/.ssh/somekey.pem -L 54321:{postgresql_host_name}:5432 username@{bastion_host_name}

see

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment