Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-13-2014, 01:12 PM
|
#1
|
LQ Newbie
Registered: Aug 2014
Location: New York City
Distribution: debian wheezy, but I add Kali to my repositories list
Posts: 16
Rep:
|
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.
|
|
|
09-13-2014, 01:23 PM
|
#2
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,747
|
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?
|
|
|
09-13-2014, 01:26 PM
|
#3
|
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:
|
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.
|
|
|
09-13-2014, 01:33 PM
|
#4
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,747
|
looka like you need a remote desktop instead of ssh
|
|
|
09-13-2014, 02:01 PM
|
#5
|
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:
|
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)
|
|
|
09-14-2014, 03:29 AM
|
#6
|
LQ Guru
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,522
|
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.
|
09-14-2014, 12:38 PM
|
#7
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,747
|
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.
|
|
|
09-14-2014, 12:49 PM
|
#8
|
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:
|
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 05:44 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|