sshfs on FreeBSD

Posted: April 2nd, 2013 | Author: | Filed under: Uncategorized | 1 Comment »

With sshfs you can mount remote filesystem locally via ssh. It uses FUSE underneath.
Very quick and convenient.

On server:

You need to enable sftp from /etc/ssh/sshd_config.
Uncomment following line if it’s commented:
Subsystem sftp /usr/libexec/sftp-server

And restart sshd.

On client:

Create a mountpoint:
mkdir mount_shared

sshfs user@server:/home/user/share mount_shared/

I am using 9.0 stable on server and 10.0 current on client.
“sysctl vfs.usermount=1” is not needed as suggested by others.

sshfs_debug is useful to get debugs.

One Comment on “sshfs on FreeBSD”

  1. 1 Madridistas said at 6:27 am on August 10th, 2014:

    zfs reiceve will need a -d to reiceve from a recursive send. -u would be suggested to prevent it from mounting the volumes from your rbackup pool as well, since the source and target are on the same system and the mountpoint value gets copied across with the send. If only there was a flag to zfs reiceve to re-write the mountpoint based on the pool name.