You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 14 Next »

SSHFS allows you mount remote SLAC Unix storage on your local desktop or laptop.  You can use SSHFS from anywhere (eg, home or remote network).

Authentication is done using your SLAC Unix username and password.

SSHFS uses the SFTP protocol and SSH authentication.  See https://github.com/libfuse/sshfs for more information.

 


 

CentOS 7 Installation:

sudo yum install sshfs

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
sshfs $USER@rhel6-64.slac.stanford.edu:/nfs ~/nfs

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 SSHFS command 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

To unmount when you are finished:

cd
fusermount -u ~/nfs # For CentOS 7
umount ~/nfs # For 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

 

 

  • No labels