Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-03-2006, 07:45 PM   #1
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:

ssh -L 5901:localhost:5905
But then I get this...

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
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
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 -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
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.


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 > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:14 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration