summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2017-07-30 03:16:32 -0400
committerJune McEnroe <june@causal.agency>2017-07-30 03:16:32 -0400
commit9460cc38a87617f3551562b340053c0a7a6b85cd (patch)
tree52cad57bb54f223211b28706cfce33a96b3224eb
parentAdd termcap patch (diff)
downloadtorus-9460cc38a87617f3551562b340053c0a7a6b85cd.tar.gz
torus-9460cc38a87617f3551562b340053c0a7a6b85cd.zip
Add sshd_config
-rw-r--r--README7
-rw-r--r--sshd_config13
2 files changed, 15 insertions, 5 deletions
diff --git a/README b/README
index 06c851e..198714d 100644
--- a/README
+++ b/README
@@ -9,8 +9,5 @@ C source files are self-compiling, e.g. ./server.c.
     client.c       Curses client.
     help.c         Automated client which redraws a helpful banner.
 
-On FreeBSD with TERM=xterm-256color, the client fails to display bright
-colors. Applying termcap.diff sets it equivalent to TERM=xterm.
-
-    patch -p0 -o termcap < termcap.diff
-    cap_mkdb termcap
+    termcap.diff   Patch for bright colors with TERM=xterm-256color.
+    sshd_config    Anonymous login to chrooted client.
diff --git a/sshd_config b/sshd_config
new file mode 100644
index 0000000..9e48107
--- /dev/null
+++ b/sshd_config
@@ -0,0 +1,13 @@
+UsePAM no
+
+Match User torus
+    PasswordAuthentication yes
+    PermitEmptyPasswords yes
+    ChrootDirectory /home/torus
+    ForceCommand client
+
+    AllowAgentForwarding no
+    AllowTcpForwarding no
+    AllowStreamLocalForwarding no
+    MaxSessions 1
+    X11Forwarding no