diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-03 11:14:49 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-03 11:14:49 +0200 |
| commit | 77661ef1c646a5ef8e6964afa5571c756d1fd31d (patch) | |
| tree | 49457216796258037c1965474b8c0d4b2d65b6ee /README.md | |
| parent | 36286212ca5a6e7de85fd05338ca70194707841f (diff) | |
Document auth-key fast reconnect usage and config
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 39 |
1 files changed, 39 insertions, 0 deletions
@@ -20,6 +20,45 @@ Installation and Usage * Check out the [DTail Documentation](doc/index.md) +Auth-Key Fast Reconnect +======================= + +DTail supports an optional SSH auth optimization for repeated reconnects. +After a normal authenticated SSH session is established, the client can +register a local public key with `dserver` using an `AUTHKEY` command. The +server stores this key in memory only and checks it before `authorized_keys` +on subsequent connections. + +This reduces repeated hardware-token signing (for example YubiKey-backed SSH +agent keys) while keeping transparent fallback to normal SSH authentication. + +Client options: + +* `--auth-key-path` path to the private key to offer first and register + (default: `~/.ssh/id_rsa`) +* `--no-auth-key` disable auth-key registration/fast-path and use normal SSH + behavior only + +Server configuration (`dtail.json`): + +```json +{ + "Server": { + "AuthKeyEnabled": true, + "AuthKeyTTLSeconds": 86400, + "AuthKeyMaxPerUser": 5 + } +} +``` + +Security notes: + +* Registered keys are stored in memory only (no disk persistence) +* Registration is accepted only over an already-authenticated session +* TTL expiry and per-user key limits bound key lifetime and memory growth +* If fast-path auth is unavailable (restart/expiry/mismatch), DTail falls back + to normal SSH auth automatically + More ==== |
