Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

mkdir ~/nfs
sshfs $USER@rhel6-64.slac.stanford.edu:/nfs ~/nfs # mount SLAC NFS on your desktop/laptop
mkdir ~/afs/slac
sshfs rhel6-64.slac.stanford.edu:/afs/slac.stanford.edu ~/afs/slac # mount SLAC AFS on your desktop/laptop

Make sure $USER is your SLAC Unix username.  If your local desktop or laptop username is different, replace $USER with your SLAC Unix username.
The above first SSHFS command above will mount rhel6-64.slac.stanford.edu:/nfs at your local mount point.  now you can access SLAC's /nfs/slac/... or /nfs/farm/... like this:

cd ~/nfs/slac
cd ~/nfs/farm
cd ~/afs/slac

To unmount when you are finished:

cd
fusermount -u ~/nfs # For CentOS 7
umount ~/nfs # For MacOS

cd
fusermount -u ~/afs/slac # CentOS 7
umount ~/afs/slac # MacOS

Additional Notes:

  • For RHEL 6 and CentOS 6, you may need to add your username to the local fuse group in the /etc/group file, or else use sudo with the sshfs and fusermount commands.
  • If you use SSHFS to mount remote SLAC AFS space, be aware that the AFS token you get during authentication lasts for 25 hours.You may be able to use 'krenew' on the target SLAC node you connected to with sshfs.  This could allow you to automatically renew your TGT and AFS token for up to 7 days.  You'll need to find your TGT in /tmp on the SLAC host, and set your KRB5CCNAME, then run krenew with -b and -t.

See also:

https://confluence.slac.stanford.edu/display/SCSPub/Samba+Unix+Storage+Access

...