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.