Hi, +-From: Ben Cuthbert <[email protected]> -- |_Date: Mon, 5 Sep 2011 12:49:55 +0100 ________ | |All I am running the example code ScpTo.java. |When I try and send a file to a host that my local machine can |already connect to without a password. I just get |com.jcraft.jsch.JSchException: Auth fail
JSch can not make communications with ssh-agent systems, so you need to do it in JSch, http://www.jcraft.com/jsch/examples/UserAuthPubKey.java 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 Skype callto://jcraft/ Twitter: http://twitter.com/ymnk Facebook: http://facebook.com/aymnk ------------------------------------------------------------------------------ Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev _______________________________________________ JSch-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jsch-users
