Versions Compared

Key

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

...

this will install the fuse-sshfs RPM which comes from the EPEL software repository (Extra Packages for Enterprise Linux).
The fuse-sshfs dependencies, fuse and fuse-libs, come from the CentOS base software repository.

Usage:

mkdir ~/nfs                                                           # create an empty mount point
sshfs $USER@rhel6-64.slac.stanford.edu:/nfs ~/nfs # mount SLAC NFS from rhel6-64 on your desktop/laptop

mkdir ~/afs/slac                                                      # create an empty mount point
sshfs rhel6-64.slac.stanford.edu:/afs/slac.stanford.edu ~/afs/slac # mount SLAC AFS from rhel6-64 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 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:

...

To unmount when you are finished:

cd                                # make sure you move outside the mount point
/bin/fusermount -u ~/nfs # CentOS 7
/sbin/umount ~/nfs # MacOS

cd # make sure you move outside the mount point
/bin/fusermount -u ~/afs/slac # CentOS 7
/sbin/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.

...