fix: erroneous message in connect.pl

This commit is contained in:
Stéphane Lesimple 2021-09-02 08:21:34 +00:00 committed by Stéphane Lesimple
parent 56d4078605
commit f1e875ca4b

View file

@ -161,8 +161,9 @@ if ($header) {
}
if ($header =~ /Permission denied \(keyboard-interactive/) {
push @comments, 'permission_denied';
my $keyboardInteractiveAllowed = OVH::Bastion::config('keyboardInteractiveAllowed')->value;
OVH::Bastion::osh_crit("BASTION SAYS: The remote server ($ip) wanted to use keyboard-interactive authentication, but it's not enabled on this bastion!");
if (!OVH::Bastion::config('keyboardInteractiveAllowed')->value) {
OVH::Bastion::osh_crit("BASTION SAYS: The remote server ($ip) wanted to use keyboard-interactive authentication, but it's not enabled on this bastion!");
}
}
if ($header =~ /Too many authentication failures/) {
push @comments, 'too_many_auth_fail';