Skip to content

Commit

Permalink
Add custom sshd config instead of changing value
Browse files Browse the repository at this point in the history
The 60-cloudimg-settings.conf exist on new LXD with
"PasswordAuthentication no" so we need to define our own config file.
  • Loading branch information
rgildein committed Apr 19, 2024
1 parent 2d8bc20 commit c7463d1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/tests/functional/tests/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ def set_ssh_password_access_on_backup_host():
"""Configure ssh access with password on backup host."""
backup_host_unit = _get_unit("backup-host")
command = (
"sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/' "
"/etc/ssh/sshd_config && "
'echo "PasswordAuthentication yes" > 01-test-settings.conf &&'
"service sshd reload"
)
result = zaza.model.run_on_unit(backup_host_unit.name, command, timeout=15)
Expand Down

0 comments on commit c7463d1

Please sign in to comment.