We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
PasswordAuthentication no ChallengeResponseAuthentication yes
连接终端失败: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received undefined, 回车重新发起连接
server/app/socket/terminal.js 的getConnectionOptions函数中,如果使用凭据认证,authType 会被设置为凭据中的认证类型,如password
server/app/socket/terminal.js
getConnectionOptions
if (authType === 'credential') { let credentialId = await AESDecryptAsync(hostInfo[authType]) const sshRecord = await credentialsDB.findOneAsync({ _id: credentialId }) authInfo.authType = sshRecord.authType authInfo[authInfo.authType] = await AESDecryptAsync(sshRecord[authInfo.authType]) }
而在keyboard的认证代码里,传入的authType的值是credential而不是password, 导致报错。
let { authType, host, port, username, name, jumpHosts } = targetHostInfo .on('keyboard-interactive', function (name, instructions, instructionsLang, prompts, finish) { finish([targetConnectionOptions[authType]]) })
The text was updated successfully, but these errors were encountered:
No branches or pull requests
问题描述
可能的原因
server/app/socket/terminal.js
的getConnectionOptions
函数中,如果使用凭据认证,authType 会被设置为凭据中的认证类型,如password而在keyboard的认证代码里,传入的authType的值是credential而不是password, 导致报错。
The text was updated successfully, but these errors were encountered: