Remote Folder (SFTP)
This section explains how to create, configure, and test a Remote Folder data source in DataDios. Remote Folder allows you to connect to file systems on remote servers via SSH/SFTP protocol.
Overview
The Remote Folder data source enables secure access to files and directories on remote Linux/Unix servers. It supports:
- Multiple authentication methods: Password or SSH private keys (RSA, ECDSA, Ed25519, DSA)
- Various file formats: CSV, JSON, Parquet, ORC, Avro, XML, TSV, photos, video, archives, and more
- Hierarchical browsing: Navigate through folder structures
- Metadata extraction: View file attributes and data schemas
Steps to Create and Test a Remote Folder Data Source
Step 1: Create a Data Source
-
Navigate to Data Explorer from the left navigation menu.
-
Click + Add connection in the top-right corner. The Create data source dialog opens.
-
Under Identity, enter a Name for the datasource and select Folder from the searchable Type dropdown.
-
Under Connection Parameters, set Connection Mode to Remote SSH (the other option, Local Folder, gives you your own storage area on the DataDios server, where you upload files, rather than a remote SFTP host).

Step 2: Fill Connection Details
With Connection Mode set to Remote SSH, fill in:
| Field | What to enter | Example |
|---|---|---|
| Host | The remote server's hostname or IP address | myserver.example.com |
| Username | The SSH user to sign in as | ubuntu |
| Auth Type | How to sign in: password, pem_data to paste a private key, or pem_file to upload a key file | pem_data |
| Password | The SSH password. Shown when Auth Type is password. | |
| PEM Data | The private key text, including its -----BEGIN ... KEY----- and -----END ... KEY----- lines. Shown when Auth Type is pem_data. | |
| PEM File | The private key file. Shown when Auth Type is pem_file. | |
| Passphrase | Optional. The key's passphrase, if it has one. | |
| Folder Path | The absolute path of the folder on the remote server | /home/ubuntu/data |
The optional fields are Group (a label for grouping data sources), Object Types (comma-separated file types to include, such as CSV,JSON,PARQUET, or * for all), Addl Params, and Accept unknown host keys. Leave Accept unknown host keys off unless you understand the risk; see Host key verification.
If your deployment has a secret store set up (AWS Secrets Manager or Azure Key Vault), a Select Secret Source field lets the passphrase come from one. Choose Direct Input to type it, or From Secret Store.
DataDios supports multiple SSH key algorithms:
- RSA (most common)
- ECDSA (elliptic curve)
- Ed25519 (modern, recommended)
- DSA (legacy)
Step 3: Test Connection
Click Test Connection to check the details before saving. If it fails, check that the username and password or key are right, that the user can read the folder path, and that pasted key text includes its BEGIN and END lines.
Host key verification (Remote SSH)
A Remote SSH connection only connects to a server whose host key is pinned on the connection. The first Test Connection against a new server shows the key fingerprint it saw. Check it, click Trust & pin this fingerprint, then Create (or Save when you are editing an existing connection). If the server's key later changes, the test says Host key changed and offers Replace pinned fingerprint.
Turning on Accept unknown host keys skips this check, so DataDios trusts whatever key the server presents.
Step 4: Save Data Source
If the test succeeds, click Create. You'll land back on the Sources list with the new Remote Folder connection visible.
Step 5: Explore Data Source Items
Click the connection's name to browse its folders and files. Open a file to see its Metadata and Data Preview tabs.
Supported File Formats
| Format | Extension | Features |
|---|---|---|
| CSV | .csv | Comma-separated values, auto-detect schema |
| TSV | .tsv | Tab-separated values |
| JSON | .json | JSON documents |
| Parquet | .parquet | Columnar storage format |
| ORC | .orc | Optimized Row Columnar format |
| Avro | .avro | Apache Avro data serialization |
| AVSC | .avsc | Avro schema files |
| XML | .xml | XML documents |
| Text | .txt, .text | Plain text files |
| Photos | .png, .jpg, .jpeg, .gif, .webp | Previews inline in Object Data, up to 20 MB per file |
| Video | .mp4, .mov | Stored only — no preview |
| Archives | .zip, .tar, .gz, .7z | Stored only — no preview |
A photo larger than the 20 MB preview limit still uploads and stays stored — DataDios just can't render an automatic preview for it. There is currently no route to retrieve a stored file's original bytes back out of DataDios (video and archives included), so "stored" here means the platform keeps the file, not that it offers a download link.
Unviewable binary formats (legacy image formats like .bmp/.tiff/.svg, audio/video formats
other than mp4/mov, and executable formats) are refused. Creating or uploading objects only works
when the Folder datasource's Connection Mode is set to Local Folder; it is not available
for Remote SSH (SFTP) connections. In Local Folder mode, each user can store up to 100 MB in
total.
Connection Configuration Examples
Example 1: Password Authentication
{
"host": "192.168.1.100",
"username": "datauser",
"password": "SecurePassword123",
"folder_path": "/home/datauser/datasets",
"object_types": "CSV,PARQUET,JSON"
}
Example 2: SSH Private Key (RSA)
{
"host": "myserver.example.com",
"username": "ubuntu",
"pem_data": "-----BEGIN RSA PRIVATE KEY-----\nMIIEpAIBAAKCAQEA...\n-----END RSA PRIVATE KEY-----",
"folder_path": "/var/data/files",
"object_types": "*"
}
Example 3: SSH Private Key with Passphrase (Ed25519)
{
"host": "secure-server.example.com",
"username": "admin",
"pem_data": "-----BEGIN OPENSSH PRIVATE KEY-----\nb3BlbnNzaC1rZXktdjEAAAA...\n-----END OPENSSH PRIVATE KEY-----",
"passphrase": "my-key-passphrase",
"folder_path": "/data/analytics"
}
Best Practices
- Use SSH Keys instead of passwords for enhanced security
- Use Ed25519 Keys for modern, secure, and fast authentication
- Store Credentials in Secret Stores (AWS Secrets Manager, Azure Key Vault) to avoid hardcoding
- Always Test Connection before saving to ensure configuration is correct
- Use Specific Object Types to filter only relevant file types and improve performance
- Organize with Groups for easier management of multiple Remote Folder data sources
- Use Absolute Paths for folder_path to avoid ambiguity
Security Considerations
- All connections are made over SSH (port 22 by default), ensuring encrypted data transfer
- Private keys are stored securely and never exposed in logs
- Use encrypted private keys with passphrases for additional security
- Consider using bastion hosts or jump servers for accessing servers in private networks
Generating SSH Keys
Linux / macOS
Generate Ed25519 Key (Recommended)
ssh-keygen -t ed25519 -C "your-email@example.com"
Generate RSA Key
ssh-keygen -t rsa -b 4096 -C "your-email@example.com"
Copy Public Key to Server
ssh-copy-id username@remote-server
View Private Key (for pasting into DataDios)
cat ~/.ssh/id_ed25519
Windows
Option 1: Using PowerShell (Windows 10/11)
# Generate Ed25519 key
ssh-keygen -t ed25519 -C "your-email@example.com"
# Generate RSA key
ssh-keygen -t rsa -b 4096 -C "your-email@example.com"
Keys are saved to: C:\Users\YourUsername\.ssh\
Option 2: Using Git Bash
ssh-keygen -t ed25519 -C "your-email@example.com"
After Generating Keys
-
Copy public key to server - Add contents of
id_ed25519.pub(orid_rsa.pub) to server's~/.ssh/authorized_keys -
Use private key in DataDios - Copy contents of
id_ed25519(orid_rsa) and paste into PEM Data field
Example: View and copy private key
# Linux/macOS/Git Bash
cat ~/.ssh/id_ed25519
# Windows PowerShell
Get-Content $env:USERPROFILE\.ssh\id_ed25519
When prompted during key generation:
- File location: Press Enter to use default
- Passphrase: Optional but recommended for extra security
Troubleshooting
Common Issues
| Issue | Possible Cause | Solution |
|---|---|---|
| Connection timeout | Server unreachable or firewall blocking | Verify network connectivity and firewall rules |
| Authentication failed | Wrong credentials | Double-check username and password/key |
| Permission denied | User lacks read access | Ensure user has permissions on the folder |
| Key format error | Invalid PEM format | Verify key has proper headers and line breaks |
| File not found | Path doesn't exist | Verify folder_path exists on the remote server |
Key Format Tips
When pasting SSH private keys, ensure:
- The key includes
-----BEGIN ... KEY-----header - The key includes
-----END ... KEY-----footer - Line breaks are preserved (if pasting from web form, the system will auto-fix)