This repository provides a lightweight shell script to mount your EPITA AFS home directory over SSHFS. It automates and simplifies the standard EPITA setup process.
- Verifies that
sshfsandkinitare installed. - Obtains a Kerberos ticket for your CRI account.
- Automatically builds the correct AFS path from your login.
- Cleans and mounts the target directory (
~/Desktop/AFS). - Handles temporary files securely and cleans them on exit.
- macOS (uses
diskutilfor unmounting). sshfs(install via Homebrew).kinit(Kerberos tools).- Network access to
ssh.cri.epita.fr.
git clone <repo_url>
cd <repo_name>
chmod +x src/main.sh./src/main.sh <login> <password><login>: your CRI login (e.g.,jdupont)<password>: your CRI password
The AFS directory will be mounted at:
~/Desktop/AFS- The password is temporarily stored in a file with restricted permissions (
chmod 600) and removed on exit. - Passing passwords as command-line arguments may expose them via process inspection tools (
ps). Use with caution.
- Your AFS files will be accessible at
~/Desktop/AFS.
To unmount manually:
diskutil unmount force ~/Desktop/AFS- Ensure your credentials are correct.
- Verify your Kerberos ticket with:
klist- Check that
sshfsandkinitare available in your PATH.