You are not logged in.

#1 2017-12-09 11:13:53

beta990
Member
Registered: 2011-07-10
Posts: 207

[SOLVED] systemd --user not working over SSH

archie@remote ~ $ systemctl --user show-environment
Failed to connect to bus: No such file or directory

When directly logged in without SSH, it works perfectly.

What could be wrong with my setup?
Many thanks!

Last edited by beta990 (2017-12-09 14:26:29)

Offline

#2 2017-12-09 11:23:36

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] systemd --user not working over SSH

Please search before posting, this was covered just a few days ago...

https://bbs.archlinux.org/viewtopic.php?id=232424


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2017-12-09 11:32:20

beta990
Member
Registered: 2011-07-10
Posts: 207

Re: [SOLVED] systemd --user not working over SSH

Thanks, unfortunately this didn't work, still have the no sush file or directory:

$ cat /etc/ssh/sshd_config
Port 22
AuthorizedKeysFile /etc/ssh/authorized_keys/%u .ssh/authorized_keys
UseDNS no
ChallengeResponseAuthentication no
UsePAM yes
PrintMotd no # pam does that
PermitRootLogin no
PasswordAuthentication no
PermitEmptyPasswords no
PrintMotd no
Subsystem sftp /usr/lib/ssh/sftp-server

Match Group sftponly
  ChrootDirectory %h
  X11Forwarding no
  AllowTcpForwarding no
  PermitTTY no
  ForceCommand internal-sftp

Offline

#4 2017-12-09 12:04:22

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] systemd --user not working over SSH

Did you restart the sshd service after making the change?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#5 2017-12-09 14:26:18

beta990
Member
Registered: 2011-07-10
Posts: 207

Re: [SOLVED] systemd --user not working over SSH

@slithery After a fresh reboot, it magically disappeared.
Think all the ssh-sessions really need to be (hard) killed. Anyway working now with the config above.

Thanks for the help. smile

Last edited by beta990 (2017-12-09 14:30:12)

Offline

Board footer

Powered by FluxBB