修复 SSH Keyboard-Interactive 多阶段二次认证适配 - #2024
Open
liuliu128412-lang wants to merge 1 commit into
Open
Conversation
|
Member
|
不像是标准的 mfa 实现方式,业务场景有点特殊了。 |
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.



问题背景
部分受 EDR 或 OTP 保护的 SSH 资产通过 Keyboard-Interactive 完成二次认证。Koko 在交互式资产连接过程中未正确处理多阶段认证问题,可能直接返回认证失败,无法向用户显示二次认证输入提示。
修改内容
兼容性
验证
git apply --check通过git diff --check通过pkg/proxyLinux 测试二进制编译通过pkg/srvconnLinux 测试二进制编译通过go vet ./...通过