Anyone have any experience using the 9p protocol for file sharing?

Posted by tidux@reddit | linuxadmin | View on Reddit | 2 comments

The entire first and only page of Google results for "v9pfs linux" are in Chinese, which I don't speak.

EDIT: here is the 9p daemon (also in Debian-main for Wheezy and later).

It works remarkably well, only requiring a single open TCP port, which also means you can tunnel it over SSH for over-the-wire encryption trivially.

On the client side you need mount -t 9p, the 9p.ko kernel module, and about five minutes to read the documentation. It even handles NAT traversal and dropped-connection recovery better than NFS. I have a new favorite filesystem network protocol. Now I just need to get diod running on Illumos and I will have achieved Maximum Unix Hipster.

EDIT2: 9p is a cleartext protocol, so your best bet is tunneling it over OpenVPN or similar. Attempts to do it over SSH have proven supremely fussy when NAT is involved.

EDIT3: setup here