agent: SSH support fix.