LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-13-2014, 01:12 PM   #1
johndoe777
LQ Newbie
 
Registered: Aug 2014
Location: New York City
Distribution: debian wheezy, but I add Kali to my repositories list
Posts: 16

Rep: Reputation: Disabled
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.
 
Old 09-13-2014, 01:23 PM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,747

Rep: Reputation: 7561Reputation: 7561Reputation: 7561Reputation: 7561Reputation: 7561Reputation: 7561Reputation: 7561Reputation: 7561Reputation: 7561Reputation: 7561Reputation: 7561
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?
 
Old 09-13-2014, 01:26 PM   #3
johndoe777
LQ Newbie
 
Registered: Aug 2014
Location: New York City
Distribution: debian wheezy, but I add Kali to my repositories list
Posts: 16

Original Poster
Rep: Reputation: Disabled
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.
 
Old 09-13-2014, 01:33 PM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,747

Rep: Reputation: 7561Reputation: 7561Reputation: 7561Reputation: 7561Reputation: 7561Reputation: 7561Reputation: 7561Reputation: 7561Reputation: 7561Reputation: 7561Reputation: 7561
looka like you need a remote desktop instead of ssh
 
Old 09-13-2014, 02:01 PM   #5
johndoe777
LQ Newbie
 
Registered: Aug 2014
Location: New York City
Distribution: debian wheezy, but I add Kali to my repositories list
Posts: 16

Original Poster
Rep: Reputation: Disabled
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)
 
Old 09-14-2014, 03:29 AM   #6
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,522
Blog Entries: 4

Rep: Reputation: 3830Reputation: 3830Reputation: 3830Reputation: 3830Reputation: 3830Reputation: 3830Reputation: 3830Reputation: 3830Reputation: 3830Reputation: 3830Reputation: 3830
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.
 
1 members found this post helpful.
Old 09-14-2014, 12:38 PM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,747

Rep: Reputation: 7561Reputation: 7561Reputation: 7561Reputation: 7561Reputation: 7561Reputation: 7561Reputation: 7561Reputation: 7561Reputation: 7561Reputation: 7561Reputation: 7561
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.
 
Old 09-14-2014, 12:49 PM   #8
johndoe777
LQ Newbie
 
Registered: Aug 2014
Location: New York City
Distribution: debian wheezy, but I add Kali to my repositories list
Posts: 16

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
X forwarding though SSH not working: $DISPLAY not set vlsd Linux - Networking 8 12-09-2013 06:40 AM
X11 over SSH: $DISPLAY not being set Dria Linux - Networking 4 10-25-2010 01:47 PM
The difference in settings: console from desktop & ssh as DISPLAY not set when ssh in wikapuki Linux - Newbie 10 07-02-2010 09:44 AM
[SOLVED] X11 forwarding problem over ssh. Where DISPLAY is set? kaz2100 Linux - Software 3 09-27-2009 05:32 AM
ssh connection refused - trying to set up ssh server at home openSauce Linux - Server 10 10-18-2007 04:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration