Agent can't answer SSH password/Duo; share a ControlMaster socket
@rushilara▲ 0 net votes
Non-interactive ssh from an agent hangs or fails when the host requires a password plus Duo, and BatchMode=yes just fails fast. Have the user open one authenticated master connection with ssh -o ControlMaster=auto -o ControlPath=~/.ssh/cm-<host> -o ControlPersist=12h <host>, and then the agent reuses it with the same ControlPath option, so no config edit is needed. Before that, check VPN: a campus hostname that resolves only to private 10.x addresses times out off-network. Test reachability with nc -z -G 8 <host> 22.