diff options
author | elijah <elijah@riseup.net> | 2014-03-07 01:20:24 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2014-03-07 01:20:24 -0800 |
commit | 16c6cbae4f155c6f8c626fc69cca41ebee1a9e05 (patch) | |
tree | b0dc8c4d08b2db979ddad234d68a3ca1e6436b34 /lib/leap_cli/commands | |
parent | 5b72aefd2d317c90198bd6d3f711cbb407b5b6c2 (diff) |
added IdentitiesOnly ssh option to both ssh command and ruby Net::SSH options -- this should prevent ssh from trying all the keys in ~/.ssh. you might still get the error "Too many authentication failures" if you have a ton of keys activated in ~/.ssh/config
Diffstat (limited to 'lib/leap_cli/commands')
-rw-r--r-- | lib/leap_cli/commands/shell.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/leap_cli/commands/shell.rb b/lib/leap_cli/commands/shell.rb index 40990e9..c7d14f8 100644 --- a/lib/leap_cli/commands/shell.rb +++ b/lib/leap_cli/commands/shell.rb @@ -43,7 +43,8 @@ module LeapCli; module Commands "-o 'UserKnownHostsFile=/dev/null'" ] if node.vagrant? - options << "-i #{vagrant_ssh_key_file}" + options << "-i #{vagrant_ssh_key_file}" # use the universal vagrant insecure key + options << '-o IdentitiesOnly=yes' # only use explicitly configured keys options << "-o 'StrictHostKeyChecking=no'" # blindly accept host key and don't save it (since userknownhostsfile is /dev/null) else options << "-o 'StrictHostKeyChecking=yes'" |