1# $OpenBSD: sshd_config,v 1.104 2021/07/02 05:11:21 dtucker Exp $ 2 3# This is the sshd server system-wide configuration file. See 4# sshd_config(5) for more information. 5 6# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin 7 8# The strategy used for options in the default sshd_config shipped with 9# OpenSSH is to specify options with their default value where 10# possible, but leave them commented. Uncommented options override the 11# default value. 12 13# Note that some of FreeBSD's defaults differ from OpenBSD's, and 14# FreeBSD has a few additional options. 15 16#Port 22 17#AddressFamily any 18#ListenAddress 0.0.0.0 19#ListenAddress :: 20 21#HostKey /etc/ssh/ssh_host_rsa_key 22#HostKey /etc/ssh/ssh_host_ecdsa_key 23#HostKey /etc/ssh/ssh_host_ed25519_key 24 25# Ciphers and keying 26#RekeyLimit default none 27 28# Logging 29#SyslogFacility AUTH 30#LogLevel INFO 31 32# Authentication: 33 34#LoginGraceTime 2m 35#PermitRootLogin no 36#StrictModes yes 37#MaxAuthTries 6 38#MaxSessions 10 39 40#PubkeyAuthentication yes 41 42# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2 43# but this is overridden so installations will only check .ssh/authorized_keys 44AuthorizedKeysFile .ssh/authorized_keys 45 46#AuthorizedPrincipalsFile none 47 48#AuthorizedKeysCommand none 49#AuthorizedKeysCommandUser nobody 50 51# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts 52#HostbasedAuthentication no 53# Change to yes if you don't trust ~/.ssh/known_hosts for 54# HostbasedAuthentication 55#IgnoreUserKnownHosts no 56# Don't read the user's ~/.rhosts and ~/.shosts files 57#IgnoreRhosts yes 58 59# Change to yes to enable built-in password authentication. 60#PasswordAuthentication no 61#PermitEmptyPasswords no 62 63# Change to no to disable PAM authentication 64#KbdInteractiveAuthentication yes 65 66# Kerberos options 67#KerberosAuthentication no 68#KerberosOrLocalPasswd yes 69#KerberosTicketCleanup yes 70#KerberosGetAFSToken no 71 72# GSSAPI options 73#GSSAPIAuthentication no 74#GSSAPICleanupCredentials yes 75 76# Set this to 'no' to disable PAM authentication, account processing, 77# and session processing. If this is enabled, PAM authentication will 78# be allowed through the KbdInteractiveAuthentication and 79# PasswordAuthentication. Depending on your PAM configuration, 80# PAM authentication via KbdInteractiveAuthentication may bypass 81# the setting of "PermitRootLogin prohibit-password". 82# If you just want the PAM account and session checks to run without 83# PAM authentication, then enable this but set PasswordAuthentication 84# and KbdInteractiveAuthentication to 'no'. 85#UsePAM yes 86 87#AllowAgentForwarding yes 88#AllowTcpForwarding yes 89#GatewayPorts no 90#X11Forwarding yes 91#X11DisplayOffset 10 92#X11UseLocalhost yes 93#PermitTTY yes 94#PrintMotd yes 95#PrintLastLog yes 96#TCPKeepAlive yes 97#PermitUserEnvironment no 98#Compression delayed 99#ClientAliveInterval 0 100#ClientAliveCountMax 3 101#UseDNS yes 102#PidFile /var/run/sshd.pid 103#MaxStartups 10:30:100 104#PermitTunnel no 105#ChrootDirectory none 106#UseBlacklist no 107#VersionAddendum FreeBSD-20220415 108 109# no default banner path 110#Banner none 111 112# override default of no subsystems 113Subsystem sftp /usr/libexec/sftp-server 114 115# Example of overriding settings on a per-user basis 116#Match User anoncvs 117# X11Forwarding no 118# AllowTcpForwarding no 119# PermitTTY no 120# ForceCommand cvs server 121