Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: SSH + Display question

  1. #11
    Join Date
    Aug 2008
    Beans
    412

    Re: SSH + Display question

    Quote Originally Posted by Dangertux View Post
    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


    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

  2. #12
    Join Date
    Aug 2008
    Beans
    412

    Re: SSH + Display question

    hmm

  3. #13
    Join Date
    Oct 2009
    Location
    Elgin, IL USA
    Beans
    3,363
    Distro
    Ubuntu 16.10 Yakkety Yak

    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.
    i5 650 3.2 GHz upgraded to i7 870, 16 GB 1333 RAM, nvidia GTX 1060, 32" 1080p & assorted older computers

  4. #14
    Join Date
    Aug 2008
    Beans
    412

    Re: SSH + Display question

    You have no idea how happy I am haha I've been scrolling through X documentation to try and find the answer to this!

    Thanks man works brilliantly.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •