Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Remote remote desktop (SSH port fowarding)

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help!
View previous topic :: View next topic  
Author Message
bobthebob1234
LXF regular


Joined: Thu Jan 03, 2008 9:38 pm
Posts: 1368
Location: A hole in a field

PostPosted: Wed Apr 27, 2011 9:27 pm    Post subject: Remote remote desktop (SSH port fowarding) Reply with quote

Could have sworn I have asked this before but I can't find it

basically I want to remote desktop a computer on a remote network.

Code:

   +----------+ Da Internet +------------+   Network   +------------+
   |    ME!   |-------------|remoteServer|-------------|RemoteScreen|
   +----------+             +------------+             +------------+


I can ssh to all computers so what I want to do is somehow tunnel port 5900 from the remote screen to me, though the remote server

I can only ssh to the remote server from me, and then ssh from the remote server to the remote screen.
The remote server doesn't have a gui desktop or anything so can't remote desktop that then remote desktop onwards Sad

I have played around with -D -L and -R but I can't get it to work....

Any ideas?

Thanks
_________________
For certain you have to be lost to find the places that can't be found. Elseways, everyone would know where it was
Back to top
View user's profile Send private message
indie
LXF regular


Joined: Thu Dec 06, 2007 12:00 pm
Posts: 135

PostPosted: Wed Apr 27, 2011 11:09 pm    Post subject: Reply with quote

Try the following:
Code:
$ ssh -N -L 5900:RemoteScreen:5900 remoteServer


Then connect to localhost:5900
Back to top
View user's profile Send private message
bobthebob1234
LXF regular


Joined: Thu Jan 03, 2008 9:38 pm
Posts: 1368
Location: A hole in a field

PostPosted: Thu Apr 28, 2011 12:36 pm    Post subject: Reply with quote

OMG ITS AMAZING

Thanks

Can I declare my love for you now?
_________________
For certain you have to be lost to find the places that can't be found. Elseways, everyone would know where it was
Back to top
View user's profile Send private message
jlturriff



Joined: Sun Mar 09, 2008 1:49 am
Posts: 6
Location: Concordia, Missouri, USA

PostPosted: Tue Feb 26, 2013 1:52 am    Post subject: Reply with quote

Indie,
I've been looking for a solution for this as well. I tried the command sequence you supplied above, but I get the message, "bind: Cannot assign requested address" back and ssh hangs. Is this coming from my local machine's IP stack? Could this be a firewall issue? I'm running OpenSuSE 12.2 on both desktop machines; the server between is running FreeBSD.

Leslie
Back to top
View user's profile Send private message
cmcevoy



Joined: Wed Nov 30, 2005 4:06 pm
Posts: 69
Location: Ripon, UK

PostPosted: Thu Feb 28, 2013 8:26 am    Post subject: Reply with quote

I suspect that is normal behaviour, particularly if you have tried to run the command more than once without killing the previous port binding.
SSH probably isn't hung, it just doesn't return until you have finished with it - put & at the end of the command to put it in the background, but probably better to just run vnc from a different terminal thus:
Code:
vncviewer -encodings tight localhost

I prefer to use a different port eg. 5901:RemoteScreen:5900 and then connect to localhost:1 to leave the default free for 'real' local vnc connexions.
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help! 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
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast