summaryrefslogtreecommitdiff
path: root/EndoForge/src
diff options
context:
space:
mode:
authorAndrew Cady <d@cryptonomic.net>2021-10-24 06:37:45 -0400
committerAndrew Cady <d@cryptonomic.net>2021-10-24 06:37:45 -0400
commitf58f4fdb3919c196a747636007af7da1ee308e28 (patch)
treef6db0c624fab483db801f38d3e28993b7c8c2dab /EndoForge/src
parent5e1f460dd3bf6288893ae61429a94dd90d19cdfb (diff)
Eliminate hard-coded values in sshd_config
This dirties up the code though, making the separate directory approach look better again. But it's not that bad.
Diffstat (limited to 'EndoForge/src')
-rw-r--r--EndoForge/src/sshd_config19
1 files changed, 12 insertions, 7 deletions
diff --git a/EndoForge/src/sshd_config b/EndoForge/src/sshd_config
index de34cd4..f89a47d 100644
--- a/EndoForge/src/sshd_config
+++ b/EndoForge/src/sshd_config
@@ -1,15 +1,20 @@
1# This allows completely open access: 1# This is an sshd_config for running OpenSSH as an unprivileged user on a
2# non-standard port.
3Port=22022
4
5# This setting completely opens up access:
2AuthorizedKeysCommand=/bin/echo %t %k 6AuthorizedKeysCommand=/bin/echo %t %k
3# Only this closes it back up: 7
4ForceCommand=/home/u/.ssh/AnonymousAccessCommand 8# This closes it back up:
9ForceCommand=
10DisableForwarding=yes
5 11
6AuthenticationMethods publickey 12AuthenticationMethods publickey
7AuthorizedKeysCommandUser=u 13AuthorizedKeysCommandUser=
8ExposeAuthInfo=yes 14ExposeAuthInfo=yes
9 15
10Port=22022 16HostKey=
11HostKey=/home/u/.ssh/id_ed25519 17PidFile=
12PidFile=/home/u/.ssh/sshd.pid
13 18
14AcceptEnv LANG LC_* 19AcceptEnv LANG LC_*
15UsePAM no 20UsePAM no