add --private-key option and related infrastructure to make paramiko work

with a private key file - not just an agent or pw
This commit is contained in:
Seth Vidal 2012-05-14 16:14:38 -04:00
parent 8e2528eb83
commit 96ef6482c5
4 changed files with 10 additions and 4 deletions

View file

@ -87,8 +87,8 @@ class ParamikoConnection(object):
username=user,
allow_agent=True,
look_for_keys=True,
key_filename=self.runner.private_key_file,
password=self.runner.remote_pass,
# key_filename=None, # TODO: allow this to be passed in
timeout=self.runner.timeout,
port=self.port
)