<?xml version="1.0" encoding="utf-8"?><!DOCTYPE article  PUBLIC '-//OASIS//DTD DocBook XML V4.4//EN'  'http://www.docbook.org/xml/4.4/docbookx.dtd'><article><articleinfo><title>SshKerberosCentos5</title><revhistory><revision><revnumber>1</revnumber><date>2012-08-09 22:17:56</date><authorinitials>akrevl</authorinitials></revision></revhistory></articleinfo><section><title>Configuring CentOS 5 for SSH and Kerberos</title><section><title>Get the krb5.conf</title><para>CentOS has the Kerberos tools installed by default. So no need to install those. First we'll need the krb5.conf configuration file. We probably don't need the whole configuration prepared by the CS, but it doesn't hurt to have it around either. Let's steal the file from hulk (sorry, you'll still have to login with a password): </para><screen><![CDATA[sudo scp your_cs_id@hulk:/etc/krb5.conf /etc/krb5.conf]]></screen><para>If you are running as root, you can omit the <emphasis>sudo</emphasis> prefix. </para></section><section><title>Install AFS tools</title><para>OpenAFS repos seem to have a wrong checksum file, so let's get the files we need manually: </para><screen><![CDATA[curl -O http://dl.openafs.org/dl/openafs/1.6.1/rhel-5/x86_64/openafs-krb5-1.6.1-1.el5.x86_64.rpm
curl -O http://dl.openafs.org/dl/openafs/1.6.1/rhel-5/x86_64/openafs-1.6.1-1.el5.x86_64.rpm]]></screen><para>Now install those files: </para><screen><![CDATA[sudo rpm -Uvh openafs-krb5-1.6.1-1.el5.x86_64.rpm openafs-1.6.1-1.el5.x86_64.rpm]]></screen><para>And finally, create a configuration file for the AFS tools: </para><screen><![CDATA[sudo mkdir /usr/vice
sudo mkdir /usr/vice/etc
sudo vim /usr/vice/etc/ThisCell]]></screen><para>Copy the following line into file <emphasis>ThisCell</emphasis>: </para><screen><![CDATA[cs.stanford.edu]]></screen></section><section><title>Configure the SSH client</title><para>Open the SSH client configuration file: </para><screen><![CDATA[sudo vim /etc/ssh/ssh_config]]></screen><para>And make sure that the following is set: </para><screen><![CDATA[Host *
   GSSAPIAuthentication yes
   GSSAPIDelegateCredentials yes]]></screen></section></section></article>