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