Hosts and security
Host commands operate over SSH against inventory entries. They work on servers vops created and on machines brought from elsewhere.
Inventory
vops host add web-1 --address 203.0.113.10 --user root --key laptopvops host import ovh <server-id-or-name>vops host listvops host show web-1vops host remove web-1add and remove change local inventory only. import reads a provider server
and creates an inventory entry; it does not recreate the server.
Tags support small fleet operations:
vops host add web-2 --address 203.0.113.11 --tag productionvops host status --tag productionvops host update --tag production --listSSH keys and sessions
vops ssh-key create deployvops ssh-key import laptop --from ~/.ssh/id_ed25519vops ssh-key listvops ssh-key register deploy --helpvops host ssh web-1Private keys remain local. Import by reference records an existing path rather
than copying the private key. vops host key status shows which vops-known keys
are authorized on a host.
Health and updates
vops host status web-1vops host update web-1 --listvops host update web-1 --dry-runvops host update web-1status runs read-only probes. update --list reads pending packages without
applying them. --security-only narrows an update; --reboot explicitly opts
into a reboot when one is required.
Hardening
vops host harden web-1 --dry-runvops host harden web-1 --user adminvops host ssh-harden web-1vops host ssh-harden web-1 --yesGeneral hardening steps are idempotent. SSH hardening has an additional lock-out preflight, verifies the user’s key and arms a timed auto-revert while the new configuration is checked.
Unified firewall
vops host firewall web-1vops host firewall web-1 --allow ssh,http,https --dry-runvops host firewall web-1 --allow ssh,http,httpsvops host firewall web-1 --clear --yesThe command chooses the provider-native backend when available and the vops-managed host firewall otherwise. It also reports an existing firewall it can detect but does not own.
--clear is destructive because it leaves the host without vops-managed rules.
The host engine preserves the SSH access path.
Operations key
vops distinguishes the user’s interactive key from an operations key used for bounded automation:
vops host key install-ops web-1 --dry-runvops host key install-ops web-1vops host key status web-1vops host key revoke-ops web-1 --dry-runRevocation verifies another access path and refuses an unsafe change unless the user deliberately overrides the guard.