LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 04-05-2008, 03:36 PM   #1
icedfusion
Member
 
Registered: Jun 2004
Posts: 31

Rep: Reputation: 15
ssh and terminal services is just giving me a loopback?


Hi,
I have started some people off with Ubuntu Linux (as I use it myself) and I have setup their machines with an SSH server so I can remote login.

I can login and use VNC using windows from work but I just cannot seem to do it when I login via my ubuntu box.

When setting up SSH, i do this:

Code:
ssh -L 5900:localhost:5900 name@server
so now i expect any activity on port 5900 (VNC) on my machine to be forwarded to the remotely connected machine.

I then fire up terminal services (in Ubuntu) and start a VNC connection to localhost, but instead of the connection being forwarded to the remotely connected machine I just get a loopback to my machine.

i have also tried this line:

Code:
ssh -L 5900:<server>:5900 name@server
but this doesnt seem to work either.

Am I doing something wrong?? Any help much appreciated.

ice.
 
Old 04-06-2008, 09:20 AM   #2
beadyallen
Member
 
Registered: Mar 2008
Location: UK
Distribution: Fedora, Gentoo
Posts: 209

Rep: Reputation: 36
From what I can tell, it sounds like you've got a local vnc server running on your machine. If that's the case, it's taking precedence over the ssh forwarded port at the same number. Try forwarding a different port, e.g.
Code:
 ssh -L 34433:server:5900 name@server
Also, some services won't like being contacted from 'localhost', so try it like above (i.e. with an explicit server name.

It's always good to run ssh with -vv to see what's going on when debugging this sort of thing.

Good luck.
 
Old 04-06-2008, 11:03 AM   #3
icedfusion
Member
 
Registered: Jun 2004
Posts: 31

Original Poster
Rep: Reputation: 15
Thanks alot for your help. I changed the port that SSH should listen for on my machine and then started vnc on the new port and it worked!!

You are also correct that I have a vnc server on my machine as well (i connect to it from work). I just assumed that if i setup SSH to fwd on port 5900 then my computer would ignore any requests to connect on the localhost on that port (seems to work in windows using putty) - would like to understand why it doesnt work in ubuntu.

Anyhow - again, thanks.


ice.
 
  


Reply



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
can't ssh into loopback ipaddress markw8500 Linux - General 3 12-29-2005 06:31 PM
MS Terminal Services prb1412 Linux - Newbie 3 10-05-2004 03:41 PM
Terminal Services PsychoE Linux - Newbie 2 07-16-2004 10:48 PM
TightVNC Ver terminal Services.. also looking for terminal Services for linux 2782d4 Linux - Security 3 05-20-2004 02:30 AM
Windows Terminal Services awhitf01 Linux - General 6 09-06-2001 03:37 PM

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

All times are GMT -5. The time now is 07:27 PM.

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