在启用 Neptune IAM DB 授权的情况下,是否可以通过 ssh 隧道/端口转发从本地计算机访问 Neptune DB? [英] is it possible access neptune DB from local machine via ssh tunnel/port forward while neptune IAM DB authorization enabled?

查看:17
本文介绍了在启用 Neptune IAM DB 授权的情况下,是否可以通过 ssh 隧道/端口转发从本地计算机访问 Neptune DB?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法通过 ssh-tunnel EC2(ec2 与 neptune db 存在于同一 vpc 中)从本地系统连接到 Neptune DB,其中在启用 Neptune IAM DB 授权时建立了 Neptune DB 连接.

i am unable to connect to Neptune DB from local system via ssh-tunnel EC2(ec2 exists in same vpc as neptune db) where neptune DB connectivity is established when Neptune IAM DB authorization is enabled.

通过禁用 IAM DB 授权,我可以从本地机器访问 Neptune DB.我找不到足够的文档.有人可以帮忙吗.

With disabling IAM DB authorization i can able to access neptune DB from local machine.I could not find enough documentation on this. Can someone please help.

推荐答案

如果使用 SSH 隧道并在连接字符串中使用 localhost,则需要修改正在使用的任何 IAM SigV4 进程以确保主机标头匹配 Neptune 集群端点.否则,您将尝试使用 localhost 作为主机对请求进行签名,并且签名将无效.

If using an SSH tunnel and using localhost in your connection string, you'll need to modify whatever IAM SigV4 process you're using to make sure the host header matches the Neptune cluster endpoint. Otherwise, you'll be attempting to sign the request using localhost as the host and the signature will be invalid.

这篇关于在启用 Neptune IAM DB 授权的情况下,是否可以通过 ssh 隧道/端口转发从本地计算机访问 Neptune DB?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