Ssh – How to run Yast with X and ssh

opensusesshx11yast

I have an openSUSE machine which I log on to with ssh -X. I don't want to log in as root but I do want to run graphical Yast. Inside the ssh session sudo starts the console version of Yast. However, in Gnome or KDE it is possible to start Yast as a normal user and then give a root password in a window to run Yast as root.

How can I do that from my ssh session?

Best Answer

Log in as "normal" user (using X11-forward), then su - -c yast2.

Related Question