Overview

The clusters support secure file transfers with SSH-based tools: rsync, scp, and sftp. All transfers require DUO two-factor authentication.

Recommended: Connect via Stony Brook VPN first to avoid multiple authentication prompts during transfers.

scp โ€” simple one-off transfers

scp file1.txt file2.txt your_netid@login.seawulf.stonybrook.edu:/gpfs/home/your_netid/
scp your_netid@login.seawulf.stonybrook.edu:/gpfs/home/your_netid/output.txt ./

# wildcards and brace expansion
scp *.txt your_netid@login.seawulf.stonybrook.edu:subdir
scp your_netid@login.seawulf.stonybrook.edu:'/path/{a,b,c}.txt' ./

Quotes around the remote path ensure brace expansion happens on the remote server. Bundle multiple files into a single command when possible.

rsync โ€” resumable, efficient

rsync myfolder/ your_netid@login.seawulf.stonybrook.edu:/gpfs/home/your_netid/myfolder/
rsync your_netid@login.seawulf.stonybrook.edu:/gpfs/projects/SmithGroup/data ./data

Use rsync for large files, interrupted transfers that need resuming, directories with many files, or when you only want to transfer changes โ€” it sends only file differences.

sftp โ€” interactive browsing

sftp your_netid@login.seawulf.stonybrook.edu
sftp> cd /gpfs/home/your_netid
sftp> get myfile.txt
sftp> put localfile.txt
sftp> ls
sftp> bye

Graphical options for Windows

  • MobaXterm (recommended) โ€” create a dedicated SFTP session (New Session โ†’ SFTP) and drag-and-drop between panels. Avoid the SSH-session sidebar browser: it triggers repeated authentication prompts.
  • WinSCP โ€” SFTP protocol, host login.seawulf.stonybrook.edu, your NetID; drag and drop.
  • Open OnDemand โ€” browser-based upload/download to any directory (home, scratch, project).
Troubleshooting: Connection hanging or missing prompts? Configure default devices at Stony Brook's DUO self-service portal, or set DUO_PASSCODE in your ~/.bashrc (see the DUO page).
Applies to All clusters