如何在 AWS ec2 中使用 ftp 客户端
How to use ftp client in AWS ec2
这里有人拥有 AWS 私有子网上的 ec2 实例,该实例能够连接到外部 FTP 服务器吗?似乎我的 ec2 实例无法连接到第 3 方 ftp 服务器,而无需移动到 public 子网并使用 elastic/public ip。
私有子网默认不与外界或互联网连接。但是有一个名为 NAT Gateway 的资源,您可以在您的 VPC 中配置它以提供从您的私有子网传出的互联网连接。
You can use a network address translation (NAT) gateway to enable
instances in a private subnet to connect to the internet or other AWS
services, but prevent the internet from initiating a connection with
those instances.
您可以按照link这里设置NAT网关。
https://aws.amazon.com/premiumsupport/knowledge-center/nat-gateway-vpc-private-subnet/
私有子网默认没有互联网连接。您需要在 public 子网上创建一个 nat 网关。 Nat 网关有点贵。在这种情况下,您还可以创建一个 nat 实例。
这里有人拥有 AWS 私有子网上的 ec2 实例,该实例能够连接到外部 FTP 服务器吗?似乎我的 ec2 实例无法连接到第 3 方 ftp 服务器,而无需移动到 public 子网并使用 elastic/public ip。
私有子网默认不与外界或互联网连接。但是有一个名为 NAT Gateway 的资源,您可以在您的 VPC 中配置它以提供从您的私有子网传出的互联网连接。
You can use a network address translation (NAT) gateway to enable instances in a private subnet to connect to the internet or other AWS services, but prevent the internet from initiating a connection with those instances.
您可以按照link这里设置NAT网关。
https://aws.amazon.com/premiumsupport/knowledge-center/nat-gateway-vpc-private-subnet/
私有子网默认没有互联网连接。您需要在 public 子网上创建一个 nat 网关。 Nat 网关有点贵。在这种情况下,您还可以创建一个 nat 实例。