リスト10.2 多段認証の設定ファイル(.ssh/config)
Host bastion
Hostname bastion.aws-intro-sample.com
User ec2-user
IdentityFile ~/.ssh/(開発者の.pemファイル)
Host web01
Hostname web01.home
User ec2-user
IdentityFile ~/.ssh/(開発者の.pemファイル)
ProxyCommand ssh.exe bastion -W %h:%p
Host web02
Hostname web02.home
User ec2-user
IdentityFile ~/.ssh/(開発者の.pemファイル)
ProxyCommand ssh.exe bastion -W %h:%p