Re: [JSch-users] New to JSCH
Status: Alpha
Brought to you by:
ymnk
From: Amita B. <ami...@ya...> - 2004-11-30 13:42:32
|
Hi, I tried to run Exec.java example. First it shows me username@host (c-amita.bansal@localhost) and display name (127.0.0.1:0) and after that it is giving me exception com.jcraft.jsch.JSchException: Session.connect: java.net.ConnectException: Connection refused: connect Can you let me know what I am doing wrong. I don't know where it is doing password authentication. Thanks a lot for your help. Amita --- Atsuhiko Yamanaka <ym...@jc...> wrote: > Hi, > > +-From: Amita Bansal <ami...@ya...> -- > |_Date: Mon, 29 Nov 2004 18:32:21 -0800 (PST) __ > | > |Hi, --I am new to JSCH. I want to do password > authentication. I > |want to know how can I do password authentication before > executing > |any command on the remote machine. > > Try 'examples/Exec.java' included in zip archive. > It will do the password authentication before remote exec. > > |--I will appreciate if someone can explain the purpose of > userinfo > |class. How can I use this class. > > By implementing that UserInfo interface, you can control how > the password > is provided. In some case, you may want to use Swing based > dialog, or in > another case, using SWT GUI, or CUI interface for damn > terminal, etc. > > > Thanks, > -- > ymnk > __________________________________ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail |