I have created a SSH Tunnel to my memcached server as follows:
ssh -f -N user@56.55.55.56 -L 11211:127.0.0.1:11211
When i do netstat on my machine i get the following: So far looks good.
tcp 0 0 127.0.0.1:11211 0.0.0.0:* LISTEN 976/ssh
The issue shows up when I telnet to the server as follows:
telnet 127.0.0.1 11211
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
channel 2: open failed: connect failed: Connection refused
Connection closed by foreign host.
So I went to the memcached server and tailed the auth.log file and found this message overytime i try to telnet to the server:
Apr 4 13:56:06 vmcachd sshd[1410]: error: connect_to 127.0.0.1 port 11211: failed.
Does anyone know what is the issue, I have a similar setup with postgresql and it works perfectly fine! Any help is appreciated.
Thank You
tcp 0 0 192.168.3.106:11211 0.0.0.0:* LISTEN 1031/memcached
– Paul Bedorf Apr 4 '16 at 20:41