1

I'm using jsch to connect to a server once I've connected to this(which I can do successfully) I want to connect to another server with a password. I know there is an example here http://www.jcraft.com/jsch/examples/ViaHTTP.java.html but it does not include a password prompt. Does anyone have any example or can point me in the right direction it would be appreciated.

Here is an example of my usual steps execute when using putty.

  1. type user name and password into putty.

  2. Connect to the server I wish to use with ssh john@192.168.3.001.

  3. Run command.

What I'm wondering what should I do to execute step 2. I can execute step 1 and 3 right now

TrevDred
  • 99
  • 2
  • 14

0 Answers0