summaryrefslogtreecommitdiff
path: root/EndoForge/src/sshd_config
diff options
context:
space:
mode:
authorAndrew Cady <d@cryptonomic.net>2021-10-24 06:15:10 -0400
committerAndrew Cady <d@cryptonomic.net>2021-10-24 06:18:45 -0400
commit5e1f460dd3bf6288893ae61429a94dd90d19cdfb (patch)
treec0811cf81cbdcad19d0f7bd84b26350ad3835310 /EndoForge/src/sshd_config
parent187db8e649641aa64dc49c29ea6bbeba1f7cabf7 (diff)
Removing run-sshd script
I realized that if you are running `sshd` as a user, then you can just use `ForceCommand=` directly in the `sshd_config`. This eliminates the need for fakeroot. And that simplifies the setup enough so that the `openssh/` directory can go away.
Diffstat (limited to 'EndoForge/src/sshd_config')
-rw-r--r--EndoForge/src/sshd_config17
1 files changed, 17 insertions, 0 deletions
diff --git a/EndoForge/src/sshd_config b/EndoForge/src/sshd_config
new file mode 100644
index 0000000..de34cd4
--- /dev/null
+++ b/EndoForge/src/sshd_config
@@ -0,0 +1,17 @@
1# This allows completely open access:
2AuthorizedKeysCommand=/bin/echo %t %k
3# Only this closes it back up:
4ForceCommand=/home/u/.ssh/AnonymousAccessCommand
5
6AuthenticationMethods publickey
7AuthorizedKeysCommandUser=u
8ExposeAuthInfo=yes
9
10Port=22022
11HostKey=/home/u/.ssh/id_ed25519
12PidFile=/home/u/.ssh/sshd.pid
13
14AcceptEnv LANG LC_*
15UsePAM no
16PermitTTY no
17ChrootDirectory=none