On Sonntag, 25. Dezember 2022 14:21:20 CET Andrei Borzenkov wrote:
On 25.12.2022 15:13, mh@mike.franken.de wrote: [...]
On my machine the error message is shown for every variable.
Which error message? The one you reported originally or the one in bug report in this post?
I tried to do exactly what you suggested - set one variable at a time.
Set it where? On client where you do "ssh server" or on server into which you ssh?
I modified /etc/profile.d/openssh-dbus.sh and added --verbose to dbus-update-activation-environment --systemd --all. Then I copied some of the lines shown and modified /etc/profile.d/openssh-dbus.sh again, so that it looks like if test -n "$SSH_CONNECTION" -a -n "$DISPLAY" then dbus-update-activation-environment --systemd --verbose HOSTTYPE="x86_64" ... fi
From your original post it is not even clear whether you patched client or server and what is running Leap 15.4 - client or server.
The server is running Leap 15.4, the clients are running different flavors of Unix and Windows. I thought it would be clear, that the server is running Leap, because it shows the error messages. Btw. on Tumbleweed the openssh profile still does not exist, so ...
I cannot reproduce this when logging *into* Leap 15.4. Reproducing "invalid variable assignment" is trivial, but that is not your problem.
Nope.
The error in the subject is expected if D-Bus daemon attempts to auto-spawn systemd. But systemd user instance should be already started by pam_systemd.
Yep, systemd-user is running already.
Show output of "ps -fu <your-user>" after logging in via ssh.
UID PID PPID C STIME TTY TIME CMD myuser 2352 1 0 Dez23 ? 00:00:03 /usr/bin/syncthing serve --no- browser --no-restart --logflags=0 myuser 2531 2352 0 Dez23 ? 00:17:30 /usr/bin/syncthing serve --no- browser --no-restart --logflags=0 myuser 10378 26796 0 14:36 pts/1 00:00:00 /bin/ps -fu myuser myuser 26670 1 0 11:09 ? 00:00:00 /usr/lib/systemd/systemd --user myuser 26671 26670 0 11:09 ? 00:00:00 (sd-pam) myuser 26676 26667 0 11:09 ? 00:00:00 sshd: myuser@notty myuser 26701 1 0 11:09 ? 00:00:00 dbus-launch --autolaunch 06de7a452f09bc3e8eb5225dc9fbee00 --binary-synta myuser 26702 1 0 11:09 ? 00:00:00 /usr/bin/dbus-daemon --syslog- only --fork --print-pid 5 --print-address myuser 26788 1 0 11:09 ? 00:00:00 /usr/bin/xconsole -file /dev/ xconsole -bg gainsboro -daemon -display loc myuser 26795 26792 0 11:09 ? 00:00:00 sshd: myuser@pts/1 myuser 26796 26795 0 11:09 pts/1 00:00:00 -bash