xref: /openbsd/usr.bin/ssh/sshd_config (revision 732e635f)
1#	$OpenBSD: sshd_config,v 1.102 2018/02/16 02:32:40 djm Exp $
2
3# This is the sshd server system-wide configuration file.  See
4# sshd_config(5) for more information.
5
6# The strategy used for options in the default sshd_config shipped with
7# OpenSSH is to specify options with their default value where
8# possible, but leave them commented.  Uncommented options override the
9# default value.
10
11#Port 22
12#AddressFamily any
13#ListenAddress 0.0.0.0
14#ListenAddress ::
15
16#HostKey /etc/ssh/ssh_host_rsa_key
17#HostKey /etc/ssh/ssh_host_ecdsa_key
18#HostKey /etc/ssh/ssh_host_ed25519_key
19
20# Ciphers and keying
21#RekeyLimit default none
22
23# Logging
24#SyslogFacility AUTH
25#LogLevel INFO
26
27# Authentication:
28
29#LoginGraceTime 2m
30#PermitRootLogin prohibit-password
31#StrictModes yes
32#MaxAuthTries 6
33#MaxSessions 10
34
35#PubkeyAuthentication yes
36
37# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
38# but this is overridden so installations will only check .ssh/authorized_keys
39AuthorizedKeysFile	.ssh/authorized_keys
40
41#AuthorizedPrincipalsFile none
42
43#AuthorizedKeysCommand none
44#AuthorizedKeysCommandUser nobody
45
46# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
47#HostbasedAuthentication no
48# Change to yes if you don't trust ~/.ssh/known_hosts for
49# HostbasedAuthentication
50#IgnoreUserKnownHosts no
51# Don't read the user's ~/.rhosts and ~/.shosts files
52#IgnoreRhosts yes
53
54# To disable tunneled clear text passwords, change to no here!
55#PasswordAuthentication yes
56#PermitEmptyPasswords no
57
58# Change to no to disable s/key passwords
59#ChallengeResponseAuthentication yes
60
61#AllowAgentForwarding yes
62#AllowTcpForwarding yes
63#GatewayPorts no
64#X11Forwarding no
65#X11DisplayOffset 10
66#X11UseLocalhost yes
67#PermitTTY yes
68#PrintMotd yes
69#PrintLastLog yes
70#TCPKeepAlive yes
71#UseLogin no
72#PermitUserEnvironment no
73#Compression delayed
74#ClientAliveInterval 0
75#ClientAliveCountMax 3
76#UseDNS no
77#PidFile /var/run/sshd.pid
78#MaxStartups 10:30:100
79#PermitTunnel no
80#ChrootDirectory none
81#VersionAddendum none
82
83# no default banner path
84#Banner none
85
86# override default of no subsystems
87Subsystem	sftp	/usr/libexec/sftp-server
88
89# Example of overriding settings on a per-user basis
90#Match User anoncvs
91#	X11Forwarding no
92#	AllowTcpForwarding no
93#	PermitTTY no
94#	ForceCommand cvs server
95