Hi  Atsuhiko,

Thanks for your reply. I just tried using the
session.setPassword("samy") but condition has not improved. 

As ScpTo.java is written to be used over shell with inputs coming from
Swing Components. I want to use it in my web application, Where inputs
will be coming from JPS and ScpTo.java will be called from a Struts
Action class.

I have made some changes in the ScpTo.java for that purpose. Do you
think I have missed something ?

Regards,
Prabhat 

-----Original Message-----
From: Atsuhiko Yamanaka [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 05, 2007 10:28 PM
To: Prabhat Samadhiya -X (psamadhi - Zensar at Cisco)
Cc: [email protected]
Subject: Re: [JSch-users] Issue with UserInfo class for authorization

Hi,

   +-From: "Prabhat Samadhiya -X (psamadhi - Zensar at Cisco)" --
   |_Date: Wed, 5 Dec 2007 16:08:25 -0800 _______________________
   |
   |I am using Jsch for file transfer using SCP with my Java based Web
   |application.
   |Below is the ScpTo.java class I am using...I have hard coded the
   |username and password as of now. And as I won't be using Swing for
   |popping the password I have commented some code in the below
MyUserInfo
   |Class.But It's giving me "javax.servlet.ServletException:
   |sun/security/validator/Validator"  exception.

I guess that MyUserInfo#promptKeyboardInteractive(...) has been invoked.

How about using Session#setPassword(),

   UserInfo ui=new MyUserInfo();
   session.setUserInfo(ui);
   session.setPassword("samy");
   session.connect();


Sincerely,
--
Atsuhiko Yamanaka
JCraft,Inc.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Tel +81-22-723-2150
    +1-415-578-3454
Fax +81-22-224-8773
Skype callto://jcraft/

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to