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
asked 6 months ago164 views
1 Answer
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
EXPERT
answered 6 months ago
profile picture
EXPERT
reviewed 6 months ago
  • 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.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions