feat: 支持 ssh agent 认证#110
Merged
Merged
Conversation
将跨平台的shell检测、终端环境配置逻辑抽离到utils模块,统一各平台实现,移除重复代码,提升代码可维护性
移除了错误的AuthenticationData到MethodKind的转换实现,修正HostBased类型的序列化字符串为正确的值
1. 新增SSH Agent、键盘交互认证类型,更新数据库实体和枚举定义 2. 完善文档说明新增的认证方式和MFA支持 3. 添加键盘交互认证弹窗表单,支持多提示输入 4. 实现SSH Agent认证后端逻辑,支持Unix/Windows平台 5. 完善端口转发和终端连接的认证流程,支持提交键盘交互答案 6. 优化认证失败提示和错误处理逻辑
将数据库更新操作从全局连接改为传入的事务tx,统一事务内的数据库操作
nashaofu
pushed a commit
that referenced
this pull request
Jun 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.