I'm quite familiar with how sdm configures sshAs expected - the failure you're seeing is that your direct SSH session isn't setting the full range of environment variables you might expect.
I'm not familiar with how SDM performs its configuration - but it's entirely possible that a modification to sshd_config or similar has resulted in the sessions created by OpenSSH having only a subset of your full environment.
I do, however, expect this to work out of the box on an unmodified Raspberry Pi OS installation - and I've just confirmed that ssh on my local Raspberry Pi 5 is behaving in this manner.

Specifically, by default, this is how it enables ssh:
Code:
systemctl enable ssh systemctl enable sshswitch
I haven't looked into rpi-connect yet WRT sdm, was waiting for things to settle down, which seems like has now been achieved.
Statistics: Posted by bls — Wed Aug 21, 2024 4:39 pm