I have created a SSH Tunnel to my memcached server as follows:
ssh -f -N firstname.lastname@example.org -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: 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.