Connecting to RDS Postgres from remote machine

前端 未结 6 1288
长发绾君心
长发绾君心 2020-12-25 14:16

I have configured an RDS Postgres micro instance for testing but am having problem connecting. I have created a security group and allow all hosts (0.0.0.0/0) by default to

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-25 14:42

    My company's firewall had blocked outgoing traffic to the default postgres port, 5432. I didn't realise this until I tested the port using netcat in a terminal window, as follows:

    nc -zv portquiz.net 5432
    

    Hopefully this saves someone half a day of messing around with AWS security groups.

提交回复
热议问题