LinuxQuestions.org
Visit Jeremy's Blog.
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 07-16-2003, 02:18 PM   #1
Jerry78
LQ Newbie
 
Registered: Jul 2003
Posts: 4

Rep: Reputation: 0
VNC on SSH???


hello,

I was trying to run VNC on ssh and got a question here.

When you VNC to the Linux server via ssh, can someone else still scan and find the vnc port (5901) on the server? Can someone else still be able to use another vnc client and try to connect to the server? Thank you for you guys advise in advance.
 
Old 07-16-2003, 02:26 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
You can disable gateway ports in sshd_config so that ssh mapped ports are only visable on the server itself.
EDIT: You could use your firewall (iptables/chains too)

If you start th server with the "-localhost" flag it will only listen on the loopback.
 
Old 07-16-2003, 03:28 PM   #3
Jerry78
LQ Newbie
 
Registered: Jul 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Thank you, david_ross.

how do you configure sshd_config to diable gateway ports? Thank you again.

Gary
 
Old 07-17-2003, 04:20 AM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
From "man sshd_config"
Code:
    GatewayPorts
             Specifies whether remote hosts are allowed to connect to ports
             forwarded for the client.  By default, sshd binds remote port
             forwardings to the loopback address.  This prevents other remote
             hosts from connecting to forwarded ports.  GatewayPorts can be
             used to specify that sshd should bind remote port forwardings to
             the wildcard address, thus allowing remote hosts to connect to
             forwarded ports.  The argument must be “yes” or “no”.  The
             default is “no”.
In otherwords delete any references that exist refering to "GatewayPorts" in sshd_config and restart sshd.
 
  


Reply


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
ssh with vnc Dillius Linux - Security 1 03-11-2005 05:53 PM
VNC over SSH or ????? alirezan1 Mandriva 2 01-04-2005 11:55 AM
vnc with ssh lawkh Linux - Newbie 1 02-10-2004 02:12 AM
ssh and VNC linuxnube Linux - Security 4 01-28-2004 11:12 PM
how to use vnc with ssh ? norikage Mandriva 9 08-30-2003 01:40 PM


All times are GMT -5. The time now is 04:26 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration