Issue login via SSH

I would like to know whether it’s possible to issue a login command on the normal system runlevel (Control + Alt + F7) from a SSH session, while the machine is waiting at the login screen (SDDM).

My PC is configured to restart in case of a power failure, however auto-login is disabled for security reasons. It’s possible that I may be away from home and want to log my computer back in remotely, but since I’m not physically around to type my password into the login manager I’d have to do this via SSH. Is there a console command that can be used from a different session to trigger a normal login?

Additionally, is it possible to tell Plasma to instantly lock the screen afterward? I would not want my computer staying unlocked while I’m away, including the few minutes it takes for auto-lock to do this automatically after an idle period.

SDDM is well known to have problems with SSH.
Change the Display Manager from SDDM to LightDM. One way to do this is by using the YaST “/etc/sysconfig editor” module.

TSU

Since SDDM is the default and most optimized, I was preferring to keep it if possible. No way to login via SSH with it as the display manager?

Not today.

TSU

Hi
Look at running NoMachine for Linux? You would need to look at changing the port on your router and forward to the machine (assuming it’s got a static ip address?).

I remember there was a root command called loginctl which could be used to lock or unlock the session at least. I wonder if that could also be an option.

xpra allegedly allows “shadowing” of remote display (https://www.xpra.org/trac/wiki/Usage#CloningShadowinganexistingdisplay) but I am not sure whether this will work with locked display.