SSH Key Setup
Learn how to register an SSH key with CollabOps to securely use Git.
You can register an SSH key with CollabOps to securely use Git.
Step 1. Check for Existing Keys
Run the following command in your terminal.
ls ~/.sshIf the file id_ed25519.pub already exists, proceed to Step 4.
Step 2. Generate an SSH Key
Run the following command.
ssh-keygen -t ed25519 -C "your_email@example.com"Replace the email after -C with your own email address.
When prompted with the following questions, press Enter to use the default values.
Enter file in which to save the key:
Enter passphrase:Step 3. Verify Key Creation
Check the generated keys using the following command.
ls ~/.sshIf you see the following two files, the key was generated successfully.
id_ed25519 ← Private key (DO NOT SHARE)
id_ed25519.pub ← Public key (to be registered)Never share your private key (id_ed25519) with anyone.
Step 4. Copy the Public Key
Mac
pbcopy < ~/.ssh/id_ed25519.pubWindows (PowerShell / Git Bash)
cat ~/.ssh/id_ed25519.pub | clipLinux
cat ~/.ssh/id_ed25519.pubCopy the output value.
Step 5. Register the Key in CollabOps
Go to the SSH key registration page. https://collabops.ai/collabops-one/settings/ssh/new
Paste the copied public key.
Save the key.
Step 6. Test the Connection
Run the following command to test the SSH connection.
ssh -T git@collabops.aiIf the following message appears, the setup is successful.
Hi USERNAME! You've successfully authenticated.During the first connection, you may see Are you sure you want to continue connecting?. Type yes to continue.
Troubleshooting
Permission denied (publickey)
Add the key to the ssh-agent.
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519Windows PowerShell
Run the following commands in Administrator mode first.
Get-Service ssh-agent | Set-Service -StartupType Automatic
Start-Service ssh-agent
ssh-add ~/.ssh/id_ed25519AI Agent Cannot Use Git When Passphrase Is Set
If your SSH key has a passphrase, every Git command will prompt for the passphrase. This is fine when you are using the terminal directly, but AI Agents (e.g., Cursor, Windsurf, Claude Code) cannot respond to passphrase prompts, causing SSH-based Git operations like git clone, git push, and git pull to fail.
Enter passphrase for /Users/you/.ssh/id_ed25519: ← Agent cannot respondTo resolve this, register the key with the ssh-agent using ssh-add. Once registered, SSH authentication works without a passphrase for the duration of the session.
Mac
# Start ssh-agent (skip if already running)
eval "$(ssh-agent -s)"
# Register the key — enter the passphrase once
ssh-add ~/.ssh/id_ed25519To persist the passphrase across reboots, save it to the macOS Keychain.
ssh-add --apple-use-keychain ~/.ssh/id_ed25519Add the following to ~/.ssh/config so the Keychain is used automatically without the --apple-use-keychain flag.
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_ed25519Windows PowerShell
Run in Administrator mode.
Get-Service ssh-agent | Set-Service -StartupType Automatic
Start-Service ssh-agent
ssh-add ~/.ssh/id_ed25519Linux
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519Use ssh-add -l to verify which keys are currently registered with the ssh-agent.
Registered keys are cleared when the ssh-agent session ends. If you open a new terminal or restart the system, run ssh-add again. On macOS, Keychain integration restores keys automatically.
Supported Algorithms
| Algorithm | Command | Notes |
|---|---|---|
| ed25519 (Recommended) | ssh-keygen -t ed25519 | Fastest and most secure |
| ECDSA (NIST P-256) | ssh-keygen -t ecdsa -b 256 | |
| RSA | ssh-keygen -t rsa -b 4096 | 4096-bit recommended |