Encrypted passwords for AFP?

Encrypted passwords for AFP?

Posted by: vocaro
Posted on: 2007-01-06 12:21:00

After more than a year as a DreamHost customer, I just found out yesterday that the Apple Filing Protocol (AFP) is supported out-of-the-box. This is fantastic, since I needed a way to mount my home directory as a drive, and WebDAV wasn't an option because it interferes with shell access.

The only problem is that when mounting the home directory, AFP reports that my password is being sent in the clear. Is there any way around that? I tried enabling the SSH option for AFP, but it didn't work.

Thanks!

Re: Encrypted passwords for AFP?

Posted by: wholly
Posted on: 2007-01-06 12:35:00

It's a fix that has been added to the request system. You might want to vote for it from the control panel. With enough requests they'll do it.

(As far as I'm concerned it's a security problem and should be fixed or the feature turned off).

You do know how to use https://panel.dreamhost.com/index.cgi?tree=home.sugg& right? (I'd been here three months before I found it).



Wholly

Re: Encrypted passwords for AFP?

Posted by: vocaro
Posted on: 2007-01-06 13:07:00

Done; thanks for the tip!

Re: Encrypted passwords for AFP?

Posted by: sdayman
Posted on: 2007-01-06 17:29:00

I didn't even know it was possible on a non OS X server. From what I've read, it's a feature of OSX Server, but hadn't heard of it being available elsewhere. I'll give it a vote.

-Scott

Re: Encrypted passwords for AFP?

Posted by: vocaro
Posted on: 2007-01-06 18:16:00

AFP was around well before OS X came to life. It's even available from Microsoft in certain versions of Windows! I use it on my Linux servers via the netatalk library.

http://en.wikipedia.org/wiki/Apple_Filing_Protocol


Re: Encrypted passwords for AFP?

Posted by: sdayman
Posted on: 2007-01-06 18:25:00

I wasn't very specific in my post. It's the encryption that I didn't think was widely available, except on OS X Server.

-Scott

Re: Encrypted passwords for AFP?

Posted by: lrosenstein
Posted on: 2007-01-09 14:31:00

You can use an ssh tunnel to secure the password. See this posting for an example:

http://discussion.dreamhost.com/showthreaded.pl?Cat=&Board=forum_troubleshooting&Number=66732


Re: Encrypted passwords for AFP?

Posted by: wholly
Posted on: 2007-01-09 18:29:00

A damn fine solution! Thanks for the advice!

Wholly

Re: Encrypted passwords for AFP?

Posted by: vocaro
Posted on: 2007-01-09 19:21:00

Thanks, but edges' suggestion doesn't seem to work. I can connect to localhost as expected, but I still get a warning saying that my password is in the clear.

I think I'll just cross my fingers and hope DreamHost implements this feature soon.

Re: Encrypted passwords for AFP?

Posted by: wholly
Posted on: 2007-01-09 19:34:00

Because it *is* sent in the clear - over an fully encrypted channel. All traffic is encrypted when you tunnel it.

It's what the big boys do. (I have done work for banks, they use it a LOT.)

I'm embarrased I didn't think of it first.

Wholly

Re: Encrypted passwords for AFP?

Posted by: vocaro
Posted on: 2007-01-09 20:10:00

Oh, I see. One more question, then: Is there a way of doing the SSH tunneling without logging in? When I do "ssh -L ...", it logs me in to DreamHost, so I have this terminal sitting there doing nothing (except tunneling things in the background). I suppose I could work around this by using the screen utility or something, but I'm guessing there's a better way. Thanks.

Re: Encrypted passwords for AFP?

Posted by: wholly
Posted on: 2007-01-09 20:18:00

You'd have to ask an apple junkie the right way to do that. I'm just a run of the mill linux/unix/windows kinda guy.

Wholly

Re: Encrypted passwords for AFP?

Posted by: vocaro
Posted on: 2007-01-09 20:44:00

