Bug 8612 - missing sshd_config on SLE 16
Summary: missing sshd_config on SLE 16
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: VSM Agent (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: LowPrio
Assignee: Bugzilla mail exporter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-18 13:49 CEST by Madeleine
Modified: 2025-06-26 11:06 CEST (History)
2 users (show)

See Also:
Acceptance Criteria:


Attachments

Description Madeleine cendio 2025-06-18 13:49:21 CEST
When starting a new session with "End existing session" enabled on SLE 16, you get these messages in /var/log/vsmagent.log:

> 2025-06-11 12:44:13 INFO vsmagent.session: Verified connectivity to newly started Xvnc for cendio
> 2025-06-11 12:44:13 INFO vsmagent: Unable to open /etc/ssh/sshd_config for reading: [Errno 2] No such file or directory: '/etc/ssh/sshd_config'


The sshd_config file is located at /usr/etc/ssh/sshd_config on SLE 16. The warning disappears if you copy it to /etc/ssh/:
> sudo cp /usr/etc/ssh/sshd_config /etc/ssh/
Comment 1 Alexander Zeijlon cendio 2025-06-19 14:03:07 CEST
This reminds me of the usrmerge problem we had with Ubuntu 24.04, see bug 8335, and it might be worth considering whether we need to do something similar here.

If this results in a platform-specific note, it certainly feels like we should recommend creating a symlink instead of copying sshd_config so we know we're reading the same file regardless of where it's located.
Comment 2 Samuel Mannehed cendio 2025-06-20 08:27:08 CEST
A platform specific note was added for this:

https://www.cendio.com/thinlinc/docs/platforms/suse/
Comment 3 Samuel Mannehed cendio 2025-06-26 11:06:46 CEST
(In reply to Alexander Zeijlon from comment #1)
> This reminds me of the usrmerge problem we had with Ubuntu 24.04, see bug
> 8335, and it might be worth considering whether we need to do something
> similar here.
> 
> If this results in a platform-specific note, it certainly feels like we
> should recommend creating a symlink instead of copying sshd_config so we
> know we're reading the same file regardless of where it's located.
The difference in this case is that things in /usr/etc shouldn't be modified. A symlink will give the wrong impression. See the following description from the opensuse wiki:

> In the longterm, /etc will only contain configuration files that are host-
> specific or have been modified by the admin. All distribution specific
> configuration files are located below /usr/etc and are not modifiable by the
> admin (with a read-only root filesystem, this would not even be possible).
https://en.opensuse.org/openSUSE:Packaging_UsrEtc#openssh

Note You need to log in before you can comment on or make changes to this bug.