ssh X apps as root
When I SSH another machine and try to execute some GUI app, it does. But when I try to execute some app as root on a remote PC, it doesn't do and says:
Code:
X11 connection rejected because of wrong authentication. |
There are a few questions I would ask. On the machine you are trying to run a GUI app that you cannot, are you able to login directly as root or do you have to su to root? Do you have X11 forwarding turned on in the /etc/ssh/sshd_config file? Although I don't personally recommend it, do you have PermitRootLogin Yes on that same machine?
|
Quote:
Quote:
Quote:
Here's the B's sshd_config: Code:
$ cat /etc/ssh/sshd_config | grep -i PermitRootLogin |
Hmmm...how are you exporting the display? Are you using putty to connect or is this a straight connect using xhosts to allow the display to show up on the other machine? I tend to cheat and use vncserver in the Centos world.
|
I connect from Linux to Linux with
Code:
$ ssh host@IP |
|
All times are GMT -5. The time now is 03:00 AM. |