But I'm just talking about the command-line SSH utility, same as Linux/UNIX. Nothing Apple-specific.


Re: Encrypted passwords for AFP?

Posted by: wholly
Posted on: 2007-01-10 05:32:00

The nature of tunnelling with SSH is that the terminal has to stay open unless you want to run it in the background, but then you leave that connection open as a security risk.

Personally I like leaving the window open as a reminder that I'm connected.

Wholly

Re: Encrypted passwords for AFP?

Posted by: lrosenstein
Posted on: 2007-01-10 10:34:00

Sorry, I should have mentioned that. To OS X it will still look as if the password is sent in the clear, because the protocol is the same. Therefore it still gives you a warning. In reality, however, the password is sent through the encrypted ssh tunnel to the server, so it won't be visible over the Internet. (And as a bonus, all file transfers will also be encrypted between your machine and the server.)



Re: Encrypted passwords for AFP?

Posted by: lrosenstein
Posted on: 2007-01-10 18:49:00

There are several programs on OS X that can manage ssh tunnels without a terminal window. I use SSHKeychain (www.sshkeychain.org).

Re: Encrypted passwords for AFP?

Posted by: sdayman
Posted on: 2007-10-31 16:25:00

To revive an old thread, Leopard now appears to use encrypted-only AFP, which DreamHost doesn't support. Now what? I suppose I could resort to using Transmit like it's a Finder window, but that seems so kludgy.

-Scott

Re: Encrypted passwords for AFP?

Posted by: lrosenstein
Posted on: 2007-10-31 16:38:00

The best thing is to install MacFUSE (the 1.0 version was just released) and use the ssh filesystem. I also use a separate program called MacFusion, which provides a convenient menu of shortcuts.

Larry

Re: Encrypted passwords for AFP?

Posted by: sdayman
Posted on: 2007-11-01 16:21:00

No joy here. I installed MacFUSE 1.0 for 10.5, but when I run MacFusion, it says MacFUSE isn't running. Am I missing a step?

I sure wish DreamHost would set up encrypted AFP. Someone said it's in the Suggestions section, but I don't see it up for a vote. Anybody got a link?

-Scott

Re: Encrypted passwords for AFP?

Posted by: lrosenstein
Posted on: 2007-11-01 17:55:00

MacFusion hasn't been updated to match the 1.0 MacFuse; it worked for me on 10.4, but maybe it doesn't work on 10.5. I would try to download the sshfs application (from the main MacFUSE site) and see if that works.


Larry

Re: Encrypted passwords for AFP?

Posted by: sdayman
Posted on: 2007-11-01 19:39:00

sshfs does nothing after I enter the host and username. No errors, nada. Is MacFusion a persistent process? I didn't see it in a 'ps' listing.

-Scott

Re: Encrypted passwords for AFP?

Posted by: lrosenstein
Posted on: 2007-11-01 23:48:00

MacFUSE is a kernel extension + filesystem. I don't know about 10.5, but on 10.4 you can do kextstat | grep fusefs to see if it is loaded. Maybe there's a bug running on 10.5.

MacFusion is a frontend to the ssh and ftp file systems. It is a persistent process that manages the menu.

Larry

Re: Encrypted passwords for AFP?

Posted by: sdayman
Posted on: 2007-11-02 11:50:00

Nothing in kextstat. I did run the install for the 10.5 MacFuse. Now I'm trying to dig around and see if I did the install wrong. When it was done, it did say "Successful."

-Scott

Re: Encrypted passwords for AFP?

Posted by: sdayman
Posted on: 2007-11-04 16:01:00

Turns out it was working, after all. It just doesn't show up in the Finder, but it does show up as a mounted volume in the Terminal.

Better news. Found a way to enable cleartext AFP (better than nothing, and my stuff's not that sensitive):

defaults write com.apple.AppleShareClient afp_cleartext_allow -bool true


-Scott

Tags: dreamhosthome directorywork thankswebdavsshprotocolshellapple