You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Amend password and sshd logic to support Mariner OS (#156)
* Adding OS check to support other distros with different sshd configuration paths
* Altering update logic for Mariner -- rename causing linking device issue as file moves and it can't find it
* Refactor SSH configuration logic to dynamically select the appropriate configuration path based on filesystem structure and replace distro-specific file operations with universal temp file handling using copy/remove_file.
* Refactor update_sshd_config logic: eliminate temp files, simplify write process
Replaced tempfile-based logic with direct file operations for updating sshd_config.
The function now reads the file, updates or appends the necessary configuration,
and writes it back securely with appropriate permissions (0o600). This simplifies
the implementation and avoids potential cross-device issues with temporary files.
* Removing temp dependency
* Amending config line to make it clear the PasswordAuthentication was added by azure-init, and removing the file permissions settings
* Adding another added by azure-init comment and making sure file permissions line is deleted.
0 commit comments