LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-10-2010, 07:41 AM   #1
hydepark2734
LQ Newbie
 
Registered: Jun 2010
Posts: 16

Rep: Reputation: 0
open a certain port with vnc


I'm having this problem.
from my windows box at work i can only connect to some ports (pop3, telnet, web)
also, i can connect to port 1234 (as an example)
everything else is blocked
I'm trying to connect with Microsoft Terminal Service Client to my linux box (cant install any vnc)
but haven't found a way to make Gnome remote desktop to listen to the port i need (1234).
I'm using fedora 13.
anyway, i would appreciate any advice on what software to use or hot to configure my Linux box get remote connections from windows box on that certain port.
 
Old 06-10-2010, 07:48 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you're trying to connect to a Linux server with a wholly proprietary Microsoft tool? Never going to work that way.

You're very vague about what you really want to achieve, but VNC is awful, please try to avoid it, it's so insecure in so many ways. Try nx instead, get the free version from nomachine.org and install that. That just connects over SSH so is very secure, and you just make your ssh server run on other ports than 22 if you so wish to.
 
Old 06-10-2010, 08:49 AM   #3
Bratmon
Member
 
Registered: Jul 2009
Location: 75.126.162.205:80
Distribution: Arch / Mint 17
Posts: 297
Blog Entries: 3

Rep: Reputation: 50
If you must use a wholly proprietary Microsoft tool, try this:
http://xrdp.sourceforge.net/
 
Old 06-10-2010, 10:29 AM   #4
tracertong
Member
 
Registered: Jun 2010
Posts: 34

Rep: Reputation: 16
Personally, I tend to install an X-windows client on the PC and forward my graphical sessions through port 22 (asuming port 22 is open on your target Linux box).

Cygwin-X is what I use for this (http://x.cygwin.com/). Start Cygwin-X on your Windows PC and it will present you with an xterm prompt. In that, type in the command to open an X session on your Linux box, via SSH, specifying forwarding of the graphical signal over the SSH channel to your Windows client:
Code:
ssh -l username -X -v Name.or.IP.address
Where -l means 'login as username'
-X means, forward the X Windows stuff to me over SSH
-v is optional, but means 'verbose' - i.e. "tell me everything that's going on so as I can diagnose any cockups".

Last part is the machine-name or IP address of the Linux box.

That will prompt you to enter your Linux user's password, and redirect you to a command line afterwards - e.g.:
Code:
username@polaris's password:
debug1: Authentication succeeded (password).
debug1: channel 0; new [client session]
debug1: Entering new interactive session.
Last login: Thu Jun 10 15:02:28 2010 from moonunit
[username@polaris ~]$
You are now on the command line of your Linux machine.
(machine names, made up, in the above, in case you are wondering)

From here, you can launch graphical applications from your Linux box, directly into host windows on your Windows machine, over an encrypted channel. Easy.

Since my main server is actually on the other side of the English Channel, I prefer to launch individual programs, like 'serviceconf', or 'firestarter' (or whatever) and work with just the individual program. (An entire desktop traveling in a 128-bit encrypted flow, from Newcastle to Brussels, and back again, would not make me popular with my Network engineers.)

Nothing stopping you running a KDE or Gnome session into a host window on your PC, however, if your network has the elbow room for it. Use the Xnest program on your Linux machine to send the session back to you, for instance (by typing something like this):
Code:
Xnest :1 -ac -geometry 1440x850 -once -query localhost
The 'geometry' option allows you (rather than the Linux systems default settings) to determine how big the desktop window on your Windows PC should be - t's argument is literally 'width-in-pixels, lower-case-x, height-in-pixels' with no spaces in.

Last edited by tracertong; 06-10-2010 at 11:08 AM.
 
Old 06-10-2010, 06:12 PM   #5
hydepark2734
LQ Newbie
 
Registered: Jun 2010
Posts: 16

Original Poster
Rep: Reputation: 0
Thank to all of the reply's.
I don't have much choice about windows.
that's what i get at work.
just looking for a way to connect from the office pc to my home network.
i cant realy install any vnc software on that office machine, so i use whatever i can get (remote desktop)
the windows side of thing is a given, so that's why I'm looking for a way to open the port i need on my own fc13 box.
 
Old 06-10-2010, 08:21 PM   #6
Bratmon
Member
 
Registered: Jul 2009
Location: 75.126.162.205:80
Distribution: Arch / Mint 17
Posts: 297
Blog Entries: 3

Rep: Reputation: 50
Did you see my earlier post?
 
  


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
VNC on different port (80) blackhawk999 Linux - Software 2 11-06-2007 12:10 PM
VNC Port Cottsay Linux - Software 2 11-04-2006 09:27 PM
vnc open port Murdock1979 Linux - Security 3 05-01-2006 03:11 AM
Open port 5900 or 59 for VNC jamiguel77 Linux - Security 5 01-08-2005 03:04 AM
VNC port redirection sqn Linux - Networking 5 11-18-2003 09:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:55 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