SSHFS on SeaWulf

SSHFS File Access

SSHFS allows you to mount directories from SeaWulf on your local machine over SSH. This lets you access, edit, and manage remote files as if they were stored locally, without needing a dedicated file transfer program.

Using SSHFS on Linux and macOS

Installation

On Linux: Install SSHFS from your package manager:

sudo apt install sshfs

or

sudo yum install sshfs

On macOS: Install both "FUSE for macOS" and "SSHFS" from the osxfuse website: https://osxfuse.github.io/

macOS FUSE download page showing FUSE for macOS and SSHFS download buttons

Mounting Directories

Create an empty directory to use as the mount point:

mkdir ~/ssh_mnt

Mount your SeaWulf directories with the following command:

sshfs -o reconnect,auto_cache <username>@login.seawulf.stonybrook.edu:<path> <mount_point>

You'll be prompted for your SeaWulf password. After authentication, the remote path will be accessible at your local mount point.

File browser window showing mounted SeaWulf directories accessible like local folders Terminal window showing SSHFS mount command execution and file listing

Unmounting

When you're finished, unmount the directory with:

fusermount -u <mount_point>

or

sudo umount <mount_point>

Note: If you get an error like "Transport endpoint not connected", unmount the directory and try mounting again.

Using SFTPNetDrive on Windows

Installation

On Windows, use SFTPNetDrive, which is free for non-commercial use and provides similar functionality.

SFTPNetDrive download page

Mounting Directories

After installing SFTPNetDrive, enter your SeaWulf login credentials. Your home directory will be mounted at a new drive letter.

SFTPNetDrive connection dialog showing fields for server address, username, and authentication settings

Accessing Directories Outside Home

To access files outside your home directory (such as your scratch directory), configure SFTPNetDrive to mount the root directory:

  1. Open the Advanced Settings
  2. Go to the Drive tab
  3. Configure the root mount point
SFTPNetDrive advanced settings dialog showing Drive tab configuration options

When mounted this way, your home directory will be at (drive letter):\gpfs\home\[homedir], allowing you to navigate to other areas on gpfs like your scratch directory.