image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old December 14th, 2003, 02:18 PM
michaelsanford's Avatar
Psycholinguist
 
Join Date: Oct 2002
Location: Ottawa/Montrιal
Posts: 2,172
Thanks: 0
Thanked 0 Times in 0 Posts
michaelsanford is on a distinguished road
[HOW TO] Power iCal sharing over SSH tunnels.

I was getting pretty peeved that I had to purchase a .Mac account to keep my calendars on my iBook and iMac synchronized, so I devised this solution.

The only caveat is that accessing your calendars requires a real-time connection to the internet, which I always have when I need to consult my calendar, but not everyone will. Nothing's perfect

Before-you-proceed Checklist:
• Ensure that Personal File Sharing is enabled (Sharing pane)
• Ensure that Remote Login is enabled (Sharing pane)
• Ensure that your firewall has ssh, port 22, open (it is not necessary to open AFP, port 548, since we will be using an SSH tunnel).
• Ensure that you have backed up, merged, and deleted the ~/Library/Calendars folder on your so-called iCal Client machne (the one you will use to connect to your host). You need to have NO local ~/Library/Calendars folder for this to work, because you will be replacing it with a symlink.

Procedure:
• Create a forward SSH tunnel from your current computer to your so-called iCal Host, by entering this in the Terminal:
ssh username@your.host.com -L 10548.127.0.0.1:548

Once you are connected and presented with your remote command line, you don't have to type anything else in, the tunnel has been created. Just minimize or hide the window to get it out of your way.

• Mount your remote home folder over AFP (CMD-K in the Finder) and enter 127.0.0.1:10548 as the host. This will use your newly created SSH tunnel so that your calendars are accessed securely.

• You only need to do this step one time, but your AFP volume must be mounted in order to do it. Open a second terminal window, and create a symbolic link to your iCal Host's ~/Library/Calendars folder like so:
cd ~/Library ; ln -s /Volumes/your_AFP_mounted_home_folder/Library/Calendars

• Log out of the second terminal window, but leave the first one open, minimize or hide it to get it out of your way.

• Run iCal, and watch the magic of the BSD subsystem, the internet, and SSH come together to present you with your calendar.

When you're done you can unmount your remote home folder and log out of the first terminal window, and quit Terminal.

One huge advantage this method has over iCal + iSync is that there are no changes to merge, because you are working directly on the original calendars.
__________________
michaelsanford.com • Blog • Twitter • Tumblr • LinkedIn
• iMac Aluminum 24" |
MacOS X 10.5-current | 3.06 GHz Intel Core Duo | 4 GB RAM | 1 TB HDD
• iBook G4 1.42 GHz | MacOS X 10.5-current | 1 GB RAM, 100 GB HDD
• AMD Athlon64 3500+ | Slackware 12 (2.6.21.5-smp) | 2 GB RAM, 2•120 GB RAID 1, 2•500 GB RAID 0
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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


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