That was exactly it! Thanks so much. Now the Kerberos stuff does not appear
and everything works perfectly. Thanks again!

On Mon, Jun 4, 2012 at 10:17 AM, Atsuhiko Yamanaka <y...@jcraft.com> wrote:

> Hi,
>
>   +-From: Cardician <cardic...@gmail.com> --
>   |_Date: Mon, 4 Jun 2012 09:53:24 -0400 ___
>   |
>   ...
>    |So this works and I get the file. I'm running this code on a linux
>   |server and when I run the code JSch asks me for my Kerberos
>   |username and password.  It looks like:
>
>   |Kerberos username [george]:
>   |Kerberos password for george:
>
>   |I just hit enter for both questions and then the program seems to
>   |continue on with no problems. However I need this code to be
>   |automated through a cron task and so I'd rather not having it
>   |pausing the program to ask me these two questions. Is there
>   |something I'm not supplying it so that it won't ask this?
>   |Something I need to do to stop it asking?
>
> How about executing the following line before session.connect() ?
>
>  session.setConfig("PreferredAuthentications",
>                    "publickey,keyboard-interactive,password");
>
>
> Sincerely,
> --
> Atsuhiko Yamanaka
> JCraft,Inc.
> 1-14-20 HONCHO AOBA-KU,
> SENDAI, MIYAGI 980-0014 Japan.
> Tel +81-22-723-2150
> Skype callto://jcraft/
> Twitter: http://twitter.com/ymnk
> Facebook: http://facebook.com/aymnk
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to