LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   how do I set the ssh display (https://www.linuxquestions.org/questions/linux-networking-3/how-do-i-set-the-ssh-display-4175518475/)

johndoe777 09-13-2014 01:12 PM

how do I set the ssh display
 
I have a debian ssh server with several guest virtualizations installed. I want to be able to use ssh to establish the remote connection and then I want to tell the computer to run commands but I want the display to be used to be the display on the remote server, not my local computer that is in my hand.
Code:

ssh -Y root@172.20.1.2
This command is not what I want, I want the opposite, to display remotely so the virtualization stays on when I quit my ssh session.

pan64 09-13-2014 01:23 PM

can you please explain it better: what do you mean by remote connection? Is it opened from guest to debian host or what? which computer will run commands and which one should display (and what?). Where did you execute that ssh command and what IP is that 172.20.1.2?

johndoe777 09-13-2014 01:26 PM

for example let's say I am 172.20.1.101 my computer in my hands.
The remote host is 172,20.1.2 I want the virtualizations to display and run on 172.20.1.2 not on 172.20.1.101.

pan64 09-13-2014 01:33 PM

looka like you need a remote desktop instead of ssh

johndoe777 09-13-2014 02:01 PM

What do you mean? I am using a debian virtualization on a debian host and both have openssh-server installed. Why can't I do what I want? Let's say for example you wanted to launch Iceweasel on the remote server and for it to be visible on the remote server's monitor how would you do that?(via ssh please)

Turbocapitalist 09-14-2014 03:29 AM

You can tell the individual programs which display to use on the same line as you run them.

Code:

DISPLAY=:0.0 iceweasel
That will cause iceweasel to display on the machine where it is running, if that user is logged in and has a graphical display.

pan64 09-14-2014 12:38 PM

the problem is that the display is owned by the user who started it. In your remote server someone started a graphical environment. You want to ssh into that machine and use that display (if I understand it well). ssh will "port" your local display to the remote host, therefore you will be able to run a remote app using your own display. But running a remote app and using another display means you need access to that display (and also you need to reach it somehow).
ssh cannot connect you to that display, but you can take that DISPLAY variable and try to use: something like iceweasel -display host:0.0 (or something similar).
A remote desktop will connect you to the remote display and you can see that display locally. You can start whatever you want on that remote host, even you can disconnect your remote desktop connection and that app will still running.

johndoe777 09-14-2014 12:49 PM

I think that turbocapitalist answered my question. What I want to do exactly is ssh into a remote server and tell it to launch a virtualization with bridged networking on its own display and then logout of the ssh session with that virtualization still running on the remote server. Then I intend to ssh into the remote virtualization and manage it locally.

Thanks


All times are GMT -5. The time now is 11:55 AM.