【发布时间】:2018-02-13 05:26:14
【问题描述】:
尝试设置从我的 neo4j 3.2.3 图形数据库到我的本地计算机的 ssh 隧道。尝试像我为隧道 jupyter 笔记本所做的那样设置它,但看起来 neo4j 正在阻止身份验证或其他东西。
到目前为止,我已尝试根据在线研究更改我的(远程)EC2 实例上的 neo4j.conf 文件:
# Whether requests to Neo4j are authenticated.
# To disable authentication, uncomment this line
dbms.security.auth_enabled=false
# With default configuration Neo4j only accepts local connections.
# To accept non-local connections, uncomment this line:
dbms.connectors.default_listen_address=0.0.0.0
# HTTPS Connector. There can be zero or one HTTPS connectors.
dbms.connector.https.enabled=true
dbms.connector.https.listen_address=0.0.0.0:7473
#dbms.connector.https.address=0.0.0.0:7473
在我的本地机器上,我设置了一个 ssh 隧道,就像我为 jupyter notebook 隧道设置的一样(我已经为同一个 EC2 实例成功设置了该隧道):
ssh -NfL localhost:7474:localhost:7474 project
当我尝试在本地计算机上打开浏览器 localhost:7474 时,我看到了 Neo4j 浏览器的欢迎屏幕,但它并没有让我登录到数据库。相反,我收到“WebSocket 连接失败”。
它正在自动填充主机:使用我不熟悉的bolt://localhost:7687。还要输入用户名和密码(已正确输入)。
有人知道如何通过 ssh 隧道成功地将 neo4j(版本 3.2.3)数据库连接到本地机器吗?
【问题讨论】:
标签: neo4j ssh-tunnel