You are not logged in.
Hey,guys!
I encounted a problem today.
Having computerA(pc-a) and computerB(pc-b),and the ip of A is 192.168.1.111,the ip of B is 192.168.1.105,
I login B and startx.
I opened a console ,then do somethin like this:
[userInB@pc-b]#sudo xhost +
[userInB@pc-b]#ssh userInA:192.168.1.111
[userInA@pc-a]#export DISPLAY=192.168.1.105:0.0
[userInA@pc-a]#xclock
Then I get the error: cannot open the display 192.168.1.105:0.0
Why? And how to make the xclock of pc-a run in pc-b ?
I am not sure if I have made it clear.If you have any question of it or want more information,please ask me.
Looking forward to your answer.
Thanks!
Offline
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
to allows graphical interfaces of X11 programs running on a remote system to be displayed on a local client machine,
I thought X11_forwarding of ssh is one method but not the only one.
I search in internet then I think it is one feature of xorg,and it is not rely on ssh.
Is my idea wrong?
Offline
then do somethin like this
First: "something like this" is no useful information because it implies "but could actually be totally different"
Second: what you *seem* to do there somewhat contrasts with what you apparently want to do.
=> Do you want to run the xclock *process* on A or on B? Shall it use the X11 server on A or on B?
Assuming it's actual forwarding: you can either use "ssh -Y" or allow the X11 server to open a tcp port (and then won't need any other mechanisms, you eg. set DISPLAY=server:0.0 if the remote port is 6000)
The latter is discouraged and deadly in hostile environments.
Offline
I thought X11_forwarding of ssh is one method but not the only one.
It is one way, yes. I don't know if it's the only way. But it is what you seem to be attempting to do - you are just doing it wrong. The page in the wiki I linked to gives a step by step example of running xclock in the way you want.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline