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:

  1. Copy your public key:
    cat ~/.ssh/id_ed25519.pub
  2. Go to Account Settings > SSH Keys
  3. Click "Add SSH Key"
  4. Paste your public key
  5. Give it a descriptive name
  6. Click "Add Key"

3Connect to Your Site

SSH access is available on Professional WordPress plans:

  1. Go to your WordPress site dashboard
  2. Click "SSH Access" in the sidebar
  3. Copy the connection string
  4. 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.