image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old June 12th, 2008, 07:45 PM
Fragger's Avatar
Lorem Ipsum
 
Join Date: Nov 2000
Posts: 112
Thanks: 0
Thanked 0 Times in 0 Posts
Fragger is on a distinguished road
launchd doesn't restart tunnel properly

Hey all,

My home computer is behind a brick wall so I need to reverse tunnel from it to my computer at work in order to have access from there. I load the plist into launchd with the "-S aqua" option to take advantage of ssh-agent running by default in Leopard, this allows me to use an ssh-key.

The tunnel works fine for a while, even a long while, but it occasionally dies and doesn't properly reset itself. If I kill the connection manually, launchd properly restarts it in a few seconds. It seems that when it dies a natural death it has problems restarting.

I'm used to sessions timing out, but the whole point of using launchd was that it would restart the session. (Note that manually unloading and reloading the daemon with launchctl fixes the problem...) Any suggestions?

From the system log:
Code:
com.graham.reversetunnel[7992]: Read from remote host squark: Connection reset by peer
com.apple.launchd[80] (com.graham.reversetunnel[7992]): Exited with exit code: 255
com.graham.reversetunnel[8268]: Warning: remote port forwarding failed for listen port 1100
Thanks,
Graham
__________________
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!
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:03 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.