2016년 11월 1일 화요일

Bastion 서버를 통한 SSH 터널링 (AWS) | SSH Tunneling through a Bastion Server (AWS)

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 or ssh web-server.

Windows

댓글 없음:

댓글 쓰기