[BUG]当使用ssh连接到远程服务器时无法正常使用插件
[BUG] When connecting to a remote server via SSH, the plugin cannot be used normally
版本信息:
vscode:1.104.1
Redis for VS Code:1.4.0
现象:当使用ssh连接到远程服务器进行开发时无法正常连接到redis服务器,在本地开发正常。
Phenomenon: When using SSH to connect to a remote server for development, I cannot successfully connect to the Redis server, but local development works normally.
原因:初步判断原因为在连接到远程服务器时Redis for VS Code插件还是在本地电脑连接127.0.0.1:5541,而不是远程服务器的5541端口,这导致插件无法正常使用。
Reason: Preliminary judgment indicates that the issue arises because the Redis for VS Code plugin is still connecting to 127.0.0.1:5541 on the local computer, rather than port 5541 on the remote server, when connecting to the remote server. This prevents the plugin from functioning properly.
因为我没有本地回环地址的抓包软件,所以使用socket监听5541来确认数据是否发送到本地主机,经过确认在连接到ssh服务器时,请求确实发送给了本地主机,如下图:
Since I don't have packet capture software for the local loopback address, I used socket listening on port 5541 to confirm whether the data was sent to the local host. Upon confirmation, when connecting to the SSH server, the request was indeed sent to the local host, as shown below:
解决方案:希望判断当用户连接到远程主机是插件连接地址也指向远程主机地址。
Solution: It is desired to determine whether the plug-in connection address also points to the remote host address when the user connects to the remote host。
My English proficiency is limited, so I have used machine translation. Please forgive me, and I hope it can be fixed as soon as possible. Thank you
[BUG]当使用ssh连接到远程服务器时无法正常使用插件
[BUG] When connecting to a remote server via SSH, the plugin cannot be used normally
版本信息:
vscode:1.104.1
Redis for VS Code:1.4.0
现象:当使用ssh连接到远程服务器进行开发时无法正常连接到redis服务器,在本地开发正常。
Phenomenon: When using SSH to connect to a remote server for development, I cannot successfully connect to the Redis server, but local development works normally.
原因:初步判断原因为在连接到远程服务器时Redis for VS Code插件还是在本地电脑连接127.0.0.1:5541,而不是远程服务器的5541端口,这导致插件无法正常使用。
Reason: Preliminary judgment indicates that the issue arises because the Redis for VS Code plugin is still connecting to 127.0.0.1:5541 on the local computer, rather than port 5541 on the remote server, when connecting to the remote server. This prevents the plugin from functioning properly.
因为我没有本地回环地址的抓包软件,所以使用socket监听5541来确认数据是否发送到本地主机,经过确认在连接到ssh服务器时,请求确实发送给了本地主机,如下图:
Since I don't have packet capture software for the local loopback address, I used socket listening on port 5541 to confirm whether the data was sent to the local host. Upon confirmation, when connecting to the SSH server, the request was indeed sent to the local host, as shown below:
解决方案:希望判断当用户连接到远程主机是插件连接地址也指向远程主机地址。
Solution: It is desired to determine whether the plug-in connection address also points to the remote host address when the user connects to the remote host。
My English proficiency is limited, so I have used machine translation. Please forgive me, and I hope it can be fixed as soon as possible. Thank you