LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-03-2006, 07:45 PM   #1
ccin1492
Member
 
Registered: Feb 2004
Location: SoCal
Distribution: openSUSE 10.3
Posts: 139

Rep: Reputation: 15
Cannot forward port 5901


Hi, I'm trying to open a vnc session using ssh. I've started the vncserver on the remote machine. I then run the command:

Code:
ssh user@xx.xxx.xx.xxx -L 5901:localhost:5905
But then I get this...

Code:
bind: Address already in use
channel_setup_fwd_listener: cannot listen to port: 5901
Could not request local forwarding.
Last login: Fri Nov  3 20:35:09 2006 from xxx.xx.xxx.xx
Have a lot of fun...
I suspect this is a firewall issue and it't not allowing port 5901 to be forwarded thru the ssh tunnel. Has anyone seen this before or has an idea what might be going on.

Many thanks!

Last edited by ccin1492; 11-06-2006 at 12:50 PM.
 
Old 11-03-2006, 10:21 PM   #2
niknah
Member
 
Registered: Dec 2002
Location: In front of a computer
Distribution: UPS, DHL, FedEx
Posts: 466

Rep: Reputation: 38
Probably not firewall related.
It looks like you're already running vnc on your local machine, try...

ssh timothy@xxx.xx.xxx.xx -L 5902:localhost:5905

In your remote machine you should have vnc setup on screen no.5(port 5905) and in your local machine you have to login to "localhost:2"

Last edited by acid_kewpie; 11-06-2006 at 04:51 AM.
 
Old 11-03-2006, 11:23 PM   #3
ccin1492
Member
 
Registered: Feb 2004
Location: SoCal
Distribution: openSUSE 10.3
Posts: 139

Original Poster
Rep: Reputation: 15
That was it: had the ports backwards. Thanks again.
 
  


Reply

Tags
port, ssh, vnc


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
Can forward port 80 but not others capbob Linux - Networking 4 05-20-2005 07:02 PM
A way to forward an IP/Port to another system's IP/Port astroboy5714 Linux - Networking 6 01-26-2004 05:45 PM
port forward help please indy317 Linux - Networking 2 07-18-2003 02:21 PM
Port forward help please hanxuerui Linux - Networking 6 05-05-2003 01:20 PM
Forward port port 80 to lan web server dulaus Linux - Networking 9 10-04-2002 03:45 AM


All times are GMT -5. The time now is 03:18 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration