Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssh代理 #1211

Open
YueZaizai opened this issue May 28, 2024 · 2 comments
Open

ssh代理 #1211

YueZaizai opened this issue May 28, 2024 · 2 comments

Comments

@YueZaizai
Copy link

OS

Windows

VERSION

1.6.4

ISSUE DESCRIPTION

  1. 背景:

因工作要求,ssh 链接时需要加上一层代理,使用自己的用户名连接到堡垒机上进行验证,验证通过之后方才使用公共账号连接至目标服务器,其中 ssh 代理配置如图所示:

POPO-20240528-120921

有这层代理之后,才可以使用 ssh 命令+公共账号名称连接至目标服务器(自己的用户名无法连接至目标服务器),此时才能通过 redis-cli 命令连接上 redis 数据库,否则无法访问 redis。

  1. 问题

在这基础上,需要怎么配置 connection 才能连接上 redis 呢?

  1. 备注

i. 已尝试过在 ssh-tunnel host 中填堡垒机地址、使用自己名字或者是公共账号
ii. 已尝试过在 ssh-tunnel host 中填目标服务器地址、使用自己名字或者是公共账号
但是并没有成功,均提示:All configured authentication methods failed

@qishibo
Copy link
Owner

qishibo commented May 28, 2024

多层跳转一般需要在本地建立tunnel

可以在你redis-cli连接成功的时候,用一样的配置填进去看看呢

@YueZaizai
Copy link
Author

YueZaizai commented May 28, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants