agent: fix comment parsing
connection: fix bad logic for additional keys when using agent
pageant authentication support