|
|
|
|
#1 |
|
Prospect
Join Date: Nov 2006
Posts: 2
|
Can't open display
Hello,
I am getting the 'E233: cannot open display' message. I used 'ssh -X user@host' and 'ssh -Y user@host' to connect, and I also have a config file under the .ssh folder of the remote machine. I can connect to another server and able to run xclock with my mac, but it is just this particular machine which I can't open the window. I also added the 'ForwardX11 yes' option to my config file. Another thing is that, I run xhost +machine and then it works. It is just the ssh tunneling that doesn't work and I want to stick with this option since it is the most secured. Any insights about this problem? Thanks a lot |
|
|
|
|
|
#2 | |||||||||||||||||||||||
|
Prospect
Join Date: Jan 2002
Location: Utah
Posts: 7
|
OK, I just have to check this: When you say "my config file", you do mean the config file on the server you're connecting to - right? Also, you re-started sshd on that remote machine after making that change - right? So, when you log into the server (ssh -X user@foo.com), what is the DISPLAY environment variable? Is it automatically set to localhost:10.0? Here's what I just did from my mac to my Solaris box: [MBG4:~] matt% ssh -X matt@10.0.0.199And firefox came right up. No xhost command was run. Now, there are some apps that just don't like to work over ssh for some reason. dtterm is a prime example of that. It works fine over a direct connection, but not via ssh. I have no idea why. If the DISPLAY variable isn't being set, check your sshd config on the server. Hopefully that helps a bit. |
|||||||||||||||||||||||
|
|
|
|
|
#3 |
|
Prospect
Join Date: Nov 2006
Posts: 2
|
It turns out to be a firewall problem with the remote machine.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|