home / blog

Mounting filesystems over SSH

If you’re using a web host that supports SSH login, then you can mount the filesystem over SSH with Linux.

# install the package (debian/ubuntu)
sudo apt-get install sshfs

# Create a mount point in current directory
mkdir example.com

# Mount the remote directory "/home/user/example.com"
sshfs user@example.com:/home/user/example.com example.com

Or on a mac… by downloading MacFUSE and SSHFS for MacFUSE. The command line is exactly the same:

sshfs user@example.com:/home/user/example.com example.com
This entry was posted in geek and tagged , , , . Bookmark the permalink.

Comments are closed.