Skip to content

Commit

Permalink
Merge pull request #12747 from pdostal/tw_ssh
Browse files Browse the repository at this point in the history
Fix problem with disabled SSH password login
  • Loading branch information
DimStar77 committed Jun 21, 2021
2 parents 37071b9 + 77a4b88 commit 2225196
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/network/setup_multimachine.pm
Expand Up @@ -16,8 +16,8 @@ use warnings;
use testapi;
use lockapi;
use mm_network 'setup_static_mm_network';
use utils 'zypper_call';
use Utils::Systemd 'disable_and_stop_service';
use utils qw(zypper_call permit_root_ssh);
use Utils::Systemd qw(disable_and_stop_service systemctl);
use version_utils qw(is_sle is_opensuse);

sub is_networkmanager {
Expand Down Expand Up @@ -60,14 +60,19 @@ sub run {
assert_script_run "nmcli connection up '$nm_id'";
}
else {
assert_script_run 'systemctl restart wicked';
systemctl("restart wicked");
}
}

# Set the hostname to identify both minions
assert_script_run "hostnamectl set-hostname $hostname";
assert_script_run "hostnamectl status|grep $hostname";
assert_script_run "hostname|grep $hostname";

# Make sure that PermitRootLogin is set to yes
# This is needed only when the new SSH config directory exists
# See: poo#93850
permit_root_ssh();
}

1;
Expand Down

0 comments on commit 2225196

Please sign in to comment.