Xforwarding doesn't allow for switching users

Posted by Dan on Super User See other posts from Super User or by Dan
Published on 2010-04-15T00:45:20Z Indexed on 2010/04/15 0:53 UTC
Read the original article Hit count: 506

Filed under:
|
|
|
|

I'm ssh'd into a remote computer and xforwarding is working fine... but as soon as I "sudo su -" or "sudo su user2" it no longer Xforwards anything giving me the error:

X11 connection rejected because of wrong authentication.
xterm Xt error: Can't open display: localhost:10.0

Any Ideas?

Thanks

© Super User or respective owner

Related posts about ssh

Related posts about ubuntu