SSH Keys
LaraEnv can generate and import SSH keys on a per-host basis. Keys and the auto-managed known_hosts file live under C:\laraenv\ssh\.
Generating a key
Generate a new key pair for a host and pick an algorithm:
- ED25519 — recommended.
- RSA-4096
- ECDSA-P256
The key pair is saved under C:\laraenv\ssh\<host>\ — for example C:\laraenv\ssh\<host>\id_ed25519 and C:\laraenv\ssh\<host>\id_ed25519.pub.
After generation, the public key is copied to your clipboard so you can paste it into the server's ~/.ssh/authorized_keys. Once it's installed on the server, the matching host can authenticate with key auth (see SSH Hosts).
Importing an existing key
If you already have a key, you can import it instead of generating one:
- Pick a key file from disk, or
- Paste PEM/OpenSSH text directly.
Save it for the host, and it becomes available as that host's key reference.
known_hosts
LaraEnv auto-manages known_hosts at C:\laraenv\ssh\known_hosts. When you connect to a new server, its host key is accepted and recorded for you, so you don't have to manage trust entries by hand.
Choosing a key when cloning over SSH
When you clone a project over SSH, you choose which saved key to use for the Git remote. Make sure the host has a generated or imported key first, and that its public key is installed on the server. See Creating projects.