setup-ssh: try to use key auth first
authorIustin Pop <iustin@google.com>
Fri, 20 Aug 2010 13:12:02 +0000 (15:12 +0200)
committerIustin Pop <iustin@google.com>
Fri, 20 Aug 2010 14:41:19 +0000 (16:41 +0200)
commit7a6a27af496f4cc477c4a9bc08fbd42e27d3f3ca
tree150b0d625562b3d2d0f00a26d6080e486c40fc37
parent5c654e959cc0cd7922b2c0abf354afad40f922c3
setup-ssh: try to use key auth first

This patch changes the setup-ssh workflow to try key authentication
first, and then fall-back to password authentication. The password is
also read lazily, with no prompts if we can authenticate via keys.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
tools/setup-ssh