wm: infra

Download patch

ref: c7ff4b33c9240fc38791c0603c11f64425dde29c
parent: 9a268964a40ca479c529564a6130113c024b363e
author: mkf <mkf@cloud9p.org>
date: Sat Sep 16 15:01:43 EDT 2023

unix/sshd_wm_config: import

--- /dev/null
+++ b/unix/sshd_wm_config
@@ -1,0 +1,31 @@
+# To use, install it in /etc/ssh/
+# and add the following into /etc/ssh/sshd_config
+# Include sshd_wm_config
+
+Match User rcpu
+	ForceCommand rlwarp -s -30 -apassword: -t dumb sshcpu cloud9p.org
+	AllowTcpForwarding no
+	AllowAgentForwarding no
+	PermitTunnel no
+	# rlwarp seem can't work with pty this way
+	# even if we have a dev/pty*
+        #ChrootDirectory /home/%u
+	PermitEmptyPasswords yes
+	DisableForwarding yes
+
+Match User v5
+	Banner /etc/v5_banner
+
+Match User v7
+	Banner /etc/v7_banner
+
+Match Group emu
+	ForceCommand emu
+	Banner /etc/emu_banner
+	PermitEmptyPasswords yes
+	ChrootDirectory /home/%u
+	X11Forwarding no
+	AllowTcpForwarding no
+	AllowAgentForwarding no
+	PermitTunnel no
+	DisableForwarding yes