Request Timeout Error

0

Hi AWS, I have a private server on which I am running some deployments and I am using a Jump server to login into that server. Now there is another DB server which is public and when I am trying to ping it's IP from my private server I am getting Request Time out error.

So, is it possible to ping a public instance from a private instance cross account and what changes do we need to make in the Security Group Inbound/Outbound rules if this kind of setup is possible. Is there any official document available ?

Please let me know.

profile picture
已提問 7 個月前檢視次數 171 次
1 個回答
0

Yes you can ping a public EC2 so long as you’ve a route to the internet from your private instance via an NAT gateway and your inbound security group allows ICMP type 8 (ping) on the public database server.

If it’s an RDS instance then ping is not supported.

profile picture
專家
已回答 7 個月前
profile picture
專家
已審閱 7 個月前
  • The issue I want to highlight is I am trying to run this command from my private server isInvoke-Sqlcmd -InputFile "$(scriptfilepath)" -ServerInstance $(sqlserver) -Database $(dbname) -Username "$(username)" -Password "$(pwd)" -QueryTimeout 36000 -Verbose

    but I am getting this error while my pipeline is running Invoke-Sqlcmd : A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.) Then I added Encrypt=False in the command as well but I am getting a different error afterwards i.e. The Query and InputFile are mutually exclusive.

    I need to know is it because of the problem I mentioned above? Please guide @Gary Mclean and @Riku_Kobayashi

  • Ok, it looks to me that the CA certificate on your Database isnt installed on the box you are connecting from. You will need to obtain the CA cert that the SSL connections are being encrypted with imported into your Windows Cert Store in order to validate the SSL traffic. Can you confirm if your database server is RDS or Installed on an EC2. You will need to obtain the CA Cert from the SQL Server. This post may help explain how to install certs onto the client https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/SQLServer.Concepts.General.SSL.Using.html

    You can add this to your command line but it bypasses the SSL Validation -TrustServerCertificate and I am not recommending it but it should highlight the issue if this works successfully.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南