Browse code

Various updates

Veselin Kolev authored on 16/12/2019 06:59:13
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,153 @@
1
+#	$OpenBSD: sshd_config,v 1.80 2008/07/02 02:24:18 djm 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/local/bin:/bin:/usr/bin
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 change a
11
+# default value.
12
+
13
+Port 1025
14
+#AddressFamily any
15
+#ListenAddress 0.0.0.0
16
+#ListenAddress ::
17
+
18
+# Disable legacy (protocol version 1) support in the server for new
19
+# installations. In future the default will change to require explicit
20
+# activation of protocol 1
21
+Protocol 2
22
+
23
+# HostKey for protocol version 1
24
+#HostKey /etc/ssh/ssh_host_key
25
+# HostKeys for protocol version 2
26
+#
27
+# DSA host keys disabled, by Veselin Kolev <vlk@lcpe.uni-sofia.bg> - Fri, Jul 12, 2019
28
+#
29
+# Note: DSA algo is considered weak. Avoid DSA keys auto generation, by specifying:
30
+#
31
+#       AUTOCREATE_SERVER_KEYS=NO
32
+#
33
+#       in /etc/sysconfig/sshd and removing/renaming subsequently /etc/ssh/ssh_host_dsa_key,
34
+#       and /etc/ssh/ssh_host_dsa_key.pub
35
+#
36
+HostKey /etc/ssh/ssh_host_rsa_key
37
+HostKey /etc/ssh/ssh_host_ecdsa_key
38
+
39
+# Lifetime and size of ephemeral version 1 server key
40
+#KeyRegenerationInterval 1h
41
+#ServerKeyBits 1024
42
+
43
+# Logging
44
+# obsoletes QuietMode and FascistLogging
45
+#SyslogFacility AUTH
46
+SyslogFacility AUTHPRIV
47
+LogLevel VERBOSE
48
+
49
+# Authentication:
50
+
51
+#LoginGraceTime 2m
52
+#PermitRootLogin yes
53
+#StrictModes yes
54
+#MaxAuthTries 6
55
+#MaxSessions 10
56
+
57
+#RSAAuthentication yes
58
+#PubkeyAuthentication yes
59
+#AuthorizedKeysFile	.ssh/authorized_keys
60
+#AuthorizedKeysCommand none
61
+#AuthorizedKeysCommandRunAs nobody
62
+
63
+# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
64
+#RhostsRSAAuthentication no
65
+# similar for protocol version 2
66
+#HostbasedAuthentication no
67
+# Change to yes if you don't trust ~/.ssh/known_hosts for
68
+# RhostsRSAAuthentication and HostbasedAuthentication
69
+#IgnoreUserKnownHosts no
70
+# Don't read the user's ~/.rhosts and ~/.shosts files
71
+#IgnoreRhosts yes
72
+
73
+# To disable tunneled clear text passwords, change to no here!
74
+#PasswordAuthentication yes
75
+#PermitEmptyPasswords no
76
+PasswordAuthentication no 
77
+
78
+# Change to no to disable s/key passwords
79
+#ChallengeResponseAuthentication yes
80
+ChallengeResponseAuthentication no
81
+
82
+# Kerberos options
83
+#KerberosAuthentication no
84
+#KerberosOrLocalPasswd yes
85
+#KerberosTicketCleanup yes
86
+#KerberosGetAFSToken no
87
+#KerberosUseKuserok yes
88
+
89
+# GSSAPI options
90
+#GSSAPIAuthentication no
91
+GSSAPIAuthentication yes
92
+#GSSAPICleanupCredentials yes
93
+GSSAPICleanupCredentials yes
94
+#GSSAPIStrictAcceptorCheck yes
95
+#GSSAPIKeyExchange no
96
+
97
+# Set this to 'yes' to enable PAM authentication, account processing, 
98
+# and session processing. If this is enabled, PAM authentication will 
99
+# be allowed through the ChallengeResponseAuthentication and
100
+# PasswordAuthentication.  Depending on your PAM configuration,
101
+# PAM authentication via ChallengeResponseAuthentication may bypass
102
+# the setting of "PermitRootLogin without-password".
103
+# If you just want the PAM account and session checks to run without
104
+# PAM authentication, then enable this but set PasswordAuthentication
105
+# and ChallengeResponseAuthentication to 'no'.
106
+#UsePAM no
107
+UsePAM yes
108
+
109
+# Accept locale-related environment variables
110
+AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
111
+AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
112
+AcceptEnv LC_IDENTIFICATION LC_ALL LANGUAGE
113
+AcceptEnv XMODIFIERS
114
+
115
+#AllowAgentForwarding yes
116
+#AllowTcpForwarding yes
117
+#GatewayPorts no
118
+#X11Forwarding no
119
+X11Forwarding yes
120
+#X11DisplayOffset 10
121
+#X11UseLocalhost yes
122
+#PrintMotd yes
123
+#PrintLastLog yes
124
+#TCPKeepAlive yes
125
+#UseLogin no
126
+#UsePrivilegeSeparation yes
127
+#PermitUserEnvironment no
128
+#Compression delayed
129
+#ClientAliveInterval 0
130
+#ClientAliveCountMax 3
131
+#ShowPatchLevel no
132
+UseDNS no
133
+#PidFile /var/run/sshd.pid
134
+#MaxStartups 10
135
+#PermitTunnel no
136
+#ChrootDirectory none
137
+
138
+# no default banner path
139
+#Banner none
140
+
141
+# override default of no subsystems
142
+Subsystem	sftp	/usr/libexec/openssh/sftp-server
143
+
144
+# Example of overriding settings on a per-user basis
145
+#Match User anoncvs
146
+#	X11Forwarding no
147
+#	AllowTcpForwarding no
148
+#	ForceCommand cvs server
149
+
150
+Ciphers aes256-ctr,aes192-ctr
151
+MACs hmac-sha2-512,hmac-sha2-256,hmac-ripemd160,hmac-ripemd160@openssh.com
152
+KexAlgorithms diffie-hellman-group-exchange-sha256
153
+