This is handy for seeing the couchdb futon interface without making it publicly available. It still will only accept connections from localhost.
Syntax:
ssh -L <local port>:porxy:<remote port> <user>@<remote host>
Example for CouchDB:
ssh -L 5984:localhost:5984 [email protected]