TRAMP multi-hop connection retry behavior during privilege escalation
TRAMP Connection Retries and Sudo Boundaries Emacs TRAMP handles transient failures by automatically retrying operations based on the tramp-retry-connection-attempts setting. In multi-hop configurations, such as /ssh:user@host|sudo:root@host:/path , TRAMP maintains a cached connection to the primary host and a subprocess for the escalated user. A potential c