Credentials
A credential is a reusable login: a user, plus a password or a key, or both. Link it to many hosts and change it in one place, for example a domain account used on many servers.
Add a credential
Section titled “Add a credential”flint cred add domain --user 'CORP\luis' --passwordflint cred add deploy --user deploy --key deploy-key| Flag | Meaning |
|---|---|
--user <user> |
Login user. Required |
--key <name> |
A stored key |
--password |
Ask for the password |
--password-stdin |
Read the password from stdin |
Link it to hosts
Section titled “Link it to hosts”flint host add dc1 --hostname dc1.corp.example --cred domainflint host edit web-01 --cred domainChange or remove a credential
Section titled “Change or remove a credential”flint cred show domainflint cred edit domain --password # new password, asked on the terminalflint cred edit domain --name corp --key "" # rename and unlink the keyflint cred edit corp --no-passwordflint cred listflint cred rm corpThe password is encrypted and never printed; output shows only whether it is set. A credential that a host uses cannot be removed.
Credential or host settings?
Section titled “Credential or host settings?”A host’s own --user, --key and --password come before its credential’s. Link a
credential for the shared login and set a field on the host only where that host
differs. Connecting lists the full order.