You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Auto-generate SSH keys for GitHub access during upload #19
When a user tries to upload a dataset, the CLI checks for GitHub SSH access as a prerequisite:
nemar dataset upload ./ds002680 --name "My Dataset"
Prerequisites check failed
- GitHub SSH access not configured. Add your SSH key...
This requires users to:
Generate an SSH key manually
Add it to their GitHub account
Configure SSH properly
This is a significant barrier for users who are not familiar with SSH or GitHub configuration. Many users use HTTPS for Git operations and have never set up SSH keys.
Proposed Solution
The CLI should automatically handle SSH key management:
During nemar auth login or first upload:
Check if SSH access to GitHub works
If not, generate a dedicated SSH key pair for NEMAR (~/.ssh/nemar_ed25519)
Register the public key with GitHub via the API (using the user's GitHub PAT from backend)
Configure SSH to use this key for github.com (via ~/.ssh/config)
Key characteristics:
Use Ed25519 algorithm (modern, secure, compact)
Store in ~/.ssh/nemar_ed25519 (separate from user's existing keys)
Add SSH config entry to use this key for GitHub
Backend can register the key via GitHub API on user's behalf
User experience goal:
Once a user has an API key, they should be able to upload immediately without any manual SSH/GitHub configuration.
This issue will be partially implemented, with providing an SSH public key and guiding the user on how to add it to their GitHub account. The full implementation will be addressed in issue 20
Activity
feat: add setup-ssh command for streamlined GitHub SSH configuration
neuromechanist commentedon Jan 16, 2026
This issue will be partially implemented, with providing an SSH public key and guiding the user on how to add it to their GitHub account. The full implementation will be addressed in issue 20
feat: streamline setup with platform-specific guidance and SSH helper (…
style: drop redundant JSDoc on new helpers
Add --resume, --update, and BIDS entity filters to dataset download (#…