title: Tunneling to redshift cluster
body: <p>I am new to redshift. Currently, I am able to create a redshift cluster and connect it through SQL Workbench but I am looking forward to tunnel my redshift cluster doing <code>ssh</code> from my MAC terminal. I did some research and able to create an ec2 instance with same VPC ID and subnet group which I am using to create my Redshift cluster with. I have already installed psql on my ec2 instance as well. I am not able to understand where I am going wrong when I use psql command to connect to redshift :</p>
  
  <pre><code>psql -h my redshift endpoint -p 5439 -d database name -U user -c " my query "
  </code></pre>
  
  <p>it gives me error psql: could not translate host name "my redshift endpoint" to address: Name or service not known </p>