How can I use X11 forwarding for sudo users that connected via ssh?
Issue
export DISPLAY => Error: Can't open display:- X11 forwarding works fine for the user that connects to a remote system via ssh, but it fails after the user context has been changed with sudo
Environment
- Red Hat Enterprise Linux
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
