I have Linux phone with enabled SSH. I need to connect to it via challenge-response authentication. So how looks this process manually, for example, using PuTTY:
Connect to phone using IP and port.
Console shows "login as:" -> Enter user name.
Console shows:
login as: craft
Challenge: 547-04302
Product ID: 7000315107Response:
I need to copy Challenge, get Response from other server using Challenge and enter the Response in console.
How I can do this using Java and some libraries for SSH (I tried JSch, but there are no methods for challenge-response)? I need only to write Challenge into String, and after that enter the Response using String response.
Thanks for help.