SSHFS
From FarmShare
SSHFS is a FUSE module that can mount a remote directory available over SSH (using SFTP). Once mounted, you can interact with the contents of the remote directory as if it were a local directory. This can make accessing your FarmShare home and scratch directories as convenient as using local files.
On Linux systems you should install the sshfs
or fuse-sshfs
package, as appropriate for your distribution. On macOS you can use Homebrew to install the osxfuse
and sshfs
packages, or download FUSE and SSHFS installers from the FUSE for macOS project.
brew cask install osxfuse brew install sshfs
After installing SSHFS, you'll need to create one or more (empty) directories to use as mount points for your remote files. The sshfs
command is used to mount a directory; see man sshfs
for details, but if you have used scp
or rsync
the syntax should be familiar.
mkdir -p farmshare/home farmshare/scratch sshfs -o idmap=user sunetid@rice.stanford.edu:/home/sunetid farmshare/home sshfs -o idmap=user sunetid@rice.stanford.edu:/farmshare/user_data/sunetid farmshare/scratch
You'll be asked to authenticate. Once mounted, you can list, copy, move, or delete files and directories as usual. You can disconnect from the directories using the umount
or fusermount -u
command.