cannot connect to X server / cannot open display
You receive the following message after entering a command to bring up a graphical window
cannot connect to X server
cannot open display
This can happen due to multiple reasons:
- Reason: Your SSH client software does not support graphical display by itself (e.g. SecureCRT or PuTTY).
- Solution: Try using a client software like Thinlinc or MobaXterm as described in the SSH X11 Forwarding guide.
Reason: You did not enable X11 forwarding in your SSH connection.
Solution: If you are in a Windows environment, make sure that X11 forwarding is enabled in your connection settings (e.g. in MobaXterm or PuTTY). If you are in a Linux environment, try
ssh -Y -l username hostname
- Reason: If none of the above apply, make sure that you are within quota of your home directory.