Azure / Azure/azure-linux-extensions

Configuration value for OS.SshDir is ignored

Open
#2,029 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
333
Forks
278
Avg merge
2d 9h
Merged PRs (30d)
4

Description

When configuring Azure/walinuxagent for a custom distribution or VM via `waagent.conf`, an option is provided to specify the path to SSH configuration, defaulting to `/etc/ssh` for many distributions. VMAccess and VMBackup introduce unfortunate side-effects when deployed on such a customized system, since they hard-code the paths as `/etc/ssh` and ignore the configuration values entirely.

## Example scenario

### Expected

- Configuring `OS.SshDir=/etc/openssh` in `waagent.conf` results in VMAccess `reset_ssh` resetting the configuration files within `/etc/openssh`.
- Host key configuration refers to configured `/etc/openssh/ssh_host_*_key` when installing defaults.

### Actual

- Configuring `OS.SshDir=/etc/openssh` in `waagent.conf` results in no change, with VMAccess `reset_ssh` resetting the configuration files within `/etc/ssh`.
- Host key configuration refers to hard-coded `/etc/ssh/ssh_host_*_key` when installing defaults.

## Links

https://github.com/Azure/WALinuxAgent/issues/604

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.