Understand revtunnel tunnel lifetime and behavior
masterThe revtunnel plugin has specific lifecycle and security behaviors:
- Tunnel Lifetime: A tunnel exists only as long as the registrar's SSH session is active. When the session ends, the tunnel is torn down. On clean disconnects, the GUID record is deleted. Re-registering does not revive an old GUID; every
ssh -Rcreates a fresh GUID. - Idle Timeout: Records are evicted after 2 hours of inactivity (no traffic or handshake). This triggers a drop of the registrar's SSH connection.
- Authentication:
- Register-side: Always requires public key authentication.
- Connect-side: Public key by default (matching the registrar's key or
CONNECTOR_PUBKEY). IfALLOWPASSWORDwas set, password auth is also supported.
- Offline Errors: If a connection is attempted using a GUID that is known but no longer active, it is refused with an "offline" error.