| Commit | Line | Data |
|---|---|---|
| c8c467ee PA |
1 | # $OpenBSD: sshd_config,v 1.80 2008/07/02 02:24:18 djm Exp $ |
| 2 | # $DragonFly: src/crypto/openssh-5/sshd_config,v 1.4 2008/09/28 03:19:46 pavalos Exp $ | |
| 16c343f1 PA |
3 | |
| 4 | # This is the sshd server system-wide configuration file. See | |
| 5 | # sshd_config(5) for more information. | |
| 6 | ||
| 7 | # This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin | |
| 8 | ||
| 9 | # The strategy used for options in the default sshd_config shipped with | |
| 10 | # OpenSSH is to specify options with their default value where | |
| 11 | # possible, but leave them commented. Uncommented options change a | |
| 12 | # default value. | |
| 13 | ||
| 40948e2d PA |
14 | # Note that some of DragonFly's defaults differ from OpenBSD's, and |
| 15 | # DragonFly has a few additional options. | |
| 16 | ||
| 41e5d546 | 17 | #VersionAddendum DragonFly-20090620 |
| 40948e2d | 18 | |
| 16c343f1 PA |
19 | #Port 22 |
| 20 | #AddressFamily any | |
| 21 | #ListenAddress 0.0.0.0 | |
| 22 | #ListenAddress :: | |
| 23 | ||
| 24 | # Disable legacy (protocol version 1) support in the server for new | |
| 25 | # installations. In future the default will change to require explicit | |
| 26 | # activation of protocol 1 | |
| 27 | Protocol 2 | |
| 28 | ||
| 29 | # HostKey for protocol version 1 | |
| 30 | #HostKey /etc/ssh/ssh_host_key | |
| 31 | # HostKeys for protocol version 2 | |
| c8c467ee | 32 | #HostKey /etc/ssh/ssh_host_rsa_key |
| 16c343f1 PA |
33 | #HostKey /etc/ssh/ssh_host_dsa_key |
| 34 | ||
| 35 | # Lifetime and size of ephemeral version 1 server key | |
| 36 | #KeyRegenerationInterval 1h | |
| c8c467ee | 37 | #ServerKeyBits 1024 |
| 16c343f1 PA |
38 | |
| 39 | # Logging | |
| 40 | # obsoletes QuietMode and FascistLogging | |
| 41 | #SyslogFacility AUTH | |
| 42 | #LogLevel INFO | |
| 43 | ||
| 44 | # Authentication: | |
| 45 | ||
| 46 | #LoginGraceTime 2m | |
| 85088528 MD |
47 | # only allow root logins via public key pair |
| 48 | PermitRootLogin without-password | |
| 16c343f1 PA |
49 | #StrictModes yes |
| 50 | #MaxAuthTries 6 | |
| c8c467ee | 51 | #MaxSessions 10 |
| 16c343f1 PA |
52 | |
| 53 | #RSAAuthentication yes | |
| 54 | #PubkeyAuthentication yes | |
| 74abe2e5 | 55 | #PermitBlacklistedKeys no |
| 16c343f1 PA |
56 | #AuthorizedKeysFile .ssh/authorized_keys |
| 57 | ||
| 58 | # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts | |
| 59 | #RhostsRSAAuthentication no | |
| 60 | # similar for protocol version 2 | |
| 61 | #HostbasedAuthentication no | |
| 62 | # Change to yes if you don't trust ~/.ssh/known_hosts for | |
| 63 | # RhostsRSAAuthentication and HostbasedAuthentication | |
| 64 | #IgnoreUserKnownHosts no | |
| 65 | # Don't read the user's ~/.rhosts and ~/.shosts files | |
| 66 | #IgnoreRhosts yes | |
| 67 | ||
| 68 | # To disable tunneled clear text passwords, change to no here! | |
| 85088528 MD |
69 | # We disable cleartext passwords by default |
| 70 | PasswordAuthentication no | |
| 16c343f1 PA |
71 | #PermitEmptyPasswords no |
| 72 | ||
| c8c467ee | 73 | # Change to no to disable PAM authentication |
| 16c343f1 PA |
74 | #ChallengeResponseAuthentication yes |
| 75 | ||
| 76 | # Kerberos options | |
| 77 | #KerberosAuthentication no | |
| 78 | #KerberosOrLocalPasswd yes | |
| 79 | #KerberosTicketCleanup yes | |
| 80 | #KerberosGetAFSToken no | |
| 81 | ||
| 82 | # GSSAPI options | |
| 83 | #GSSAPIAuthentication no | |
| 84 | #GSSAPICleanupCredentials yes | |
| 85 | ||
| 86 | # Set this to 'yes' to enable PAM authentication, account processing, | |
| 87 | # and session processing. If this is enabled, PAM authentication will | |
| 88 | # be allowed through the ChallengeResponseAuthentication and | |
| 89 | # PasswordAuthentication. Depending on your PAM configuration, | |
| 90 | # PAM authentication via ChallengeResponseAuthentication may bypass | |
| 91 | # the setting of "PermitRootLogin without-password". | |
| 92 | # If you just want the PAM account and session checks to run without | |
| 93 | # PAM authentication, then enable this but set PasswordAuthentication | |
| 94 | # and ChallengeResponseAuthentication to 'no'. | |
| 95 | #UsePAM no | |
| 96 | ||
| c8c467ee | 97 | #AllowAgentForwarding yes |
| 16c343f1 PA |
98 | #AllowTcpForwarding yes |
| 99 | #GatewayPorts no | |
| 40948e2d | 100 | #X11Forwarding yes |
| 16c343f1 PA |
101 | #X11DisplayOffset 10 |
| 102 | #X11UseLocalhost yes | |
| 103 | #PrintMotd yes | |
| 104 | #PrintLastLog yes | |
| 105 | #TCPKeepAlive yes | |
| 106 | #UseLogin no | |
| 107 | #UsePrivilegeSeparation yes | |
| 108 | #PermitUserEnvironment no | |
| 109 | #Compression delayed | |
| 110 | #ClientAliveInterval 0 | |
| 111 | #ClientAliveCountMax 3 | |
| 112 | #UseDNS yes | |
| 113 | #PidFile /var/run/sshd.pid | |
| 114 | #MaxStartups 10 | |
| 115 | #PermitTunnel no | |
| 116 | #ChrootDirectory none | |
| 117 | ||
| 40948e2d PA |
118 | #XAuthLocation /usr/pkg/bin/xauth |
| 119 | ||
| 16c343f1 PA |
120 | # no default banner path |
| 121 | #Banner none | |
| 122 | ||
| 123 | # override default of no subsystems | |
| 124 | Subsystem sftp /usr/libexec/sftp-server | |
| 125 | ||
| 126 | # Example of overriding settings on a per-user basis | |
| 127 | #Match User anoncvs | |
| 128 | # X11Forwarding no | |
| 129 | # AllowTcpForwarding no | |
| 130 | # ForceCommand cvs server |