Keyboard Interactive authentication in the upstream #430
Unanswered
luisepbueno
asked this question in
Q&A
Replies: 1 comment
-
this is technically doable but you can use https://github.com/tg123/sshpiper.crypto directly you may need something like below
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there any way to handle keyboard interactive authentication in the upstream? Some Arista switches support only keyboard interactive auth. I need wait for the "password:" prompt and then send the password.
I would like to write a plugin with a function like this and set this function as the challenge for the upstream authentication. Is that possible?
`func (p *plugin) UpstreamKeyboardInteractiveChallenge(password []byte) (challenge *ssh.KeyboardInteractiveChallenge, err error) {
var pwPromptRegex *regexp.Regexp
if pwPromptRegex, err = regexp.Compile("[Pp]assword:"); err != nil {
return
}
}`
Beta Was this translation helpful? Give feedback.
All reactions