shithub: wiki.9front.org

Download patch

ref: 8ee53648d03717755391329a02d2784f9d7424be
parent: b962b3f7da70cc249ae70c77d513a0af0306a154
author: kvik <kvik@a-b.xyz>
date: Wed Jul 7 14:16:50 EDT 2021

9p-on-unix: add section about 9pfs+tlsclient (thanks foura)

--- a/9p-on-unix.md
+++ b/9p-on-unix.md
@@ -26,6 +26,21 @@
 It requires 9pfs to be installed.
 A side bonus of doing it this way is, that it uses the drawterm's aan connection to keep the 9p connection up.
 
+## 9pfs and tlsclient (dp9ik / rcpu)
+
+It is possible to use moody's [tlsclient](https://git.sr.ht/~moody/tlsclient)
+UNIX port for authenticated tls-encrypted 9p connections using the following
+script:
+
+	#!/bin/sh
+	export CPU=<cpu server>
+	export AUTH=<auth server>
+	export USER=<username>
+	export PASS=<password>
+	
+	socat unix-listen:/tmp/9psock exec:"9cpu -r /" &
+	exec 9pfs -U /tmp/9psock /mnt
+
 ## v9fs
 
 The Linux kernel contains a 9p driver that can be made to mostly