diff options
author | Andrew Cady <d@cryptonomic.net> | 2021-10-24 06:15:10 -0400 |
---|---|---|
committer | Andrew Cady <d@cryptonomic.net> | 2021-10-24 06:18:45 -0400 |
commit | 5e1f460dd3bf6288893ae61429a94dd90d19cdfb (patch) | |
tree | c0811cf81cbdcad19d0f7bd84b26350ad3835310 /EndoForge/src/sshd_config | |
parent | 187db8e649641aa64dc49c29ea6bbeba1f7cabf7 (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_config | 17 |
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: | ||
2 | AuthorizedKeysCommand=/bin/echo %t %k | ||
3 | # Only this closes it back up: | ||
4 | ForceCommand=/home/u/.ssh/AnonymousAccessCommand | ||
5 | |||
6 | AuthenticationMethods publickey | ||
7 | AuthorizedKeysCommandUser=u | ||
8 | ExposeAuthInfo=yes | ||
9 | |||
10 | Port=22022 | ||
11 | HostKey=/home/u/.ssh/id_ed25519 | ||
12 | PidFile=/home/u/.ssh/sshd.pid | ||
13 | |||
14 | AcceptEnv LANG LC_* | ||
15 | UsePAM no | ||
16 | PermitTTY no | ||
17 | ChrootDirectory=none | ||