Details
-
Question
-
Status: Closed
-
Major
-
Resolution: Abandoned
-
2.8.0
-
None
Description
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。