You are here

Remote file access with sshfs

Printer-friendly versionPrinter-friendly version

If you need to get access to files on a remote machine, but the filespace on that machine isn't normally visible from your machine, you can often access it using sshfs.

Here's an example. To make machine xyzzy's directory /tmp available locally you could do something like the following:

mkdir ~/localxyzzy
sshfs xyzzy:/tmp ~/localxyzzy

To clean up afterwards you would type

fusermount -u ~/localxyzzy

For full details type man sshfs.

There are a couple of points to note.

  1. If your machine is outside of the Informatics wired network, or is on wireless, you will first need to connect securely into Informatics, using for instance OpenVPN or an ssh tunnel. (For an example of how to set up an ssh tunnel see the Using VNC page.)
  2. Also, be aware of the limitations of sshfs: it's useful for giving temporary access to one remote filesystem to one user on one machine. If you want more than that you might want to look for a different (less hacky) solution.
Last reviewed: 
11/12/2015

System Status

Home dirs (AFS)
Network
Mail
Other services
Scheduled downtime

Choose a topic