Can you connect to Amazon Elasticache Redis outside of Amazon - Stack Overflow
SSH port forwarding should do the trick. Try running this from you client.
ssh -f -N -L6379:<your redis node endpoint>:6379 <your EC2 node that you use to connect to redis>
Then from your client
redis-cli -h 127.0.0.1 -p 6379
It works for me.
Please note that default port for redis is 6379
not 6739
. An also make sure you allow the allow the security group of the EC2 node that you are using to connect to your redis instance into your Cache security group.
Read full article from Can you connect to Amazon Elasticache Redis outside of Amazon - Stack Overflow
No comments:
Post a Comment