Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

How to set Shell example to Kerberos authen ?

Help
Jens Muuss
2009-04-30
2013-05-28
  • Jens Muuss
    Jens Muuss
    2009-04-30

    Hello ,
    JSCH is a great software.
    I am trying to modify the shell example to authenticate via a Kerberos ticket.
    How can I set it to use the Kerberos ?
    I added to the example :
      session.setConfig("GSSAPIAuthentication","yes");
      session.setConfig("GSSAPIDelegateCredentials","yes");

    But it still wants to use the Password authentication.
    Is there anything I have to set additional for noninteractive Kerberos
    authentication ?

    Thanks in advance,
    Jens

     
    • Jens Muuss
      Jens Muuss
      2009-04-30

      Now inserted some printlns and found,
      in the GSSContextKrb5.init following exception was thrown:

      com.jcraft.jsch.JSchException: java.lang.SecurityException: Anmeldekonfiguration kann nicht gefunden werden.
          at com.jcraft.jsch.jgss.GSSContextKrb5.init(GSSContextKrb5.java:135)
          at com.jcraft.jsch.UserAuthGSSAPIWithMIC.start(UserAuthGSSAPIWithMIC.java:143)
          at com.jcraft.jsch.Session.connect(Session.java:419)
          at Shell.main(Shell.java:44)

      Has somebody an idea ?

      Thanks,
      Jens