简体   繁体   中英

How to Access Private Subnet EC2 with site to site VPN

If I have an AWS VPC with a private and public subnet. The public subnet has 1 EC2 instance and the private subnet has 1 EC2 instance as well. If I do a site to site VPN to my VPC from my work location. Can I access my private subnet EC2 instance via ssh using the private ip? Or do I have to do a Bastian host from my public subnet to access my private subnet EC2 instance?

Yes, you will be able to ssh to an e2 instance from your on-premise/work location. You need to configure routing from your work location to reach to the ec2 instance IP. Once that is in place and your security groups allows the incoming connection, then you should be good.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM