Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Anyone know how to map a Linux (CentOS 6.2) drive to a Mac (Snow Leopard)? I have root privileges. The Linux machine is not in a local network, but accessed via the internet.

share|improve this question
add comment

3 Answers

up vote 6 down vote accepted

I don't know about other people, but sshfs works fine for me. Alternatively, you could set up a VPN and then do a samba mount, which is cumbersome but works.

Or better yet, you could do a nfs mount, which is about as simple as you can get.

share|improve this answer
    
Thanks qweet. Looks like the link you provided states it's only valid for Leopard. Curious though. Did you go through the whole process in the link, or could possibly I just use sshfs alone somehow to keep things much simpler? –  gkdsp Feb 15 '12 at 20:54
    
What do you mean by simpler? You install SSHFS, and its the prerequisites, then you connect. –  Zoredache Feb 15 '12 at 21:19
    
By simpler I mean, do I need to install MacFuse and Macfusion (or equivalent; sounds like "yes")? Regarding the nfs mount link, this looks simpler, but there's no mention of logging in anywhere to the server. Should the Mac user enter username and password to access the server somewhere in this process? –  gkdsp Feb 15 '12 at 22:05
add comment

If you want to use the native AFP protocol to share with the Apple, use netatalk:

$ yum info netatalk
Available Packages
Name        : netatalk
Arch        : i686
Epoch       : 4
Version     : 2.2.0
Release     : 2.el6
Size        : 694 k
Repo        : epel
Summary     : AppleTalk networking programs
URL         : http://netatalk.sourceforge.net/
License     : GPLv2+
Description : This package enables Linux to talk to Macintosh computers via the
            : AppleTalk networking protocol. It includes a daemon to allow Linux
            : to act as a file server over EtherTalk or IP for Mac's.

It's in the EPEL repos.

Since the other box is somewhere on the Internet, you can can use OpenVPN to set up a connection between the two. If the Linux box is the OpenVPN server, TunnelBlick works very well as an OpenVPN client on the Mac.

share|improve this answer
add comment

iSCSI is another possible solution for your problem.

While the iSCSI-target is freely available on CentOS, you probably have to buy a iSCSI-inittiator solution for MAC. At least I found some hits with reports about working commercial iSCSI-initiators for Snow Leopard.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.