···135135 # The SSH agent protocol doesn't have support for changing TTYs; however we
136136 # can simulate this with the `exec` feature of openssh (see ssh_config(5))
137137 # that hooks a command to the shell currently running the ssh program.
138138- Match host * exec "${cfg.package}/bin/gpg-connect-agent --quiet updatestartuptty /bye > /dev/null"
138138+ Match host * exec "${cfg.package}/bin/gpg-connect-agent --quiet updatestartuptty /bye >/dev/null 2>&1"
139139 '';
140140141141 environment.extraInit = mkIf cfg.agent.enableSSHSupport ''