diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-07-08 10:55:38 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-07-08 13:18:01 -0700 |
commit | 98d7d839d851fa1eb1d73483cb6d3f492f88eaed (patch) | |
tree | 141d2f7e1c5b88b92986842e0bb5cd4fc015d193 | |
parent | bbb180c3af32d7971222e4bc46858155a0c6f409 (diff) | |
download | chef-98d7d839d851fa1eb1d73483cb6d3f492f88eaed.tar.gz |
Support legacy DSS host keys with knife-ssh
net-ssh 6.0 disabled these legacy keys by default. We need to enable the
support by passing this option.
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/chef/knife/ssh.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/chef/knife/ssh.rb b/lib/chef/knife/ssh.rb index 6611421d85..e89fb93f07 100644 --- a/lib/chef/knife/ssh.rb +++ b/lib/chef/knife/ssh.rb @@ -296,6 +296,10 @@ class Chef opts[:keepalive] = true opts[:keepalive_interval] = ssh_config[:keepalive_interval] end + # maintain support for legacy key types / ciphers / key exchange algorithms. + # most importantly this adds back support for DSS host keys + # See https://github.com/net-ssh/net-ssh/pull/709 + opts[:append_all_supported_algorithms] = true end end |