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

Goldstein Lyor commented on SSHD-549:
-------------------------------------

Is your client also the SSHD Java code or something else ? - why it matters:

- If your client is some script/C-code/etc., then you cannot control the first 
2 lines (unless the script/code allows you to). You can control what comes 
after the "SSH server: " - it is the 1st string you put in the buffer - but 
nothing more.

- If your client is the SSHD Java code, then you can do quite a lot - handling 
of keyboard-interactive is done (indirectly) via the _UserInteraction_ 
implementation which you set on the *client* - thus it is up to *you* to decide 
what you do with the prompts. The interaction is invoked by the 
_org.apache.sshd.client.auth.UserAuthKeyboardInteractive_ code...

> Need to Change the password prompt
> ----------------------------------
>
>                 Key: SSHD-549
>                 URL: https://issues.apache.org/jira/browse/SSHD-549
>             Project: MINA SSHD
>          Issue Type: Test
>            Reporter: VENKATA DIGAVALLI
>
> Hi,
> I created the SSH server using Mina 2.0.7 libraries. During the login, the 
> client application is looking for the text "Password:" and the SSH server 
> handler seems to be sending back the prompt like "username@hostname 
> passsword:". 
> I believe this password prompt is picked from the sshd_config file on the 
> linux server where this SSH server is running. Tried changing that config 
> file, but still don't see any change in the password prompt text. 
> This is causing a failure during login. Please let me know if there is any 
> method in sshd libraries or any other solution I can use to override this 
> password prompt during login.
> Thanks,
> Venkata Digavalli



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to