EC2 出站静态 IP

EC2 出站静态 IP

我在使用 EC2 服务器时遇到问题

我需要连接到已将附加到实例的弹性 IP 列入白名单的外部 SQL 服务器。所有安全规则和路由都以最宽松的方式设置。但是,来自我的 EC2 的出站流量似乎有另一个 IP。

输出

sqlcmd -S <SQLServerIP> -U <User> -P 
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Login timeout expired.
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : TCP Provider: Error code 0x102.
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if the instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online..

我该如何修复它?

相关内容