Back to Documentation
Security
SSH Keys
Connect securely to your WordPress sites using SSH keys. No passwords needed.
1Generate an SSH Key
Create a new SSH key pair on your computer:
# Generate a new key (press Enter for defaults)
ssh-keygen -t ed25519 -C "your-email@example.bericanlabs.com"
# Or use RSA if ed25519 isn't supported
ssh-keygen -t rsa -b 4096 -C "your-email@example.bericanlabs.com"
This creates two files: a private key (keep secret) and a public key (.pub file).
2Add Key to Berican Labs
Add your public key to your account:
- Copy your public key:
cat ~/.ssh/id_ed25519.pub - Go to Account Settings > SSH Keys
- Click "Add SSH Key"
- Paste your public key
- Give it a descriptive name
- Click "Add Key"
3Connect to Your Site
SSH access is available on Professional WordPress plans:
- Go to your WordPress site dashboard
- Click "SSH Access" in the sidebar
- Copy the connection string
- Connect from your terminal:
ssh yoursite@ssh.bericanlabs.com
4SSH Config
Add an alias for easier connections:
# Add to ~/.ssh/config
Host mysite
HostName ssh.bericanlabs.com
User yoursite
IdentityFile ~/.ssh/id_ed25519
# Now connect with:
ssh mysite
5Security Best Practices
Keep your SSH keys secure:
- Never share: Your private key should never leave your computer
- Use passphrases: Add a passphrase when generating keys
- Rotate regularly: Generate new keys periodically
- Remove unused: Delete keys you no longer need
- One key per device: Use different keys for different computers
If compromised: Immediately remove the key from your account and generate a new one.