Accessing CouchDB Admin Without Exposing It To A Public Port
23 Sep
I’m running couchdb on EC2, but I don’t neccessarily want to expose the port it runs on (5984 by default) to a public IP address. But, I want to be able to access the luxurious Futon admin system – so what are my options?
Turns out, there’s a simple solution – run an SSH tunnel to the ec2 server:
$ ssh -L 5498:localhost:5984 [mylogin]@[some-ec2-instance.com]
When you access your local port 5984, i.e. http://localhost:5984/_utils, you’re actually tunneling to your EC2 instance. Now, you can run the couchdb server safely and still enjoy the Futon admin!

![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=3c40c570-ba42-4cad-a39d-c6eb50f7b8ef)