What's new? | Help | Directory | Sign in
Google
macfuse
A User-Space File System Implementation Mechanism for Mac OS X
  
  
  
  
    
Search
for
Updated Apr 30, 2008 by singh
Labels: sshfs
MACFUSE_FS_SSHFS  
The SSH File System for MacFUSE

The SSH File System for MacFUSE

To use the MacFUSE version of the SSH file system (sshfs), you must have the MacFUSE Core package installed. Please read the QUICKER_START_GUIDE document to learn how to install that package.

An easy way to use sshfs with MacFUSE is to get sshfs.app. Please look under the "Downloads" tab of this project to download it.

NB: If you are running an older version of sshfs, please be sure to upgrade to the latest version available. Newer versions might have important and useful updates. Scroll down to the bottom of this page to view the Changelog.

NB: Please note that the "disk" usage information reported for sshfs is not "real" -- this is how it is implemented in the sshfs program. It's not a MacFUSE issue.

Using the Graphical Application

There are two main parts to the sshfs application. The first is File > Connect to SSH Server..., which lets you specify the server you want to connect to, the username you want to use, and (optionally) the remote directory you want to mount.

When you click Connect, a short time will pass, and then sshfs will ask you for your password. Give your password, and the sshfs volume will appear on the desktop.

At this point, you're done with the sshfs.app application, and you may quit it if you like. When you're done with the remote server, just click the "eject" button that the Finder provides, or select it and choose File > Eject.

The second main part is a recent server list. From the list, you may select any server that you've successfully connected to in the past. The password dialog will come up, provide your password, and once again, you're all set.

Using the Command Line

The sshfs.app bundle contains a binary called sshfs-static. This is the command-line sshfs program compiled such that it links dynamically with the FUSE user-space library, but statically with libglib and libintl. You can create a symbolic link called sshfs in /usr/local/bin/ (or another place that you prefer) that points to this binary, and thus can use the command-line version too. If you prefer to use the command line, you can do something like:

# Mounting the SSH file system
$ mkdir /some/mount/point # or use one that already exists
$ sshfs user@host:/some/directory /some/mount/point -oreconnect,volname=<volname>

The reconnect option is useful when the network connection goes down and you have a mounted sshfs volume.

<volname> should be a string you wish to use as the name of the newly mounted volume. If everything went fine, you should see the volume on your Desktop and in the Finder (unless you have disabled remote volumes from showing up in these places).

Once you are done using sshfs, you can unmount the volume either using the eject icon in the Finder or other common user-interface means of ejecting. Alternatively, you can do the following from the command line:

$ umount /some/mount/point

Changelog

sshfs(MacFUSE) 0.3.0 (May 7, 2007)

sshfs(MacFUSE) 0.2.0 (April 19, 2007)

sshfs(MacFUSE) 0.1.0 (January 2007)