Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Accessing CouchDB Futon on a remote server

I've installed CouchDB on a remote server that I have access to through a terminal telnet/ssh client.

The server is running on CentOS6.

I really want to be able to work with Futon, but I cannot at the moment because I can only open localhost:5984 in the ssh client.

Any suggestions on how to work around this?

like image 449
user1163278 Avatar asked Apr 07 '13 16:04

user1163278


1 Answers

Just create ssh tunnel to your remote CouchDB instance:

ssh -f -L localhost:15984:127.0.0.1:5984 user@remote_host -N

And after that your remote CouchDB Futon that still serve on localhost address will be available for you by address: http://localhost:15984/_utils. Replace local port 15984 by your choice.

P.S. There is also awesome guide from Linode wiki with example couchdb-tunnel script. Hope it helps.

like image 107
Kxepal Avatar answered Oct 18 '22 06:10

Kxepal