I am trying to connect AWS Redshift instance through SQL Workbench installed on the same EC2 Instance but its repeatedly giving an error of
"connection refused check that the hostname and port are correct and that the postmaster is accepting TCP/IP"
I am using SQL Workbench on a EC2 Instance with security group defined inside EC2 Instance but I cannot define security group in the cluster due to non-classic mode.
Can anyone let me know what is the correct solution the problem?