Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can SSH forward screens?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2253
Location: $TERM

PostPosted: Sat Oct 18, 2014 10:03 am    Post subject: Can SSH forward screens? Reply with quote

Like VNC can do?

I want to remotely control the GUI; the whole screen and keyboard/mouse, not just launch a GUI application from the remote systems on my local screen.
_________________
My blog
Back to top
View user's profile Send private message
deefster
Tux's lil' helper
Tux's lil' helper


Joined: 19 Apr 2004
Posts: 77

PostPosted: Sat Oct 18, 2014 4:25 pm    Post subject: Reply with quote

SSH can facilitate it. If you're already familiar with VNC, you can do VNC over SSH and it will be encrypted

If you're running a vnc server on a remote host for example on port 5901

Code:

ssh -L 5901:localhost:5901 remotehost
vncviewer localhost:5901



The example will create a tunnel using ssh that uses local port 5901 to talk to the remote host on 5901. vncviewer will actually be talking to the remote host, without needing direct access to 5901. In fact the only external port that needs to be open on the remote host is SSH port 22.
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2253
Location: $TERM

PostPosted: Tue Oct 21, 2014 5:54 am    Post subject: Reply with quote

That's not exactly what I'm looking for.

I'm trying to get the X server protocol to forward, that's more efficient.

So there are in general no options other than VNC for this?
_________________
My blog
Back to top
View user's profile Send private message
RazielFMX
l33t
l33t


Joined: 23 Apr 2005
Posts: 835
Location: NY, USA

PostPosted: Tue Oct 21, 2014 12:58 pm    Post subject: Reply with quote

VNC is far more efficient than throwing X over SSH (X is extremely chatty). The reason to tunnel VNC over SSH is that VNC is not encrypted. If you really just want to throw X screens back to your local xserver, you can simply:

Code:
ssh -Y <hostname>


Then when you launch gvim (as an example) it will place a GUI on your local xserver.
_________________
I am not anti-systemd; I am pro-choice. If being the latter makes you feel that I am the former, then so be it.
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Tue Oct 21, 2014 1:22 pm    Post subject: Reply with quote

I think x2go is what the OP wants.
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2253
Location: $TERM

PostPosted: Tue Oct 21, 2014 5:34 pm    Post subject: Reply with quote

i92guboj wrote:
I think x2go is what the OP wants.


Yeah, I figured that out.

Thanks.
_________________
My blog
Back to top
View user's profile Send private message
szatox
Veteran
Veteran


Joined: 27 Aug 2013
Posts: 1717

PostPosted: Tue Oct 21, 2014 5:43 pm    Post subject: Reply with quote

There is a really neat trick with X11 over SSH. Make sure to enable encryption when you use X forwarding. Gives a very nice boost over slow networks.
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 2889
Location: Illinois, USA

PostPosted: Tue Oct 21, 2014 6:01 pm    Post subject: Reply with quote

I couldn't get X2go to work. I built a wxWidgets program that uses XNest. I had a bash script that did the same but can't find it right now. No sound but you can login and have your whole desktop available.

VNC over ssh doesn't see to make much sense unless one is going over the internet, then X is risky.
Back to top
View user's profile Send private message
shuuraj
n00b
n00b


Joined: 13 Jan 2014
Posts: 38

PostPosted: Wed Oct 22, 2014 10:13 am    Post subject: Reply with quote

simply enable X11 forwarding in your ssh config

just btw for windows theres a nice tool called "mobaxterm"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum