<p>I'm able to connect to an <strong><a href="https://aws.amazon.com/elasticache/" rel="noreferrer">ElastiCache</a> Redis instance in a VPC</strong> from <strong>EC2 instances</strong>. But I would like to know if there is a way to connect to an ElastiCache Redis node outside of Amazon EC2 instances, such as from my <em>local</em> dev setup or VPS instances provided by other vendors.</p>

<p>Currently when trying from my local set up:</p>

<pre><code>redis-cli -h my-node-endpoint -p 6379
</code></pre>

<p>I only get a timeout after some time.</p>

Loic Duros
<p>SSH port forwarding should do the trick. Try running this from you client.</p>
<pre><code>ssh -f -N -L 6379:&lt;your redis node endpoint&gt;:6379 &lt;your EC2 node that you use to connect to redis&gt;
</code></pre>
<p>Then from your client</p>
<pre><code>redis-cli -h 127.0.0.1 -p 6379
</code></pre>
<p>It works for me.</p>
<p>Please note that default port for redis is <code>6379</code> not <code>6739</code>. And also make sure you allow the security group of the EC2 node that you are using to connect to your redis instance into your Cache security group.</p>
<p>Also, AWS now supports accessing your cluster more info <a href="https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/accessing-elasticache.html" rel="noreferrer">here</a></p>
