You are here: Foswiki>TIG Web>AccountsAndSecurity>InstallingKerberosForLinux (revision 7)EditAttach
First, note that none of this is necessary on TIG's supported flavor of Linux, CSAIL Debian?, which comes with Kerberos and OpenAFS already configured and integrated with the system.

Installation on Debian or similar systems (Ubuntu, etc)

  • apt-get install krb5-user krb5-config If prompted for a default realm, enter CSAIL.MIT.EDU making sure to capitalize it as shown.
  • Run kinit <username>@CSAIL.MIT.EDU to authenticate. The authentication tickets obtained here will expire after 10 hours, at which point you'll no longer be authenticated. You may wish to investigate a tool like kredentials, or the longjob and authloop scripts (in /usr/local/csail/bin on CSAIL Debian machines) which will keep your authentication active longer.
  • Add the following to ~/.ssh/config (create the file if it doesn't already exist) for your user account only or to /etc/ssh/ssh_config for all users, so ssh will properly use your Kerberos tickets when logging in to CSAIL machines :

Host *
    GSSAPIAuthentication yes
    GSSAPIDelegateCredentials yes
    GSSAPIKeyExchange yes

For ~/.ssh/config, make sure that you are its owner and no one else can write to it. For example:
$ chmod 600 config
$ chown $USER config

Installation for Redhat, Fedora, etc

Please contribute content for this section!

One user's experience with installing kerberos client functionality on Fedora Core 9: I started by installing the following kerberos packages via yum:

Probably krb5-devel is not necessary.

Then I editted /etc/krb5.conf, changing
               EXAMPLE.COM -> CSAIL.MIT.EDU
and this is what the [realms] section should look like:
  kdc =
  kdc =
  admin_server =
  default_domain =
Edit | Attach | Print version | History: r10 | r8 < r7 < r6 < r5 | Backlinks | View wiki text | Edit WikiText | More topic actions...
Topic revision: 22 Feb 2011, ArthurProkosch

MIT Computer Science and Artificial Intelligence Laboratory


  • About CSAIL
  • Research
  • News + Events
  • Resources
  • People

This site is powered by Foswiki MIT: Massachusetts Institute of Technology