1
1

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.

SSH コンフィグを追加した (Session Manager 経由で SSH する)

Posted at

Session Manager 経由で SSH する設定をしてみたけど

さすがに,ssh i-xxx みたいなログインをしたくない

.ssh/config
# SSH over Session Manager
host i-* mi-*
    ProxyCommand sh -c "aws ssm start-session --target %h --document-name AWS-StartSSHSession --parameters 'portNumber=%p'"

追加した

たまたまホスト名がプレフィックス付いていたのでグルーピングした

.ssh/config
host prefix-aaa
    (snip)

host prefix-bbb
    (snip)

# SSH over Session Manager
host i-* mi-* prefix-*
    ProxyCommand sh -c "aws ssm start-session --target %h --document-name AWS-StartSSHSession --parameters 'portNumber=%p'"

Refs

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?