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.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인