Mounting remote directories using FUSE and sshfs on openSUSE

1 Star2 Stars3 Stars4 Stars5 Stars (5 votes, average: 4.80 out of 5)
Loading ... Loading ...
Monday, December 1st, 2008 by Zonker Digg!

Getting ready to head to Nuremberg this morning, and wanted to copy some files over to my USB key so I could work on the plane. (Florida to Germany is a bit of a commute, so I might as well have something to do while I’m in a tin can over the Atlantic Ocean, right?)

I’ve got an account with rsync.net (highly recommend) and wanted to copy some files to a fresh system with openSUSE 11.1 RC 1 to transfer to USB. (11.1 looks very good, by the way…)

I didn’t have my rsync scripts handy, so I decided to see about mounting the remote system using FUSE. You can also connect using Webdav in Nautilus and the “fish” protocol in Konqueror, but this method is good if you’re not a desktop user. (For instance, if you have a server running openSUSE and want to mount a filesystem on another server while working over an SSH connection.)

You should have FUSE installed already, but I didn’t have sshfs, so I popped open a terminal and ran this command:

zypper in sshfs

I’d created a directory called “rsync” (not very original, I know) and mounted the remote filesystem using the SSH Filesystem:

sshfs user@host.rsync.net: rsync/

Once that’s done, the remote filesystem is mounted as the directory “rsync” and I can copy and move files just like they’re local. (With, of course, the exception of the fact that they’re being transferred over an Internet connection rather than on local disk — so copying and moving may not be quite as snappy.)

I know a lot of experienced openSUSE users already know this, but I’m guessing a lot of other folks don’t so I thought I’d slap up the instructions since it might be useful for others.


4 Comments

Comment by Hans Petter Jansson
2008-12-01 20:57:02

You could also use Nautilus to browse to sftp://user@host.rsync.net/, and then use the directory that shows up under $HOME/.gvfs/. That’s a FUSE-based mirror of all your “desktop” mounts.

 
Comment by der_soenke
2008-12-07 15:29:15

There is also an possibility to automount external filesystems with sshfs:
http://www.mccambridge.org/blog/2007/05/totally-seamless-sshfs-under-linux-using-fuse-and-autofs/

 
Comment by Cynthia
2008-12-10 08:58:23

I didn’t know about any of these methods, I appreciate the information. And thanks for the clear instructions, Zonker!

 
Comment by hadg
2008-12-13 15:57:37

Echo the above, thanks Zonker!

 

Sorry, the comment form is closed at this time.