SSH Keys
Breadcrumb
-
- FlexLab
- SSH Keys
Applies to: FlexLab
Overview
SSH keys let developers open a secure shell session to FlexSite’s gateway for troubleshooting or running Drush without sharing passwords in chat. Keys are tied to your user account, not a single project.
Key concepts
- SSH key pair — a public key (safe to upload) and private key (stays on your laptop). Generated with
ssh-keygen. - SSH gateway — FlexSite’s controlled entry point; you never receive raw server root passwords.
- Read-only shell — inspect files and logs without write access; higher privileges may require extra scopes.
Steps
- On your computer, run
ssh-keygen -t ed25519and follow prompts (passphrase recommended). - Open Profile → Tokens from the account menu.
- In SSH Keys, click Add SSH key.
- Paste the public key (contents of
id_ed25519.pub, not the private file). - Choose capability (Read-only shell, Drush execution, etc.) and save.
Use with the CLI
flexsite ssh(or your team’s documented alias) connects through the gateway.- Requires a valid token scopes and project Team membership.
Rotation
Delete keys from Tokens when someone leaves the team or replaces a laptop — old keys should not remain trusted.