FTP Access
Oceanum Storage supports the FTP protocol for traditional file transfer operations. This is useful for tools and systems that don’t support S3 but have FTP capabilities.
Connection Details
Section titled “Connection Details”| Setting | Value |
|---|---|
| Host | ftp.oceanum.io |
| Port | 21 (standard FTP) |
| Protocol | FTP with TLS (FTPS) |
Authentication
Section titled “Authentication”FTP access uses your organisation name and Datamesh token:
- Username: Your organisation name (e.g.,
my-org) - Password: Your Datamesh token
To obtain your Datamesh token, see the Token documentation.
Command Line FTP
Section titled “Command Line FTP”Using lftp (Recommended)
Section titled “Using lftp (Recommended)”lftp provides a robust FTP client with scripting capabilities:
# Install lftp# Ubuntu/Debian: sudo apt install lftp# macOS: brew install lftp
# Connect (you will be prompted for password/token)lftp -u my-org ftp.oceanum.io
# Or with explicit TLSlftp -e "set ftp:ssl-force true" -u my-org ftp.oceanum.ioCommon lftp commands:
# List filesls
# Change directorycd my-bucket/data
# Upload a fileput localfile.nc
# Download a fileget remotefile.nc
# Mirror a directory (upload)mirror -R ./local-dir remote-dir
# Mirror a directory (download)mirror remote-dir ./local-dir
# ExitbyeUsing curl
Section titled “Using curl”# List directory contentscurl -u my-org:$DATAMESH_TOKEN ftp://ftp.oceanum.io/
# Upload a filecurl -T localfile.nc -u my-org:$DATAMESH_TOKEN ftp://ftp.oceanum.io/my-bucket/data/
# Download a filecurl -u my-org:$DATAMESH_TOKEN ftp://ftp.oceanum.io/my-bucket/data/file.nc -o file.ncFTP Clients
Section titled “FTP Clients”FileZilla
Section titled “FileZilla”- Open FileZilla
- Go to File > Site Manager
- Click New Site
- Configure:
- Host:
ftp.oceanum.io - Port:
21 - Protocol: FTP - File Transfer Protocol
- Encryption: Require explicit FTP over TLS
- Logon Type: Normal
- User: Your organisation name
- Password: Your Datamesh token
- Host:
- Click Connect
Cyberduck
Section titled “Cyberduck”- Open Cyberduck
- Click Open Connection
- Select FTP-SSL (Explicit AUTH TLS)
- Enter:
- Server:
ftp.oceanum.io - Username: Your organisation name
- Password: Your Datamesh token
- Server:
- Click Connect
Scripting with FTP
Section titled “Scripting with FTP”For automated file transfers, you can create FTP scripts:
#!/bin/bashlftp -u $OCEANUM_ORG,$DATAMESH_TOKEN ftp.oceanum.io << EOFcd my-bucket/dataput newdata.ncbyeEOFOr using a .netrc file for credentials:
machine ftp.oceanum.iologin my-orgpassword your-datamesh-tokenThen:
lftp ftp.oceanum.io -e "put file.nc; bye"Limitations
Section titled “Limitations”Compared to the S3 API, FTP access has some limitations:
- No support for presigned URLs
- No multipart uploads (large files may be slower)
- Directory listing may be slower for buckets with many files
- No direct bucket creation (use the UI or S3 API)
For high-performance or programmatic access, consider using the S3 API instead.