agent: Fix UPDATESTARTUPTTY for ssh.