From 112e4775b1d571bae8c68c56721151e90e0e8da1 Mon Sep 17 00:00:00 2001 From: Dominik Richter Date: Wed, 4 Jun 2014 15:02:51 +0200 Subject: [PATCH] remove host keys from checks see discussion here: https://github.com/TelekomLabs/tests-ssh-hardening/issues/13\#issuecomment-45083461 Signed-off-by: Dominik Richter --- default/serverspec/ssh_spec.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/default/serverspec/ssh_spec.rb b/default/serverspec/ssh_spec.rb index 116a43a..7ae0e45 100644 --- a/default/serverspec/ssh_spec.rb +++ b/default/serverspec/ssh_spec.rb @@ -50,10 +50,6 @@ its(:content) { should match(/^ListenAddress .*/) } end - describe file('/etc/ssh/sshd_config') do - its(:content) { should match(/^HostKey*/) } - end - describe file('/etc/ssh/sshd_config') do its(:content) { should match(/^Protocol 2$/) } end