Re: SSH + Display question
Quote:
Originally Posted by
Dangertux
Then you need to not be using X Forwarding over SSH. The reason this is happening is X Forwarding runs the application locally.
Meaning if I run firefox over SSH X Forwarding then it's running on my local machine. If that makes sense.
Hey ,
Yeah, I realize that now. Is there a way to do what I need to do?
Tom
Quote:
How about a vnc client that connects to vnc server you can close the vnc viewer when what ever you want to run then open vnc viewer
I thought about VNC, but its not really what I need. I need a command based application, because I'm programming a remote which connects to an SSH server to make commands. But thank you :)
Tom
Re: SSH + Display question
Re: SSH + Display question
Assuming that X on ssh destination PC is running as you, from the ssh session simply do:
Code:
export DISPLAY=:0.0
(those are zeros)
Then whatever X program you run from ssh will run and display on the sshd PC.
Re: SSH + Display question
You have no idea how happy I am haha :P I've been scrolling through X documentation to try and find the answer to this!
Thanks man :) works brilliantly.