Linux or Mac
- Edit
~/.ssh/config
.
Host bastion
Hostname 52.199.***.*** # Public IP
User ec2-user
IdentityFile ~/.ssh/***-keypair.pem
Host web-server
Hostname 10.0.***.*** # Local IP
User ec2-user
IdentityFile ~/.ssh/***-keypair.pem
ProxyCommand ssh bastion -W %h:%p
- Command
ssh bastion
orssh web-server
.
Windows
댓글 없음:
댓글 쓰기