User Tools

Site Tools


computing:linux:sshfs

SSHFS

SSHFS is a simple way to mount remote filesystems accessible via SSH.

Install SSHFS

CentOS

yum install sshfs

Ubuntu

sudo apt-get update

sudo apt-get install sshfs

Mount a Remote Filesystem

:!: Use sudo as necessary on Ubuntu/Debian.

sshfs root@<hostname or IP>:/path/to/mount /mount/point/

Example mounting as a regular user on a non-standard SSH port:

:!: The regular user must have write privileges to the mountpoint.

sudo mkdir /mnt/www
sudo chmod 777 /mnt/www
sshfs -p 2222 root@www.yourdomain.tld:/home /mnt/www/

Dismount the remote filesystem:

umount /mnt/www/

or

sudo umount /mnt/www/
computing/linux/sshfs.txt · Last modified: 2015/05/31 10:57 by gcooper