xref: /netbsd-src/tests/lib/librumphijack/sshd_config.in (revision 67d48a8ac7b46cbafad2297f32a06aa61df3d8bc)
1# $NetBSD: sshd_config.in,v 1.2 2021/09/21 15:56:55 christos Exp $
2
3# Basic settings.
4Port 22
5Protocol 2
6
7# Provide information to the user in case something goes wrong.
8LogLevel DEBUG1
9
10# The host key.  It lives in the work directory because we need to set
11# very strict permissions on it and cannot modify the copy on the source
12# directory.
13HostKey @WORKDIR@/ssh_host_key
14
15# The authorized keys file we set up during the test to allow the client
16# to safely log in.  We need to disable strict modes because ATF_WORKDIR
17# usually lives in /tmp, which has 1777 permissions and are not liked by
18# sshd.
19AuthorizedKeysFile @WORKDIR@/authorized_keys
20StrictModes no
21
22# Some settings to allow user runs of sshd.
23PidFile @WORKDIR@/sshd.pid
24UsePam no
25
26# The root user should also be able to run the tests.
27PermitRootLogin yes
28
29# Be restrictive about access to the temporary server.  Only allow key-based
30# authentication.
31ChallengeResponseAuthentication no
32GSSAPIAuthentication no
33HostbasedAuthentication no
34KerberosAuthentication no
35MaxAuthTries 1
36MaxStartups 1
37PasswordAuthentication no
38PubkeyAuthentication yes
39