Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Our Archives > General Archives > Servers > Server admin apps that don't work through SSH tunnel

 
Server admin apps that don't work through SSH tunnel
Thread Tools
Forum Regular
Join Date: Nov 1999
Status: Offline
Jun 12, 2003, 12:36 AM
 
I am able to establish a secure connection to my server with the server settings application and can copy files via afp securely as well. I am not however, able to connect with the server monitor application or the workgroup manager when I create an SSH tunnel. For the workgroup manager tunnel I use ssh -L 10625:127.0.0.1:625 my.server.com and for the server monitor tunnel I use ssh -L 10311:127.0.0.1:311 my.server.com . What am I doing wrong? Why would the server settings work just fine but the server monitor workgroup manager and server status applications do not? I have also tried using Vapor but the results are the same as they are when I create the tunnels via the command line.
(Last edited by uochris; Jun 12, 2003 at 12:43 AM. )
http://www.apple.com/macosx/feedback/
Apple doesn't read these message boards. If you have a complaint or suggestion for OS X send feedback where it will do some good.
     
Mac Elite
Join Date: May 1999
Location: San Jose, CA
Status: Offline
Jun 12, 2003, 02:35 AM
 
I think this may be a bug in Server Monitor.

Indeed, the ssh tunnel works if you tunnel -L 311:localhost:311 (i.e. use the same port number), but if you use a different port number you don't connect, even if you put localhost:10311 in the server monitor setup.

Since it does work if you keep the same port number, this means you can tunnel one machine securely, but only one.
Gods don't kill people - people with Gods kill people.
     
uochris  (op)
Forum Regular
Join Date: Nov 1999
Status: Offline
Jun 12, 2003, 04:26 PM
 
I am able to establish a secure VNC session through an SSH tunnel so perhaps I'll run a VNC server but only allow connections via SSH. I figure I can still have access to the server admin apps but I only need to have port 22, 25 and 110 accessible from the outside network.
http://www.apple.com/macosx/feedback/
Apple doesn't read these message boards. If you have a complaint or suggestion for OS X send feedback where it will do some good.
     
Fresh-Faced Recruit
Join Date: Sep 2002
Location: Sydney, Australia
Status: Offline
Jun 15, 2003, 08:56 PM
 
to use workgroup manager via ssh, you need to forward more than 311 (i believe that workgroup manager connects on multiple ports...at least that was the conclusion i came to when i was setting this up a couple of months ago)

i have a script which forwards 625, 311, 660 and 687, but i don't remember which ports are for which app.

of course, your vnc connection will work as well.
     
uochris  (op)
Forum Regular
Join Date: Nov 1999
Status: Offline
Jun 16, 2003, 06:48 PM
 
Originally posted by samthecat:
to use workgroup manager via ssh, you need to forward more than 311 (i believe that workgroup manager connects on multiple ports...at least that was the conclusion i came to when i was setting this up a couple of months ago)

i have a script which forwards 625, 311, 660 and 687, but i don't remember which ports are for which app.

of course, your vnc connection will work as well.
So then how do you specify the connection address in the server status address box? Do you forward port 311 to port 311 on your machine or do you forward it to something like 10311? I noticed that it says that only root can forward privileged ports so I assume you could do a sudo ssh command. What do you type in to the address field to connect to the server status application? Now I'm just curious about how to get it to work.
http://www.apple.com/macosx/feedback/
Apple doesn't read these message boards. If you have a complaint or suggestion for OS X send feedback where it will do some good.
     
Fresh-Faced Recruit
Join Date: Sep 2002
Location: Sydney, Australia
Status: Offline
Jun 18, 2003, 12:23 AM
 
yup, only root can forward ports below 1024, so i do have a sudo in front of the ssh.

when i run the script, i get to put my password in (at the sudo prompt) and the root password (of the foreign machine) for each of the forwards.


i always put "localhost" in the address field of applications, with my normal username and password to get past that.

hope this helps.

cheers
     
 
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:54 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2