简体   繁体   English

无法连接到我本地笔记本电脑上 SMSS 上的 AWS RDS MS SQL SERVER

[英]Unable to connect to my AWS RDS MS SQL SERVER on SMSS on my local laptop

I created a AWS RDS MS SQL Server database and obviously I want to connect to it from my local pc/laptop.我创建了一个 AWS RDS MS SQL Server 数据库,显然我想从我的本地 pc/笔记本电脑连接到它。 I will share screenshots to show my network settings.我将分享屏幕截图以显示我的网络设置。

This is the error:这是错误:

在此处输入图像描述

My connectivity & security details:我的连接和安全细节:

在此处输入图像描述

The Inbound rules when clicking on the VPC security groups related to this DB (I have added my own IP address:点击这个DB相关的VPC安全组时的Inbound规则(我添加了自己的IP地址:

在此处输入图像描述

I have no experience in networking & security, so it might be something I've missed.我没有网络和安全方面的经验,所以这可能是我错过的。

What should I do to make it possible?我应该怎么做才能让它成为可能? I don't want public access to the database.我不想公开访问数据库。

Update 1: added screenshots of my Network ACLs associated with the VPC that's related to the DB.更新 1:添加了与与数据库相关的 VPC 关联的我的网络 ACL 的屏幕截图。

在此处输入图像描述

I recommend checking that the subnets associated with the subnet group for this database are public.我建议检查与此数据库的子网组关联的子网是否是公共的。

As you mentioned, it is not safe to have a database publicly accessible.正如您所提到的,公开访问数据库是不安全的。 You can place it in a private subnet and only access it via a tunnel.您可以将它放在私有子网中,并且只能通过隧道访问它。 Here is a link for that info.这是该信息的链接 Hope it helps.希望能帮助到你。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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