mirror of
https://github.com/ovh/the-bastion.git
synced 2025-09-07 21:44:28 +08:00
fix: erroneous message in connect.pl
This commit is contained in:
parent
56d4078605
commit
f1e875ca4b
1 changed files with 3 additions and 2 deletions
|
@ -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';
|
||||
|
|
Loading…
Add table
Reference in a new issue