Setting up Remote login via cmd line for rdp

Is there any way to turn on remote login and set the username and password without ever having a headful session. I want to do this via ssh and then take rdp

Headless Remote Desktop setup process - #2 by vgaetera

Thanks, I had tried this earlier, but the issue was that I had an X11 session running. I was checking in that session to see if the username and password had changed, but it seemed to reset any changes I made through the SSH session and revert them to the values set via the UI. Once I stopped the X11 session and restarted the grd service with systemctl, the changes were reflected correctly.

For anyone else with the issue of changes not reflecting add this to the end of the above script
systemctl restart gnome-remote-desktop.service

1 Like