You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Lyor Goldstein (Jira)" <ji...@apache.org> on 2022/07/06 17:23:00 UTC

[jira] [Commented] (SSHD-1274) UserInteraction Problem

    [ https://issues.apache.org/jira/browse/SSHD-1274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17563345#comment-17563345 ] 

Lyor Goldstein commented on SSHD-1274:
--------------------------------------

{{UserInteraction}} has to do with "keyboard-interactive" as described in [rfc4256|
https://datatracker.ietf.org/doc/html/rfc4256]. The MINA SSHD code makes a best effort to +guess+ that the server is asking for a password - however, it might not be able to - as seems to be the case here. I strongly recommend reading the RFC and then provide your own implementation for {{UserInteraction#interactive}} challenges and responses handling for this specific server.

> UserInteraction Problem
> -----------------------
>
>                 Key: SSHD-1274
>                 URL: https://issues.apache.org/jira/browse/SSHD-1274
>             Project: MINA SSHD
>          Issue Type: Question
>    Affects Versions: 2.8.0
>            Reporter: Cheung
>            Priority: Major
>             Fix For: 2.8.0
>
>
> I used the sshd client。 I need to change my password when I logged in for the first time,the interaction is success in xshell。There are three complete interactions:
> 1.Enter a new password
> 2.Confirm new password
> 3.connected and enter the service
> But when i use sshd clent, i just can received first time interactive from service。i use the org.apache.sshd.client.auth.keyboard.UserInteraction#interactive to received prompt from service。The clientSession connect is success,but authFure done is false and the opeFuture of shellChannel is false。
> I try to read byte of passowrd to shellChannel‘s inputStream,it's not work。
> How can i send the newPassword to service and received interactive from service after first time。
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org