AFS + Kerberos on MacOS

CERN provides AFS access to its remote machines. When you log in via SSH you are directed to your own personal folder in the AFS filesystem. It turns out you can mount the remote AFS filesystem on your local machine and “skip” the SSH step, treating the folder as if it were local (SSHFS-style). Once you have SSH + Kerberos + keytab files configured, you can use the steps below to install and use AFS on MacOS.

Steps to install and use AFS on MacOS:

  1. Visit this website to download and install OpenAFS: OpenAFS will mount the AFS filesystem locally on the Mac.
  2. The installation will ask for a default cell name. For CERN, this is
  3. You should have a Kerberos configuration file (krb5.conf) already updated from using SSH + Kerberos at CERN. It should have the right configuration to accept AFS tickets. If not follow this post to get it done.
  4. Make sure to include the option —afslog in your kinit command if you want to use AFS. After you obtain a Kerberos ticket, run the command aklog, which should you grant you an AFS token. Type tokens to check if this worked.
  5. You should now have an AFS token. You should also have an AFS folder at /afs/ that you can navigate as if it were a local folder.

For more info on AFS at CERN, see, and For AFS on Macs, see and

Associate Research Scholar / Dicke Fellow in Physics

I search for dark matter.