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
commit 96ef6482c5
4 changed files with 10 additions and 4 deletions

View file

@ -318,6 +318,8 @@ def base_parser(constants=C, usage="", output_opts=False, runas_opts=False, asyn
default=constants.DEFAULT_HOST_LIST)
parser.add_option('-k', '--ask-pass', default=False, dest='ask_pass', action='store_true',
help='ask for SSH password')
parser.add_option('--private-key', default=None, dest='private_key_file',
help='use this file to authenticate the connection')
parser.add_option('-K', '--ask-sudo-pass', default=False, dest='ask_sudo_pass', action='store_true',
help='ask for sudo password')
parser.add_option('-M', '--module-path', dest='module_path',