image
image

Go Back   macosx.com > Mac Help Forums > Networking & Compatibility

Reply
 
Thread Tools
  #1  
Old October 30th, 2005, 01:30 PM
Registered User
 
Join Date: Jul 2002
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
dm2243 is on a distinguished road
Vnc Tunnel User Login Via Terminal, Not Console

This sounds like a convoluted problem, but hopefully an interesting one.

I'm trying to figure out how to change users on a remote server via VNC. The VNC connection and the tunnel are working ok - except for this tiny problem of being unable to change users on the remote server.

Let's call the remote server "remote box" and the machine that i'm connecting from "my box". Sitting in front of my box, I log out of a user on the remote box inside my tunnelled VNC window. But that causes my VNC connection to drop and I can't reconnect. I try quiting my VNC client and running "ssh -Nfn -L 5901:127.0.0.1:5900 myname@rebotebox" again but then i get "channel 2: open failed: connect failed: Connection refused". I try rebooting my local box, but I get the same error. The only way I can reconnect to my remote box is by physically restarting it and having it automatically log in. of course, given that i'm not in front of remote box, restarting it is not an easy thing to do. (I aslo tried fast user switching but no joy.)

I'm running 10.4.2 on both machines and my VNC client is Chicken of the VNC.

TIA
Reply With Quote
  #2  
Old October 30th, 2005, 03:27 PM
kilowatt's Avatar
mach-o mach-o man
 
Join Date: Mar 2001
Location: irc.lfnet.net #kilonet
Posts: 980
Thanks: 0
Thanked 0 Times in 0 Posts
kilowatt is on a distinguished road
How is VNC launched on the remote box?

Sounds like it may be tied in with your login, and thus doesn't run once you log out.
__________________
irc.lfnet.net #kilonet -+=join in=+-
Quote:
...the belief that the rights of man come not from the generosity of the state but the hand of God...
PEBKAC - Problem Exists Between Keyboard And Chair. --who said it first?
Audio Engineer - ProTools and Logic Pro Certified.
FCC Licensed RF Technician
Reply With Quote
  #3  
Old October 31st, 2005, 09:41 AM
Registered User
 
Join Date: Jul 2002
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
dm2243 is on a distinguished road
osxvnc

thanks kilowatt - i'm running OSXvnc 1.61, which i guess starts on user login and not system startup...so i suppose the solution is a different VNC server, right?
Reply With Quote
  #4  
Old November 2nd, 2005, 03:11 PM
kilowatt's Avatar
mach-o mach-o man
 
Join Date: Mar 2001
Location: irc.lfnet.net #kilonet
Posts: 980
Thanks: 0
Thanked 0 Times in 0 Posts
kilowatt is on a distinguished road
Well,

the problem is that most VNC servers are built to support the X Window System, rather than the window server we have in Mac OS X.

I'm not at my mac at the moment, but you should try this:
Log out of the GUI.
Shell into the computer.
Try and manually launch the VNC server from the shell - probably as root.

All at your own risk, of course. My guess is the LoginWindow will prevent other apps from launching, so maybe try modifying the files listed at this link:
http://www.opendarwin.org/en/faq/ch02.html#loginwindow
so that they load more than one thing up.
__________________
irc.lfnet.net #kilonet -+=join in=+-
Quote:
...the belief that the rights of man come not from the generosity of the state but the hand of God...
PEBKAC - Problem Exists Between Keyboard And Chair. --who said it first?
Audio Engineer - ProTools and Logic Pro Certified.
FCC Licensed RF Technician
Reply With Quote
Reply

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 06:35 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.