setup-ssh: Also use keys from the ssh-agent
authorIustin Pop <iustin@google.com>
Sun, 22 Aug 2010 06:37:32 +0000 (08:37 +0200)
committerIustin Pop <iustin@google.com>
Mon, 23 Aug 2010 09:47:50 +0000 (11:47 +0200)
commit3dc66ebc5af4807caa5bee189eac73ef7d22b0e2
tree799b720ed62efb50837d3270509681f831693bc4
parent7a6a27af496f4cc477c4a9bc08fbd42e27d3f3ca
setup-ssh: Also use keys from the ssh-agent

Currently, setup-ssh only uses one disk-based key. This means that any
setup where we use keys from ssh-agent (which do not necessarily exist
on disk) will break when moving from the old method to setup-ssh.

This patch moves the SSH key handling to separate functions, and uses
both the disk key (first) and the agent keys for login.

The patch also fixes the root_logger setup level (I tried to hard to
reduce noise and broke the debug level, sorry).

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
tools/setup-ssh