Skip to content

Commit

Permalink
tests/vm/freebsd: Reload the sshd configuration
Browse files Browse the repository at this point in the history
After console_sshd_config(), the SSH server needs to be nudged to pick
up the new configs. The scripts for the other BSD flavors already do
this with a reboot, but a simple reload is sufficient.

Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Message-ID: <20240206002344.12372-3-iii@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
  • Loading branch information
iii-i authored and huth committed Feb 6, 2024
1 parent 7f0bf5e commit fceffd6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/vm/freebsd
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ class FreeBSDVM(basevm.BaseVM):
prompt = "root@freebsd:~ #"
self.console_ssh_init(prompt, "root", self._config["root_pass"])
self.console_sshd_config(prompt)
self.console_wait_send(prompt, "service sshd reload\n")

# setup virtio-blk #1 (tarfile)
self.console_wait(prompt)
Expand Down

0 comments on commit fceffd6

Please sign in to comment.