Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ssh 在远程服务器上访问CouchDB Futon_Ssh_Couchdb_Telnet - Fatal编程技术网

Ssh 在远程服务器上访问CouchDB Futon

Ssh 在远程服务器上访问CouchDB Futon,ssh,couchdb,telnet,Ssh,Couchdb,Telnet,我已经在远程服务器上安装了CouchDB,我可以通过终端telnet/ssh客户端访问该服务器 服务器正在CentOS6上运行 我真的希望能够使用Futon,但我现在不能,因为我只能在ssh客户端中打开localhost:5984 有关如何解决此问题的任何建议?只需创建到远程CouchDB实例的ssh隧道: ssh -f -L localhost:15984:127.0.0.1:5984 user@remote_host -N 在这之后,您的远程CouchDB Futon仍在本地主机地址上运行

我已经在远程服务器上安装了CouchDB,我可以通过终端telnet/ssh客户端访问该服务器

服务器正在CentOS6上运行

我真的希望能够使用Futon,但我现在不能,因为我只能在ssh客户端中打开localhost:5984


有关如何解决此问题的任何建议?

只需创建到远程CouchDB实例的ssh隧道:

ssh -f -L localhost:15984:127.0.0.1:5984 user@remote_host -N
在这之后,您的远程CouchDB Futon仍在本地主机地址上运行,它将通过地址为您提供:
http://localhost:15984/_utils
。由您选择替换本地端口15984


另外,还有来自LinodeWiki的示例couchdb隧道脚本。希望有帮助。

我在FUton中遇到了这个错误:“错误:错误{{badmatch,{error,eacces}},[{coach_file,init,1},{gen_server,init_it,6},{proc_lib,init_do_apply,3}]。您是否遇到过这种情况?
eacces
错误是关于文件操作权限不足。您的
couchdb
是否对其数据库/日志目录使用了读/写权限?有关更多信息,请参阅。再次感谢。你是个天才。节省了我很多时间。荣誉祝您度过愉快的一天。另外,请查看AutoSh以维护持久的ssh隧道。可爱!我已经在Windows上使用了minGW shell来启动和运行隧道,不得不删除-f选项tho。