Managing SSH Keysο
ENC relies heavily on SSH for secure communication. Proper key management ensures a smooth experience.
Generating an SSH Keyο
If you do not have an SSH key pair, generate one using ssh-keygen:
ssh-keygen -t ed25519 -C "your_email@example.com"
Key Type: We recommend
ed25519for security and performance.File Location: Default is usually
~/.ssh/id_ed25519.
Adding Keys to ENCο
The ENC CLI needs to know which private key to use for the connection.
Option 1: Automated Setup (Recommended)ο
The easiest way is to let ENC handle it. Log in with your password and run:
enc setup ssh-key
This will: * Generate a secure key pair locally (if none exists). * Send the public key to the server over the encrypted session. * Configure your local client to use this key automatically.
Option 2: Using SSH Agentο
Add your key to the SSH agent for automatic authentication:
ssh-add ~/.ssh/id_ed25519
Option 3: Configuring Manual Keysο
Tell ENC explicitly which key file to use:
enc config init
# When prompted for "path to ssh key", enter: /Users/you/.ssh/id_ed25519