Deprecated Behaviour

The inane, sometimes insane, ramblings from the mind of Brenton Alker.

Using SSHFS to Mount Remote Directories

Well, this is one of the niftiest utilities I’ve found in a while. It’s dawned on me in the past that this should be possible, but I’ve never really investigated it until now, probably because at work my desktop is a Windows box.

The sshfs “driver” allows transparent mounting of a remote directory via the standard SSH protocol.

I’m using sshfs to remotely mount the a directory on my development web server, instead of having to install a full server on my desktop. The box is sitting just across the room, why not. This allows me to use all my normal development tools, without the hassle of manually transferring the files every time a change is made.

While this may not be suitable for a staging box where multiple people are working on it, for my little network it makes things easier (the web folder is also a subversion working copy — but this is only a development server remember)

It’s also simple to set up, requiring no configuration on the server. Following the general gist (I already had much of it set up) of the instructions found on a fellow Ubuntu users blog I can now mount remote directories by using:

1
sshfs server:/my/remote/directory/ /my/local/mountpoint

If only this was available for Windows, I’d never have to work on my local machine again (WinSCP does a pretty good job, but it’s not quiet as seamless)