Re: [JSch-users] Quick question about getting authentication questions
Status: Alpha
Brought to you by:
ymnk
From: <ym...@jc...> - 2012-06-04 14:17:12
|
Hi, +-From: Cardician <car...@gm...> -- |_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 |