home · contact · privacy
WIP.
[config] / all_new_2018 / linkable_etc_files / server / etc / ssh / sshd_config
1 #       $OpenBSD: sshd_config,v 1.100 2016/08/15 12:32:04 naddy 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 Port 22
14 Port 443  # plomlompom: used for networks where 22 is banned
15 #AddressFamily any
16 #ListenAddress 0.0.0.0
17 #ListenAddress ::
18
19 #HostKey /etc/ssh/ssh_host_rsa_key
20 #HostKey /etc/ssh/ssh_host_ecdsa_key
21 #HostKey /etc/ssh/ssh_host_ed25519_key
22
23 # Ciphers and keying
24 #RekeyLimit default none
25
26 # Logging
27 #SyslogFacility AUTH
28 #LogLevel INFO
29
30 # Authentication:
31
32 #LoginGraceTime 2m
33 PermitRootLogin no  # plomlompom's security rule
34 #StrictModes yes
35 #MaxAuthTries 6
36 #MaxSessions 10
37
38 #PubkeyAuthentication yes
39
40 # Expect .ssh/authorized_keys2 to be disregarded by default in future.
41 #AuthorizedKeysFile     .ssh/authorized_keys .ssh/authorized_keys2
42
43 #AuthorizedPrincipalsFile none
44
45 #AuthorizedKeysCommand none
46 #AuthorizedKeysCommandUser nobody
47
48 # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
49 #HostbasedAuthentication no
50 # Change to yes if you don't trust ~/.ssh/known_hosts for
51 # HostbasedAuthentication
52 #IgnoreUserKnownHosts no
53 # Don't read the user's ~/.rhosts and ~/.shosts files
54 #IgnoreRhosts yes
55
56 # To disable tunneled clear text passwords, change to no here!
57 #PasswordAuthentication yes
58 #PermitEmptyPasswords no
59
60 # Change to yes to enable challenge-response passwords (beware issues with
61 # some PAM modules and threads)
62 ChallengeResponseAuthentication no
63
64 # Kerberos options
65 #KerberosAuthentication no
66 #KerberosOrLocalPasswd yes
67 #KerberosTicketCleanup yes
68 #KerberosGetAFSToken no
69
70 # GSSAPI options
71 #GSSAPIAuthentication no
72 #GSSAPICleanupCredentials yes
73 #GSSAPIStrictAcceptorCheck yes
74 #GSSAPIKeyExchange no
75
76 # Set this to 'yes' to enable PAM authentication, account processing,
77 # and session processing. If this is enabled, PAM authentication will
78 # be allowed through the ChallengeResponseAuthentication and
79 # PasswordAuthentication.  Depending on your PAM configuration,
80 # PAM authentication via ChallengeResponseAuthentication may bypass
81 # the setting of "PermitRootLogin yes
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 ChallengeResponseAuthentication 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 no
95 #PrintLastLog yes
96 #TCPKeepAlive yes
97 #UseLogin no
98 #UsePrivilegeSeparation sandbox
99 #PermitUserEnvironment no
100 #Compression delayed
101 #ClientAliveInterval 0
102 #ClientAliveCountMax 3
103 #UseDNS no
104 #PidFile /var/run/sshd.pid
105 #MaxStartups 10:30:100
106 #PermitTunnel no
107 #ChrootDirectory none
108 #VersionAddendum none
109
110 # no default banner path
111 #Banner none
112
113 # Allow client to pass locale environment variables
114 AcceptEnv LANG LC_*
115
116 # override default of no subsystems
117 Subsystem sftp  /usr/lib/openssh/sftp-server
118
119 # Example of overriding settings on a per-user basis
120 #Match User anoncvs
121 #       X11Forwarding no
122 #       AllowTcpForwarding no
123 #       PermitTTY no
124 #       ForceCommand cvs server
125
126 ClientAliveInterval 120
127 PasswordAuthentication no  # plomlompom's security rule