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 > Software - Troubleshooting and Discussion > Mac OS X > What's the state of security with AFP now?

What's the state of security with AFP now?
Thread Tools
Professional Poster
Join Date: Sep 2000
Location: San Francisco
Status: Offline
Reply With Quote
Oct 6, 2006, 02:05 PM
 
I would like to be able to access files on my work computer from home, but I'm paranoid in general. I'd like to use something easy (with a gui) like AFP, but I can't figure out if AFP is secure in Tiger. I've read about a thousand things on google talking about AFP over SSH and it seems to be a moving target in every version of Tiger. In 10.4.8, is this a secure method of accessing files? Does AFP use ssh by default now? I don't see any checkboxes in the Sharing prefs to turn this on.

Alternatively, should I just create an ssh tunnel manually and then forward the afp ports through the tunnel? I have setup a proper ssh configuration between client and host and I'm comfortable that it is secure. Or should I just give up and use sftp?

thanks,
kman
     
Mac Elite
Join Date: Sep 2006
Status: Offline
Reply With Quote
Oct 6, 2006, 02:19 PM
 
Here is a fun way to spend the afternoon:

Mac OS X: Configuring AFP to use OpenSSH exclusively

How 'bout a L2TP VPN?
     
Posting Junkie
Join Date: Nov 2000
Location: in front of my Mac
Status: Offline
Reply With Quote
Oct 7, 2006, 02:21 AM
 
It's very easy to use AFP securely. Just tunnel it through ssh.

Set up your ssh config file with a local forward to the Mac you want to access. This will look something like
Code:
Host remotemac User yourname Hostname remotemac.wherever.com LocalForward 9548 remotemac.wherever.com:548
This basically tells ssh to forward all local traffic on port 9548 (you can chose this one as you like as long as it's not a privileged port) to the remote Mac's port 548 which is the AFP port.

In a shell open the ssh connection to the remote Mac
ssh yourname@remotemac

and then in the Finder mount the AFP shares with something like
afp://yourname@localhost:9548

Done. It's as simple as that.
     
kman42  (op)
Professional Poster
Join Date: Sep 2000
Location: San Francisco
Status: Offline
Reply With Quote
Oct 7, 2006, 08:14 AM
 
Thanks, Simon. That was the other possibility I was considering. In the end I downloaded Fugu and used sftp to transfer some files. Worked great.
     
Posting Junkie
Join Date: Nov 2000
Location: in front of my Mac
Status: Offline
Reply With Quote
Oct 7, 2006, 12:55 PM
 
Well, if you just want to upload/download a few files, scp is probably the easiest way to go. I use about two dozen times daily.
     
kman42  (op)
Professional Poster
Join Date: Sep 2000
Location: San Francisco
Status: Offline
Reply With Quote
Oct 9, 2006, 10:29 PM
 
Yes. I was checking out scp, but I was having problems with directories with spaces in them. Any suggestions?
     
Posting Junkie
Join Date: Nov 2000
Location: in front of my Mac
Status: Offline
Reply With Quote
Oct 10, 2006, 02:04 AM
 
Originally Posted by kman42
Yes. I was checking out scp, but I was having problems with directories with spaces in them. Any suggestions?
That's no problem at all, you just need a little trick.

Either you put file paths with spaces in quotes like
"/Volumes/Some Disk"
or
'/Volumes/Some Disk'

or you simply precede the spaces with a backslash like
/Volumes Some\ Disk

If you have a path with a space you can use tab completion in the shell and it will show you how the backslash thing works.
     
   
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 08:37 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