]> git.pld-linux.org Git - packages/openssh.git/blame - opensshd.conf
- outdated
[packages/openssh.git] / opensshd.conf
CommitLineData
87606687
JB
1# This is the sshd server system-wide configuration file. See
2# sshd_config(5) for more information.
3
4# The strategy used for options in the default sshd_config shipped with
5# OpenSSH is to specify options with their default value where
6# possible, but leave them commented. Uncommented options change a
7# default value.
cf3b46d6
AF
8
9Port 22
4c299f69
AM
10Protocol 2
11#Protocol 2,1
3f1168a9
AM
12#ListenAddress 0.0.0.0
13#ListenAddress ::
87606687
JB
14
15# HostKey for protocol version 1
49b902b2 16#HostKey /etc/ssh/ssh_host_key
87606687
JB
17# HostKeys for protocol version 2
18#HostKey /etc/ssh/ssh_host_rsa_key
c94945b8 19#HostKey /etc/ssh/ssh_host_dsa_key
87606687
JB
20
21# Lifetime and size of ephemeral version 1 server key
cf3b46d6 22KeyRegenerationInterval 3600
87606687 23ServerKeyBits 768
3f1168a9
AM
24
25# Logging
87606687 26#obsoletes QuietMode and FascistLogging
3f1168a9
AM
27SyslogFacility AUTH
28LogLevel INFO
3f1168a9 29
87606687
JB
30# Authentication:
31
32LoginGraceTime 600
33PermitRootLogin no
34StrictModes yes
35
36RSAAuthentication yes
37#PubkeyAuthentication yes
38#AuthorizedKeysFile .ssh/authorized_keys
39
87606687
JB
40# Don't read the user's ~/.rhosts and ~/.shosts files
41IgnoreRhosts yes
3f1168a9
AM
42# For this to work you will also need host keys in /etc/ssh_known_hosts
43RhostsRSAAuthentication no
87606687
JB
44# similar for protocol version 2
45#HostbasedAuthentication no
46# Change to yes if you don't trust ~/.ssh/known_hosts for
47# RhostsRSAAuthentication and HostbasedAuthentication
48#IgnoreUserKnownHosts no
3f1168a9
AM
49
50# To disable tunneled clear text passwords, change to no here!
5f32e4e6 51PasswordAuthentication yes
3f1168a9 52PermitEmptyPasswords no
3f1168a9 53
87606687 54# Change to no to disable s/key passwords
5f32e4e6 55#ChallengeResponseAuthentication yes
87606687
JB
56
57# Kerberos options
3f1168a9
AM
58#KerberosAuthentication no
59#KerberosOrLocalPasswd yes
87606687
JB
60#KerberosTicketCleanup yes
61
3f1168a9 62#AFSTokenPassing no
3f1168a9 63
87606687
JB
64# Kerberos TGT Passing only works with the AFS kaserver
65#KerberosTgtPassing no
3f1168a9 66
28c81c59
JR
67# Set this to 'yes' to enable PAM authentication (via challenge-response)
68# and session processing. Depending on your PAM configuration, this may
69# bypass the setting of 'PasswordAuthentication'
70UsePAM yes
87606687 71
ea59aff7 72# Set this to 'yes' to enable support for chrooted user environment.
73# You must create such environment before you can use this feature.
74#UseChroot yes
75
87606687
JB
76X11Forwarding no
77X11DisplayOffset 10
78X11UseLocalhost yes
79PrintMotd yes
80#PrintLastLog yes
81KeepAlive yes
20cf0130 82UseLogin no
2de8e69e
AM
83
84# enabling this can cause some problems with for example pam_limit
85UsePrivilegeSeparation no
86
87606687
JB
87#Compression yes
88
89#MaxStartups 10
90# no default banner path
91#Banner /some/path
92#VerifyReverseMapping no
93
94# override default of no subsystems
b03ab210 95Subsystem sftp /usr/lib/openssh/sftp-server
547598f7
PG
96
97# Security advisory:
98# http://securitytracker.com/alerts/2004/Sep/1011143.html
99AllowTcpForwarding no
This page took 0.162414 seconds and 4 git commands to generate.