Authenticate once with MFA (Duo, TOTP, YubiKey), then share that one SSH connection across every terminal tab, VS Code Remote-SSH session, rsync, scp and git. A guide to ControlMaster/ControlPersist, plus a wrapper CLI and a disconnect watcher for macOS and Linux.
macos linux dotfiles ssh devops hpc rsync sysadmin ssh-config mfa two-factor-authentication multiplexing duo remote-ssh vscode-remote controlmaster controlpersist
-
Updated
Aug 18, 2026 - Shell