Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

plasma-greeter-remote-login

What It Does

Automates login at the KDE Plasma greeter using ydotool, allowing remote GUI access (e.g. for Sunshine) after reboot or logout.

Why

When using Sunshine for remote streaming, the server cannot access a Wayland session until a user logs in.

This script allows logging into the Plasma greeter remotely via SSH by simulating keyboard input using ydotool. I've also just recently added support for unlocking kscreenlocker.

Requirements

  • KDE Plasma Login Manager
  • Must be run after the system has reached the Plasma login screen
  • ydotool
  • uinput kernel module enabled
  • User added to the input group
  • SSH access to the machine

How It Works

  1. Waits for the Plasma greeter to appear on seat0.
  2. Starts a temporary ydotoold instance.
  3. Waits for the ydotoold socket to become ready.
  4. Prompts for your password securely (no terminal echo).
  5. Clears the password field.
  6. Types the password using virtual input.
  7. Presses Enter.
  8. Stops ydotoold.

Usage

Make executable:

chmod +x greeter-login.sh

Run via SSH once the system is at the login screen:

./greeter-login.sh

Security Notes

  • Your password is entered via simulated keyboard input.
  • It is read silently and unset immediately after use.
  • This script is intended for personal remote access setups.
  • Use at your own risk.

About

Login via ssh to gui login with uinput and ydotool

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages