...
Code Block | ||
---|---|---|
| ||
# Example: mount dtn01:/nfsall SLAC NFS on your desktop/laptop mkdir -p ~/sshfs/nfs sshfs $USER@dtn01.slac.stanford.edu:/nfs ~/sshfs/nfs # Example: mount dtn01:/afs/slac all SLAC AFS on your desktop/laptop mkdir -p ~/sshfs/afs/slac sshfs $USER@dtn01.slac.stanford.edu:/afs/slac.stanford.edu ~/sshfs/afs/slac |
Make sure $USER is your SLAC Unix username. If your local desktop or laptop username is different, replace $USER with your SLAC Unix username.
...
Code Block | ||
---|---|---|
| ||
cd ~/sshfs/nfs/slac cd ~/sshfs/nfs/farm cd ~/sshfs/afs/slac |
To unmount when you are finished:
Code Block |
---|
cd # make sure you # move outside the mount point /bin/fusermount -u ~/sshfs/nfs # CentOS 7 /sbin/umount ~/sshfs/nfs # MacOS cd # make sure you # move outside the mount point /bin/fusermount -u ~/sshfs/afs/slac # CentOS 7 /sbin/umount ~/sshfs/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.
...