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