summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/.git-dpm12
-rw-r--r--debian/.gitignore17
-rw-r--r--debian/.gitlab-ci.yml12
-rw-r--r--debian/NEWS347
-rw-r--r--debian/README.Debian295
-rwxr-xr-xdebian/adjust-openssl-dependencies36
-rwxr-xr-xdebian/agent-launch24
-rw-r--r--debian/changelog6061
-rw-r--r--debian/clean2
-rw-r--r--debian/control240
-rw-r--r--debian/copyright247
-rw-r--r--debian/faq.html1187
-rw-r--r--debian/gnome-ssh-askpass.151
-rw-r--r--debian/keygen-test/Makefile12
-rw-r--r--debian/keygen-test/getpid.c39
-rwxr-xr-xdebian/keygen-test/keygen-test12
-rw-r--r--debian/openssh-client-udeb.install3
-rw-r--r--debian/openssh-client.apport35
-rw-r--r--debian/openssh-client.dirs1
-rw-r--r--debian/openssh-client.docs5
-rwxr-xr-xdebian/openssh-client.install36
-rw-r--r--debian/openssh-client.links4
-rw-r--r--debian/openssh-client.lintian-overrides1
-rw-r--r--debian/openssh-client.maintscript1
-rw-r--r--debian/openssh-client.manpages2
-rw-r--r--debian/openssh-client.postinst44
-rw-r--r--debian/openssh-client.postrm22
-rw-r--r--debian/openssh-client.prerm39
-rw-r--r--debian/openssh-server-udeb.dirs1
-rw-r--r--debian/openssh-server-udeb.install2
-rw-r--r--debian/openssh-server.apport27
-rw-r--r--debian/openssh-server.config46
-rw-r--r--debian/openssh-server.dirs1
-rw-r--r--debian/openssh-server.examples1
-rwxr-xr-xdebian/openssh-server.install21
-rw-r--r--debian/openssh-server.links0
-rw-r--r--debian/openssh-server.maintscript3
-rw-r--r--debian/openssh-server.postinst166
-rw-r--r--debian/openssh-server.postrm35
-rw-r--r--debian/openssh-server.preinst18
-rw-r--r--debian/openssh-server.runit1
-rw-r--r--debian/openssh-server.ssh.default5
-rwxr-xr-xdebian/openssh-server.ssh.init166
-rw-r--r--debian/openssh-server.ssh.runscript/finish16
-rw-r--r--debian/openssh-server.ssh.runscript/run20
l---------debian/openssh-server.ssh.service1
-rw-r--r--debian/openssh-server.sshd.pam.in55
-rw-r--r--debian/openssh-server.templates23
-rw-r--r--debian/openssh-server.ucf-md5sum98
-rw-r--r--debian/openssh-server.ufw.profile4
-rw-r--r--debian/openssh-sftp-server.install2
-rw-r--r--debian/openssh-sftp-server.links1
-rw-r--r--debian/openssh-tests.install11
-rw-r--r--debian/patches/authorized-keys-man-symlink.patch26
-rw-r--r--debian/patches/conch-old-privkey-format.patch68
-rw-r--r--debian/patches/debian-banner.patch162
-rw-r--r--debian/patches/debian-config.patch270
-rw-r--r--debian/patches/dnssec-sshfp.patch94
-rw-r--r--debian/patches/doc-hash-tab-completion.patch28
-rw-r--r--debian/patches/gnome-ssh-askpass2-icon.patch26
-rw-r--r--debian/patches/gssapi.patch4002
-rw-r--r--debian/patches/keepalive-extensions.patch135
-rw-r--r--debian/patches/mention-ssh-keygen-on-keychange.patch44
-rw-r--r--debian/patches/no-openssl-version-status.patch62
-rw-r--r--debian/patches/openbsd-docs.patch148
-rw-r--r--debian/patches/package-versioning.patch47
-rw-r--r--debian/patches/restore-authorized_keys2.patch35
-rw-r--r--debian/patches/restore-tcp-wrappers.patch172
-rw-r--r--debian/patches/revert-ipqos-defaults.patch93
-rw-r--r--debian/patches/scp-quoting.patch41
-rw-r--r--debian/patches/selinux-role.patch472
-rw-r--r--debian/patches/series25
-rw-r--r--debian/patches/shell-path.patch39
-rw-r--r--debian/patches/ssh-agent-setgid.patch40
-rw-r--r--debian/patches/ssh-argv0.patch31
-rw-r--r--debian/patches/ssh-vulnkey-compat.patch42
-rw-r--r--debian/patches/syslog-level-silent.patch47
-rw-r--r--debian/patches/systemd-readiness.patch84
-rw-r--r--debian/patches/user-group-modes.patch210
-rw-r--r--debian/po/POTFILES.in1
-rw-r--r--debian/po/cs.po55
-rw-r--r--debian/po/da.po55
-rw-r--r--debian/po/de.po61
-rw-r--r--debian/po/es.po80
-rw-r--r--debian/po/fr.po59
-rw-r--r--debian/po/it.po58
-rw-r--r--debian/po/ja.po55
-rw-r--r--debian/po/nl.po60
-rw-r--r--debian/po/pt.po59
-rw-r--r--debian/po/pt_BR.po57
-rw-r--r--debian/po/ru.po57
-rw-r--r--debian/po/sv.po58
-rw-r--r--debian/po/templates.pot46
-rw-r--r--debian/po/tr.po58
-rwxr-xr-xdebian/rules229
-rwxr-xr-xdebian/run-tests39
-rw-r--r--debian/source/format1
-rw-r--r--debian/source/include-binaries1
-rw-r--r--debian/source/lintian-overrides2
-rw-r--r--debian/ssh-argv031
-rw-r--r--debian/ssh-argv0.164
-rw-r--r--debian/ssh-askpass-gnome.desktop12
-rw-r--r--debian/ssh-askpass-gnome.examples1
-rwxr-xr-xdebian/ssh-askpass-gnome.install3
-rw-r--r--debian/ssh-askpass-gnome.manpages1
-rw-r--r--debian/ssh-askpass-gnome.pngbin0 -> 6949 bytes
-rw-r--r--debian/ssh-askpass-gnome.postinst48
-rw-r--r--debian/ssh-askpass-gnome.prerm39
-rw-r--r--debian/ssh.maintscript1
-rw-r--r--debian/systemd/rescue-ssh.target6
-rw-r--r--debian/systemd/ssh-agent.override1
-rw-r--r--debian/systemd/ssh-agent.service11
-rwxr-xr-xdebian/systemd/ssh-session-cleanup11
-rw-r--r--debian/systemd/ssh-session-cleanup.service13
-rw-r--r--debian/systemd/ssh.service22
-rw-r--r--debian/systemd/ssh.socket12
-rw-r--r--debian/systemd/ssh@.service11
-rw-r--r--debian/tests/control10
-rwxr-xr-xdebian/tests/regress67
-rw-r--r--debian/upstream/signing-key.asc41
-rw-r--r--debian/watch3
121 files changed, 17453 insertions, 0 deletions
diff --git a/debian/.git-dpm b/debian/.git-dpm
new file mode 100644
index 000000000..3942a1891
--- /dev/null
+++ b/debian/.git-dpm
@@ -0,0 +1,12 @@
1# see git-dpm(1) from git-dpm package
23728919292c05983372954d27426f7d966813139
33728919292c05983372954d27426f7d966813139
42b2c99658e3e8ed452e28f88f9cdbcdfb2a461cb
52b2c99658e3e8ed452e28f88f9cdbcdfb2a461cb
6openssh_8.4p1.orig.tar.gz
769305059e10a60693ebe6f17731f962c9577535c
81742201
9debianTag="debian/%e%%%V"
10patchedTag="patched/%e%%%V"
11upstreamTag="upstream/%U"
12signature:323573568682eac265e1f69206bc98149a8e423e:683:openssh_8.4p1.orig.tar.gz.asc
diff --git a/debian/.gitignore b/debian/.gitignore
new file mode 100644
index 000000000..988323b00
--- /dev/null
+++ b/debian/.gitignore
@@ -0,0 +1,17 @@
1/*.debhelper*
2/*substvars
3/build-deb
4/build-udeb
5/files
6/keygen-test/key1
7/keygen-test/key1.pub
8/keygen-test/key2
9/keygen-test/key2.pub
10/openssh-client
11/openssh-client-udeb
12/openssh-server
13/openssh-server-udeb
14/ssh
15/ssh-askpass-gnome
16/ssh-krb5
17/tmp
diff --git a/debian/.gitlab-ci.yml b/debian/.gitlab-ci.yml
new file mode 100644
index 000000000..76ce17f74
--- /dev/null
+++ b/debian/.gitlab-ci.yml
@@ -0,0 +1,12 @@
1image: registry.gitlab.com/eighthave/ci-image-git-buildpackage:latest
2
3build:
4 artifacts:
5 paths:
6 - "*.deb"
7 expire_in: 1 day
8 script:
9 - gitlab-ci-git-buildpackage-all
10 except:
11 variables:
12 - $CI_COMMIT_TAG != null
diff --git a/debian/NEWS b/debian/NEWS
new file mode 100644
index 000000000..2d38891ea
--- /dev/null
+++ b/debian/NEWS
@@ -0,0 +1,347 @@
1openssh (1:8.4p1-1) unstable; urgency=medium
2
3 OpenSSH 8.4 includes a number of changes that may affect existing
4 configurations:
5
6 * ssh-keygen(1): the format of the attestation information optionally
7 recorded when a FIDO key is generated has changed. It now includes the
8 authenticator data needed to validate attestation signatures.
9
10 * The API between OpenSSH and the FIDO token middleware has changed and
11 the SSH_SK_VERSION_MAJOR version has been incremented as a result.
12 Third-party middleware libraries must support the current API version
13 (7) to work with OpenSSH 8.4.
14
15 -- Colin Watson <cjwatson@debian.org> Sun, 18 Oct 2020 12:07:48 +0100
16
17openssh (1:8.3p1-1) unstable; urgency=medium
18
19 OpenSSH 8.3 includes a number of changes that may affect existing
20 configurations:
21
22 * sftp(1): reject an argument of "-1" in the same way as ssh(1) and scp(1)
23 do instead of accepting and silently ignoring it.
24
25 -- Colin Watson <cjwatson@debian.org> Sun, 07 Jun 2020 13:44:04 +0100
26
27openssh (1:8.2p1-1) unstable; urgency=medium
28
29 OpenSSH 8.2 includes a number of changes that may affect existing
30 configurations:
31
32 * ssh(1), sshd(8), ssh-keygen(1): This release removes the "ssh-rsa"
33 (RSA/SHA1) algorithm from those accepted for certificate signatures
34 (i.e. the client and server CASignatureAlgorithms option) and will use
35 the rsa-sha2-512 signature algorithm by default when the ssh-keygen(1)
36 CA signs new certificates.
37
38 Certificates are at special risk to SHA1 collision vulnerabilities as
39 an attacker has effectively unlimited time in which to craft a
40 collision that yields them a valid certificate, far more than the
41 relatively brief LoginGraceTime window that they have to forge a host
42 key signature.
43
44 The OpenSSH certificate format includes a CA-specified (typically
45 random) nonce value near the start of the certificate that should make
46 exploitation of chosen-prefix collisions in this context challenging,
47 as the attacker does not have full control over the prefix that
48 actually gets signed. Nonetheless, SHA1 is now a demonstrably broken
49 algorithm and further improvements in attacks are highly likely.
50
51 OpenSSH releases prior to 7.2 do not support the newer RSA/SHA2
52 algorithms and will refuse to accept certificates signed by an OpenSSH
53 8.2+ CA using RSA keys unless the unsafe algorithm is explicitly
54 selected during signing ("ssh-keygen -t ssh-rsa"). Older
55 clients/servers may use another CA key type such as ssh-ed25519
56 (supported since OpenSSH 6.5) or one of the ecdsa-sha2-nistp256/384/521
57 types (supported since OpenSSH 5.7) instead if they cannot be upgraded.
58
59 * ssh(1), sshd(8): Remove diffie-hellman-group14-sha1 from the default
60 key exchange proposal for both the client and server.
61
62 * ssh-keygen(1): The command-line options related to the generation and
63 screening of safe prime numbers used by the
64 diffie-hellman-group-exchange-* key exchange algorithms have changed.
65 Most options have been folded under the -O flag.
66
67 * sshd(8): The sshd listener process title visible to ps(1) has changed
68 to include information about the number of connections that are
69 currently attempting authentication and the limits configured by
70 MaxStartups.
71
72 -- Colin Watson <cjwatson@debian.org> Fri, 21 Feb 2020 16:36:37 +0000
73
74openssh (1:8.1p1-1) unstable; urgency=medium
75
76 OpenSSH 8.1 includes a number of changes that may affect existing
77 configurations:
78
79 * ssh-keygen(1): when acting as a CA and signing certificates with an RSA
80 key, default to using the rsa-sha2-512 signature algorithm.
81 Certificates signed by RSA keys will therefore be incompatible with
82 OpenSSH versions prior to 7.2 unless the default is overridden (using
83 "ssh-keygen -t ssh-rsa -s ...").
84
85 -- Colin Watson <cjwatson@debian.org> Thu, 10 Oct 2019 10:23:19 +0100
86
87openssh (1:8.0p1-1) experimental; urgency=medium
88
89 OpenSSH 8.0 includes a number of changes that may affect existing
90 configurations:
91
92 * sshd(8): Remove support for obsolete "host/port" syntax.
93 Slash-separated host/port was added in 2001 as an alternative to
94 host:port syntax for the benefit of IPv6 users. These days there are
95 established standards for this like [::1]:22 and the slash syntax is
96 easily mistaken for CIDR notation, which OpenSSH supports for some
97 things. Remove the slash notation from ListenAddress and PermitOpen.
98
99 -- Colin Watson <cjwatson@debian.org> Sun, 09 Jun 2019 22:47:27 +0100
100
101openssh (1:7.9p1-1) unstable; urgency=medium
102
103 OpenSSH 7.9 includes a number of changes that may affect existing
104 configurations:
105
106 * ssh(1), sshd(8): the setting of the new CASignatureAlgorithms option
107 bans the use of DSA keys as certificate authorities.
108 * sshd(8): the authentication success/failure log message has changed
109 format slightly. It now includes the certificate fingerprint
110 (previously it included only key ID and CA key fingerprint).
111
112 -- Colin Watson <cjwatson@debian.org> Sun, 21 Oct 2018 10:39:24 +0100
113
114openssh (1:7.8p1-1) unstable; urgency=medium
115
116 OpenSSH 7.8 includes a number of changes that may affect existing
117 configurations:
118
119 * ssh-keygen(1): Write OpenSSH format private keys by default instead of
120 using OpenSSL's PEM format. The OpenSSH format, supported in OpenSSH
121 releases since 2014 and described in the PROTOCOL.key file in the
122 source distribution, offers substantially better protection against
123 offline password guessing and supports key comments in private keys.
124 If necessary, it is possible to write old PEM-style keys by adding "-m
125 PEM" to ssh-keygen's arguments when generating or updating a key.
126 * sshd(8): Remove internal support for S/Key multiple factor
127 authentication. S/Key may still be used via PAM or BSD auth.
128 * ssh(1): Remove vestigial support for running ssh(1) as setuid. This
129 used to be required for hostbased authentication and the (long gone)
130 rhosts-style authentication, but has not been necessary for a long
131 time. Attempting to execute ssh as a setuid binary, or with uid !=
132 effective uid will now yield a fatal error at runtime.
133 * sshd(8): The semantics of PubkeyAcceptedKeyTypes and the similar
134 HostbasedAcceptedKeyTypes options have changed. These now specify
135 signature algorithms that are accepted for their respective
136 authentication mechanism, where previously they specified accepted key
137 types. This distinction matters when using the RSA/SHA2 signature
138 algorithms "rsa-sha2-256", "rsa-sha2-512" and their certificate
139 counterparts. Configurations that override these options but omit
140 these algorithm names may cause unexpected authentication failures (no
141 action is required for configurations that accept the default for these
142 options).
143 * sshd(8): The precedence of session environment variables has changed.
144 ~/.ssh/environment and environment="..." options in authorized_keys
145 files can no longer override SSH_* variables set implicitly by sshd.
146 * ssh(1)/sshd(8): The default IPQoS used by ssh/sshd has changed. They
147 will now use DSCP AF21 for interactive traffic and CS1 for bulk. For a
148 detailed rationale, please see the commit message:
149 https://cvsweb.openbsd.org/src/usr.bin/ssh/readconf.c#rev1.284
150
151 -- Colin Watson <cjwatson@debian.org> Thu, 30 Aug 2018 15:35:27 +0100
152
153openssh (1:7.6p1-1) unstable; urgency=medium
154
155 OpenSSH 7.6 includes a number of changes that may affect existing
156 configurations:
157
158 * ssh(1): Delete SSH protocol version 1 support, associated configuration
159 options and documentation.
160 * ssh(1)/sshd(8): Remove support for the hmac-ripemd160 MAC.
161 * ssh(1)/sshd(8): Remove support for the arcfour, blowfish and CAST
162 ciphers.
163 * Refuse RSA keys <1024 bits in length and improve reporting for keys
164 that do not meet this requirement.
165 * ssh(1): Do not offer CBC ciphers by default.
166
167 -- Colin Watson <cjwatson@debian.org> Fri, 06 Oct 2017 12:36:48 +0100
168
169openssh (1:7.5p1-1) experimental; urgency=medium
170
171 OpenSSH 7.5 includes a number of changes that may affect existing
172 configurations:
173
174 * This release deprecates the sshd_config UsePrivilegeSeparation option,
175 thereby making privilege separation mandatory.
176
177 * The format of several log messages emitted by the packet code has
178 changed to include additional information about the user and their
179 authentication state. Software that monitors ssh/sshd logs may need to
180 account for these changes. For example:
181
182 Connection closed by user x 1.1.1.1 port 1234 [preauth]
183 Connection closed by authenticating user x 10.1.1.1 port 1234 [preauth]
184 Connection closed by invalid user x 1.1.1.1 port 1234 [preauth]
185
186 Affected messages include connection closure, timeout, remote
187 disconnection, negotiation failure and some other fatal messages
188 generated by the packet code.
189
190 -- Colin Watson <cjwatson@debian.org> Sun, 02 Apr 2017 02:58:01 +0100
191
192openssh (1:7.4p1-7) unstable; urgency=medium
193
194 This version restores the default for AuthorizedKeysFile to search both
195 ~/.ssh/authorized_keys and ~/.ssh/authorized_keys2, as was the case in
196 Debian configurations before 1:7.4p1-1. Upstream intends to phase out
197 searching ~/.ssh/authorized_keys2 by default, so you should ensure that
198 you are only using ~/.ssh/authorized_keys, at least for critical
199 administrative access; do not assume that the current default will remain
200 in place forever.
201
202 -- Colin Watson <cjwatson@debian.org> Sun, 05 Mar 2017 02:12:42 +0000
203
204openssh (1:7.4p1-1) unstable; urgency=medium
205
206 OpenSSH 7.4 includes a number of changes that may affect existing
207 configurations:
208
209 * ssh(1): Remove 3des-cbc from the client's default proposal. 64-bit
210 block ciphers are not safe in 2016 and we don't want to wait until
211 attacks like SWEET32 are extended to SSH. As 3des-cbc was the only
212 mandatory cipher in the SSH RFCs, this may cause problems connecting to
213 older devices using the default configuration, but it's highly likely
214 that such devices already need explicit configuration for key exchange
215 and hostkey algorithms already anyway.
216 * sshd(8): Remove support for pre-authentication compression. Doing
217 compression early in the protocol probably seemed reasonable in the
218 1990s, but today it's clearly a bad idea in terms of both cryptography
219 (cf. multiple compression oracle attacks in TLS) and attack surface.
220 Pre-auth compression support has been disabled by default for >10
221 years. Support remains in the client.
222 * ssh-agent will refuse to load PKCS#11 modules outside a whitelist of
223 trusted paths by default. The path whitelist may be specified at
224 run-time.
225 * sshd(8): When a forced-command appears in both a certificate and an
226 authorized keys/principals command= restriction, sshd will now refuse
227 to accept the certificate unless they are identical. The previous
228 (documented) behaviour of having the certificate forced-command
229 override the other could be a bit confusing and error-prone.
230 * sshd(8): Remove the UseLogin configuration directive and support for
231 having /bin/login manage login sessions.
232
233 The unprivileged sshd process that deals with pre-authentication network
234 traffic is now subject to additional sandboxing restrictions by default:
235 that is, the default sshd_config now sets UsePrivilegeSeparation to
236 "sandbox" rather than "yes". This has been the case upstream for a while,
237 but until now the Debian configuration diverged unnecessarily.
238
239 -- Colin Watson <cjwatson@debian.org> Tue, 27 Dec 2016 18:01:46 +0000
240
241openssh (1:7.2p1-1) unstable; urgency=medium
242
243 OpenSSH 7.2 disables a number of legacy cryptographic algorithms by
244 default in ssh:
245
246 * Several ciphers blowfish-cbc, cast128-cbc, all arcfour variants and the
247 rijndael-cbc aliases for AES.
248 * MD5-based and truncated HMAC algorithms.
249
250 These algorithms are already disabled by default in sshd.
251
252 -- Colin Watson <cjwatson@debian.org> Tue, 08 Mar 2016 11:47:20 +0000
253
254openssh (1:7.1p1-2) unstable; urgency=medium
255
256 OpenSSH 7.0 disables several pieces of weak, legacy, and/or unsafe
257 cryptography.
258
259 * Support for the legacy SSH version 1 protocol is disabled by default at
260 compile time. Note that this also means that the Cipher keyword in
261 ssh_config(5) is effectively no longer usable; use Ciphers instead for
262 protocol 2. The openssh-client-ssh1 package includes "ssh1", "scp1",
263 and "ssh-keygen1" binaries which you can use if you have no alternative
264 way to connect to an outdated SSH1-only server; please contact the
265 server administrator or system vendor in such cases and ask them to
266 upgrade.
267 * Support for the 1024-bit diffie-hellman-group1-sha1 key exchange is
268 disabled by default at run-time. It may be re-enabled using the
269 instructions at http://www.openssh.com/legacy.html
270 * Support for ssh-dss, ssh-dss-cert-* host and user keys is disabled by
271 default at run-time. These may be re-enabled using the instructions at
272 http://www.openssh.com/legacy.html
273 * Support for the legacy v00 cert format has been removed.
274
275 Future releases will retire more legacy cryptography, including:
276
277 * Refusing all RSA keys smaller than 1024 bits (the current minimum is
278 768 bits).
279 * Several ciphers will be disabled by default: blowfish-cbc, cast128-cbc,
280 all arcfour variants, and the rijndael-cbc aliases for AES.
281 * MD5-based HMAC algorithms will be disabled by default.
282
283 -- Colin Watson <cjwatson@debian.org> Tue, 08 Dec 2015 15:33:08 +0000
284
285openssh (1:6.9p1-1) unstable; urgency=medium
286
287 UseDNS now defaults to 'no'. Configurations that match against the client
288 host name (via sshd_config or authorized_keys) may need to re-enable it or
289 convert to matching against addresses.
290
291 -- Colin Watson <cjwatson@debian.org> Thu, 20 Aug 2015 10:38:58 +0100
292
293openssh (1:6.7p1-5) unstable; urgency=medium
294
295 openssh-server 1:6.7p1-4 changed the default setting of AcceptEnv to list
296 a number of specific LC_FOO variables rather than the wildcard LC_*. I
297 have since been persuaded that this was a bad idea and have reverted it,
298 but it is difficult to automatically undo the change to
299 /etc/ssh/sshd_config without compounding the problem (that of modifying
300 configuration that some users did not want to be modified) further. Most
301 users who upgraded via version 1:6.7p1-4 should restore the previous value
302 of "AcceptEnv LANG LC_*" in /etc/ssh/sshd_config.
303
304 -- Colin Watson <cjwatson@debian.org> Sun, 22 Mar 2015 23:09:32 +0000
305
306openssh (1:5.4p1-2) unstable; urgency=low
307
308 Smartcard support is now available using PKCS#11 tokens. If you were
309 previously using an unofficial build of Debian's OpenSSH package with
310 OpenSC-based smartcard support added, then note that commands like
311 'ssh-add -s 0' will no longer work; you need to use 'ssh-add -s
312 /usr/lib/opensc-pkcs11.so' instead.
313
314 -- Colin Watson <cjwatson@debian.org> Sat, 10 Apr 2010 01:08:59 +0100
315
316openssh (1:3.8.1p1-9) experimental; urgency=low
317
318 The ssh package has been split into openssh-client and openssh-server. If
319 you had previously requested that the sshd server should not be run, then
320 that request will still be honoured. However, the recommended approach is
321 now to remove the openssh-server package if you do not want to run sshd.
322 You can remove the old /etc/ssh/sshd_not_to_be_run marker file after doing
323 that.
324
325 -- Colin Watson <cjwatson@debian.org> Mon, 2 Aug 2004 20:48:54 +0100
326
327openssh (1:3.5p1-1) unstable; urgency=low
328
329 This version of OpenSSH disables the environment option for public keys by
330 default, in order to avoid certain attacks (for example, LD_PRELOAD). If
331 you are using this option in an authorized_keys file, beware that the keys
332 in question will no longer work until the option is removed.
333
334 To re-enable this option, set "PermitUserEnvironment yes" in
335 /etc/ssh/sshd_config after the upgrade is complete, taking note of the
336 warning in the sshd_config(5) manual page.
337
338 -- Colin Watson <cjwatson@debian.org> Sat, 26 Oct 2002 19:41:51 +0100
339
340openssh (1:3.0.1p1-1) unstable; urgency=high
341
342 As of version 3, OpenSSH no longer uses separate files for ssh1 and ssh2
343 keys. This means the authorized_keys2 and known_hosts2 files are no longer
344 needed. They will still be read in order to maintain backward
345 compatibility.
346
347 -- Matthew Vernon <matthew@debian.org> Thu, 28 Nov 2001 17:43:01 +0000
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 000000000..dbe6c2958
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,295 @@
1OpenSSH for Debian
2------------------
3
4UPGRADE ISSUES
5==============
6
7PermitRootLogin
8---------------
9
10As of 1:6.6p1-1, new installations will be set to "PermitRootLogin
11without-password" (or the synonymous "PermitRootLogin prohibit-password" as
12of 1:7.1p1-1). This disables password authentication for root, foiling
13password dictionary attacks on the root user. Some sites may wish to use
14the stronger "PermitRootLogin forced-commands-only" or "PermitRootLogin no",
15but note that "PermitRootLogin no" will break setups that SSH to root with a
16forced command to take full-system backups. You can use PermitRootLogin in
17a Match block if you want finer-grained control here.
18
19For many years Debian's OpenSSH packaging used "PermitRootLogin yes", in
20line with upstream. To avoid breaking local setups, this is still true for
21installations upgraded from before 1:6.6p1-1. If you wish to change this,
22you should edit /etc/ssh/sshd_config, change it manually, and run "service
23ssh restart" as root.
24
25Disabling PermitRootLogin means that an attacker possessing credentials for
26the root account (any credentials in the case of "yes", or private key
27material in the case of "prohibit-password") must compromise a normal user
28account rather than being able to SSH directly to root. Be careful to avoid
29a false illusion of security if you change this setting; any account you
30escalate to root from should be considered equivalent to root for the
31purposes of security against external attack. You might for example disable
32it if you know you will only ever log in as root from the physical console.
33
34Since the root account does not generally have non-password credentials
35unless you explicitly install an SSH public key in its
36~/.ssh/authorized_keys, which you presumably only do if you want to SSH to
37it, "prohibit-password" should be a reasonable default for most sites.
38
39As of OpenSSH 7.0, this is the upstream default.
40
41For further discussion, see:
42
43 https://bugs.debian.org/298138
44 https://bugzilla.mindrot.org/show_bug.cgi?id=2164
45
46X11 Forwarding
47--------------
48
49ssh's default for ForwardX11 has been changed to ``no'' because it has
50been pointed out that logging into remote systems administered by
51untrusted people is likely to open you up to X11 attacks, so you
52should have to actively decide that you trust the remote machine's
53root, before enabling X11. I strongly recommend that you do this on a
54machine-by-machine basis, rather than just enabling it in the default
55host settings.
56
57In order for X11 forwarding to work, you need to install xauth on the
58server. In Debian this is in the xbase-clients package.
59
60As of OpenSSH 3.1, the remote $DISPLAY uses localhost by default to reduce
61the security risks of X11 forwarding. Look up X11UseLocalhost in
62sshd_config(8) if this is a problem.
63
64OpenSSH 3.8 invented ForwardX11Trusted, which when set to no causes the
65ssh client to create an untrusted X cookie so that attacks on the
66forwarded X11 connection can't become attacks on X clients on the remote
67machine. However, this has some problems in implementation - notably a
68very short timeout of the untrusted cookie - breaks large numbers of
69existing setups, and generally seems immature. The Debian package
70therefore sets the default for this option to "yes" (in ssh itself,
71rather than in ssh_config).
72
73Fallback to RSH
74---------------
75
76The default for this setting has been changed from Yes to No, for
77security reasons, and to stop the delay attempting to rsh to machines
78that don't offer the service. Simply switch it back on in either
79/etc/ssh/ssh_config or ~/.ssh/config for those machines that you need
80it for.
81
82Setgid ssh-agent and environment variables
83------------------------------------------
84
85As of version 1:3.5p1-1, ssh-agent is installed setgid to prevent ptrace()
86attacks retrieving private key material. This has the side-effect of causing
87glibc to remove certain environment variables which might have security
88implications for set-id programs, including LD_PRELOAD, LD_LIBRARY_PATH, and
89TMPDIR.
90
91If you need to set any of these environment variables, you will need to do
92so in the program exec()ed by ssh-agent. This may involve creating a small
93wrapper script.
94
95Symlink Hostname invocation
96---------------------------
97
98This version of ssh no longer includes support for invoking ssh with the
99hostname as the name of the file run. People wanting this support should
100use the ssh-argv0 script.
101
102=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
103
104OTHER ISSUES
105============
106
107Authorization Forwarding
108------------------------
109
110Similarly, root on a remote server could make use of your ssh-agent
111(while you're logged into their machine) to obtain access to machines
112which trust your keys. This feature is therefore disabled by default.
113You should only re-enable it for those hosts (in your ~/.ssh/config or
114/etc/ssh/ssh_config) where you are confident that the remote machine
115is not a threat.
116
117Problems logging in with RSA authentication
118-------------------------------------------
119
120If you have trouble logging in with RSA authentication then the
121problem is probably caused by the fact that you have your home
122directory writable by group, as well as user (this is the default on
123Debian systems).
124
125Depending upon other settings on your system (i.e. other users being
126in your group) this could open a security hole, so you will need to
127make your home directory writable only by yourself. Run this command,
128as yourself:
129
130 chmod g-w ~/
131
132to remove group write permissions. If you use ssh-copy-id to install your
133keys, it does this for you.
134
135-L option of ssh nonfree
136------------------------
137
138non-free ssh supported the usage of the option -L to use a non privileged
139port for scp. This option will not be supported by scp from openssh.
140
141Please use instead scp -o "UsePrivilegedPort=no" as documented in the
142manpage to scp itself.
143
144Problem logging in because of TCP-Wrappers
145------------------------------------------
146
147ssh is compiled with support for tcp-wrappers. So if you can no longer
148log into your system, please check that /etc/hosts.allow and /etc/hosts.deny
149are configured so that ssh is not blocked.
150
151Kerberos support
152----------------
153
154ssh is now compiled with Kerberos support. Unfortunately, privilege
155separation is incompatible with parts of Kerberos support for protocol 2;
156you may need to run kinit after logging in.
157
158Interoperability between scp and the ssh.com SSH server
159-------------------------------------------------------
160
161In version 2 and greater of the commercial SSH server produced by SSH
162Communications Security, scp was changed to use SFTP (SSH2's file transfer
163protocol) instead of the traditional rcp-over-ssh, thereby breaking
164compatibility. The OpenSSH developers regard this as a bug in the ssh.com
165server, and do not currently intend to change OpenSSH's scp to match.
166
167Workarounds for this problem are to install scp1 on the server (scp2 will
168fall back to it), to use sftp, or to use some other transfer mechanism such
169as rsync-over-ssh or tar-over-ssh.
170
171Running sshd from inittab
172-------------------------
173
174Some people find it useful to run the sshd server from inittab, to make sure
175that it always stays running. To do this, stop sshd ('service ssh stop'),
176add the following line to /etc/inittab, and run 'telinit q':
177
178 ss:2345:respawn:/usr/sbin/sshd -D
179
180If you do this, note that you will need to stop sshd being started in the
181normal way ('update-rc.d ssh disable') and that you will need to restart
182this sshd manually on upgrades.
183
184Per-connection sshd instances with systemd
185------------------------------------------
186
187If you want to reconfigure systemd to listen on port 22 itself and launch an
188instance of sshd for each connection (inetd-style socket activation), then
189you can run:
190
191 systemctl stop ssh.service
192 systemctl start ssh.socket
193
194To make this permanent:
195
196 systemctl disable ssh.service
197 systemctl enable ssh.socket
198
199This may be appropriate in environments where minimal footprint is critical
200(e.g. cloud guests). Be aware that this bypasses MaxStartups, and systemd's
201MaxConnections cannot quite replace this as it cannot distinguish between
202authenticated and unauthenticated connections; see
203https://bugzilla.redhat.com/show_bug.cgi?id=963268 for more discussion.
204
205The provided ssh.socket unit file sets ListenStream=22. If you need to have
206it listen on a different address or port, then you will need to do this as
207follows (modifying ListenStream to match your requirements):
208
209 mkdir -p /etc/systemd/system/ssh.socket.d
210 cat >/etc/systemd/system/ssh.socket.d/listen.conf <<EOF
211 [Socket]
212 ListenStream=2222
213 EOF
214 systemctl daemon-reload
215
216See systemd.socket(5) for details.
217
218Terminating SSH sessions cleanly on shutdown/reboot with systemd
219----------------------------------------------------------------
220
221If you have libpam-systemd >= 230 installed (following openssh-server's
222Recommends) and "UsePAM yes" in sshd_config (the default configuration
223shipped by this package), then SSH sessions will be terminated cleanly when
224the server is shut down or rebooted.
225
226If either of these conditions does not hold, then you may find that SSH
227sessions hang silently when the server is shut down or rebooted. If you do
228not want to use PAM or configure it properly for whatever reason, then you
229can instead copy
230/usr/share/doc/openssh-server/examples/ssh-session-cleanup.service to
231/etc/systemd/system/ and run "systemctl enable ssh-session-cleanup.service".
232
233Non-systemd users may find /usr/lib/openssh/ssh-session-cleanup helpful if
234they have a similar problem, although at present there is no system
235integration for this for anything other than systemd.
236
237SSH protocol 1 server support removed
238-------------------------------------
239
240sshd(8) no longer supports the old SSH protocol 1, so all the configuration
241options related to it are now deprecated and should be removed from
242/etc/ssh/sshd_config. These are:
243
244 KeyRegenerationInterval
245 RSAAuthentication
246 RhostsRSAAuthentication
247 ServerKeyBits
248
249The Protocol option is also no longer needed, although it is silently
250ignored rather than deprecated.
251
252if-up hook removed
253------------------
254
255openssh-server previously shipped an if-up hook that restarted sshd when a
256network interface came up. This generally caused more problems than it
257solved: for instance, it means that sshd stops listening briefly while being
258restarted, which can cause problems in some environments, particularly
259automated tests.
260
261The only known situation where the if-up hook was useful was when
262sshd_config was changed to add ListenAddress entries for particular IP
263addresses, overriding the default of listening on all addresses, and the
264system is one that often roams between networks. In such a situation, it is
265better to remove ListenAddress entries from sshd_config (restoring it to the
266default behaviour) and instead use firewall rules to restrict incoming SSH
267connections to only the desired interfaces or addresses.
268
269For further discussion, see:
270
271 https://bugs.launchpad.net/bugs/1674330
272
273IPQoS defaults reverted to pre-7.8 values
274-----------------------------------------
275
276OpenSSH 7.8 changed the default IPQoS settings to use DSCP AF21 for
277interactive traffic and CS1 for bulk. This caused some problems with other
278software ("iptables -m tos" and VMware), so Debian's OpenSSH reverts this
279change for the time being.
280
281This is *temporary*, and we expect to come back into sync with upstream
282OpenSSH once those other issues have been fixed. If you want to restore the
283upstream default, add this to ssh_config and sshd_config:
284
285 IPQoS af21 cs1
286
287For further discussion, see:
288
289 https://bugs.debian.org/923879
290 https://bugs.debian.org/926229
291 https://bugs.launchpad.net/1822370
292
293--
294Matthew Vernon <matthew@debian.org>
295Colin Watson <cjwatson@debian.org>
diff --git a/debian/adjust-openssl-dependencies b/debian/adjust-openssl-dependencies
new file mode 100755
index 000000000..1cd7f2997
--- /dev/null
+++ b/debian/adjust-openssl-dependencies
@@ -0,0 +1,36 @@
1#! /bin/sh
2# Attempt to tighten libssl dependencies to match the check in entropy.c.
3# Must be run after dpkg-shlibdeps.
4
5client=debian/openssh-client.substvars
6server=debian/openssh-server.substvars
7
8libssl_version="$(dpkg-query -W libssl-dev 2>/dev/null | cut -f2)"
9if [ -z "$libssl_version" ]; then
10 echo "Can't find libssl-dev version; leaving dependencies alone."
11 exit 0
12fi
13libssl_version="$(echo "$libssl_version" | sed 's/[a-z-].*//')"
14
15libssl_package="$(sed -n 's/.*[= ]\(libssl[0-9][a-z0-9+.-]*\).*/\1/p' "$client")"
16if [ "$libssl_package" ]; then
17 new_dep="$libssl_package (>= $libssl_version)"
18 sed -i "/^shlibs:Depends=/s/\$/, $new_dep/" "$client"
19 sed -i "/^shlibs:Depends=/s/\$/, $new_dep/" "$server"
20fi
21
22client_udeb=debian/openssh-client-udeb.substvars
23server_udeb=debian/openssh-server-udeb.substvars
24
25libcrypto_package="$(sed -n 's/.*[= ]\(libcrypto[0-9][a-z0-9+.-]*\).*/\1/p' "$client_udeb")"
26if [ "$libcrypto_package" ]; then
27 new_dep="$libcrypto_package (>= $libssl_version)"
28 if [ -e "$client_udeb" ]; then
29 sed -i "/^shlibs:Depends=/s/\$/, $new_dep/" "$client_udeb"
30 fi
31 if [ -e "$server_udeb" ]; then
32 sed -i "/^shlibs:Depends=/s/\$/, $new_dep/" "$server_udeb"
33 fi
34fi
35
36exit 0
diff --git a/debian/agent-launch b/debian/agent-launch
new file mode 100755
index 000000000..3b2abdbf7
--- /dev/null
+++ b/debian/agent-launch
@@ -0,0 +1,24 @@
1#!/bin/sh
2# helper script for launching ssh-agent, used by systemd unit
3set -e
4
5if [ ! -d "$XDG_RUNTIME_DIR" ]; then
6 # shellcheck disable=SC2016
7 echo 'This needs $XDG_RUNTIME_DIR to be set' >&2
8 exit 1
9fi
10
11if [ "$1" = start ]; then
12 if [ -z "$SSH_AUTH_SOCK" ] && grep -s -q '^use-ssh-agent$' /etc/X11/Xsession.options; then
13 S="$XDG_RUNTIME_DIR/openssh_agent"
14 dbus-update-activation-environment --verbose --systemd SSH_AUTH_SOCK="$S" SSH_AGENT_LAUNCHER=openssh
15 exec ssh-agent -D -a "$S"
16 fi
17elif [ "$1" = stop ]; then
18 if [ "$SSH_AGENT_LAUNCHER" = openssh ]; then
19 dbus-update-activation-environment --systemd SSH_AUTH_SOCK=
20 fi
21else
22 echo "Unknown command $1" >&2
23 exit 1
24fi
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 000000000..03d7a0af4
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6061 @@
1openssh (1:8.4p1-1) UNRELEASED; urgency=medium
2
3 * New upstream release (https://www.openssh.com/txt/release-8.4):
4 - [SECURITY] ssh-agent(1): restrict ssh-agent from signing web
5 challenges for FIDO/U2F keys.
6 - [SECURITY] ssh-keygen(1): Enable FIDO 2.1 credProtect extension when
7 generating a FIDO resident key.
8 - ssh-keygen(1): the format of the attestation information optionally
9 recorded when a FIDO key is generated has changed. It now includes the
10 authenticator data needed to validate attestation signatures.
11 - The API between OpenSSH and the FIDO token middleware has changed and
12 the SSH_SK_VERSION_MAJOR version has been incremented as a result.
13 Third-party middleware libraries must support the current API version
14 (7) to work with OpenSSH 8.4.
15 - ssh(1), ssh-keygen(1): support for FIDO keys that require a PIN for
16 each use. These keys may be generated using ssh-keygen using a new
17 "verify-required" option. When a PIN-required key is used, the user
18 will be prompted for a PIN to complete the signature operation.
19 - sshd(8): authorized_keys now supports a new "verify-required" option
20 to require FIDO signatures assert that the token verified that the
21 user was present before making the signature. The FIDO protocol
22 supports multiple methods for user-verification, but currently OpenSSH
23 only supports PIN verification.
24 - sshd(8), ssh-keygen(1): add support for verifying FIDO webauthn
25 signatures. Webauthn is a standard for using FIDO keys in web
26 browsers. These signatures are a slightly different format to plain
27 FIDO signatures and thus require explicit support.
28 - ssh(1): allow some keywords to expand shell-style ${ENV} environment
29 variables. The supported keywords are CertificateFile, ControlPath,
30 IdentityAgent and IdentityFile, plus LocalForward and RemoteForward
31 when used for Unix domain socket paths.
32 - ssh(1), ssh-agent(1): allow some additional control over the use of
33 ssh-askpass via a new $SSH_ASKPASS_REQUIRE environment variable,
34 including forcibly enabling and disabling its use (closes: #368657).
35 - ssh(1): allow ssh_config(5)'s AddKeysToAgent keyword accept a time
36 limit for keys in addition to its current flag options. Time-limited
37 keys will automatically be removed from ssh-agent after their expiry
38 time has passed.
39 - scp(1), sftp(1): allow the -A flag to explicitly enable agent
40 forwarding in scp and sftp. The default remains to not forward an
41 agent, even when ssh_config enables it.
42 - ssh(1): add a '%k' TOKEN that expands to the effective HostKey of the
43 destination. This allows, e.g., keeping host keys in individual files
44 using "UserKnownHostsFile ~/.ssh/known_hosts.d/%k" (closes: #481250).
45 - ssh(1): add %-TOKEN, environment variable and tilde expansion to the
46 UserKnownHostsFile directive, allowing the path to be completed by the
47 configuration.
48 - ssh-keygen(1): allow "ssh-add -d -" to read keys to be deleted from
49 stdin.
50 - sshd(8): improve logging for MaxStartups connection throttling. sshd
51 will now log when it starts and stops throttling and periodically
52 while in this state.
53 - ssh(1), ssh-keygen(1): better support for multiple attached FIDO
54 tokens. In cases where OpenSSH cannot unambiguously determine which
55 token to direct a request to, the user is now required to select a
56 token by touching it. In cases of operations that require a PIN to be
57 verified, this avoids sending the wrong PIN to the wrong token and
58 incrementing the token's PIN failure counter (tokens effectively erase
59 their keys after too many PIN failures).
60 - sshd(8): fix Include before Match in sshd_config (LP: #1885990).
61 - ssh(1): close stdin/out/error when forking after authentication
62 completes ("ssh -f ...").
63 - ssh(1), sshd(8): limit the amount of channel input data buffered,
64 avoiding peers that advertise large windows but are slow to read from
65 causing high memory consumption.
66 - ssh-agent(1): handle multiple requests sent in a single write() to the
67 agent.
68 - sshd(8): allow sshd_config longer than 256k.
69 - sshd(8): avoid spurious "Unable to load host key" message when sshd
70 load a private key but no public counterpart.
71 - ssh(1): prefer the default hostkey algorithm list whenever we have a
72 hostkey that matches its best-preference algorithm.
73 - sshd(1): when ordering the hostkey algorithms to request from a
74 server, prefer certificate types if the known_hosts files contain a
75 key marked as a @cert-authority.
76 - ssh(1): perform host key fingerprint comparisons for the "Are you sure
77 you want to continue connecting (yes/no/[fingerprint])?" prompt with
78 case sensitivity.
79 - sshd(8): ensure that address/masklen mismatches in sshd_config yield
80 fatal errors at daemon start time rather than later when they are
81 evaluated.
82 - ssh-keygen(1): ensure that certificate extensions are lexically
83 sorted. Previously if the user specified a custom extension then the
84 everything would be in order except the custom ones.
85 - ssh(1): also compare username when checking for JumpHost loops.
86 - ssh-keygen(1): preserve group/world read permission on known_hosts
87 files across runs of "ssh-keygen -Rf /path". The old behaviour was to
88 remove all rights for group/other.
89 - ssh-keygen(1): Mention the [-a rounds] flag in the ssh-keygen manual
90 page and usage().
91 - sshd(8): explicitly construct path to ~/.ssh/rc rather than relying on
92 it being relative to the current directory, so that it can still be
93 found if the shell startup changes its directory.
94 - sshd(8): when redirecting sshd's log output to a file, undo this
95 redirection after the session child process is forked(). Fixes missing
96 log messages when using this feature under some circumstances.
97 - sshd(8): start ClientAliveInterval bookkeeping before first pass
98 through select() loop; fixed theoretical case where busy sshd may
99 ignore timeouts from client.
100 - ssh(1): only reset the ServerAliveInterval check when we receive
101 traffic from the server and ignore traffic from a port forwarding
102 client, preventing a client from keeping a connection alive when it
103 should be terminated.
104 - ssh-keygen(1): avoid spurious error message when ssh-keygen creates
105 files outside ~/.ssh.
106 - sftp-client(1): fix off-by-one error that caused sftp downloads to
107 make one more concurrent request that desired. This prevented using
108 sftp(1) in unpipelined request/response mode, which is useful when
109 debugging.
110 - ssh(1), sshd(8): handle EINTR in waitfd() and timeout_connect()
111 helpers.
112 - ssh(1), ssh-keygen(1): defer creation of ~/.ssh until we attempt to
113 write to it so we don't leave an empty .ssh directory when it's not
114 needed.
115 - ssh(1), sshd(8): fix multiplier when parsing time specifications when
116 handling seconds after other units.
117 - sshd(8): always send any PAM account messages. If the PAM account
118 stack returns any messages, always send them to the user and not just
119 if the check succeeds.
120 - gnome-ssh-askpass3: ensure the "close" button is not focused by
121 default for SSH_ASKPASS_PROMPT=none prompts. Avoids space/enter
122 accidentally dismissing FIDO touch notifications.
123 - gnome-ssh-askpass3: allow some control over textarea colour via
124 $GNOME_SSH_ASKPASS_FG_COLOR and $GNOME_SSH_ASKPASS_BG_COLOR
125 environment variables.
126 - Detect the Frankenstein monster of Linux/X32 and allow the sandbox to
127 function there.
128
129 -- Colin Watson <cjwatson@debian.org> Sun, 18 Oct 2020 12:07:48 +0100
130
131openssh (1:8.3p1-1) unstable; urgency=medium
132
133 * New upstream release (https://www.openssh.com/txt/release-8.3):
134 - [SECURITY] scp(1): when receiving files, scp(1) could become
135 desynchronised if a utimes(2) system call failed. This could allow
136 file contents to be interpreted as file metadata and thereby permit an
137 adversary to craft a file system that, when copied with scp(1) in a
138 configuration that caused utimes(2) to fail (e.g. under a SELinux
139 policy or syscall sandbox), transferred different file names and
140 contents to the actual file system layout.
141 - sftp(1): reject an argument of "-1" in the same way as ssh(1) and
142 scp(1) do instead of accepting and silently ignoring it.
143 - sshd(8): make IgnoreRhosts a tri-state option: "yes" to ignore
144 rhosts/shosts, "no" to allow rhosts/shosts or (new) "shosts-only" to
145 allow .shosts files but not .rhosts.
146 - sshd(8): allow the IgnoreRhosts directive to appear anywhere in a
147 sshd_config, not just before any Match blocks.
148 - ssh(1): add %TOKEN percent expansion for the LocalForward and
149 RemoteForward keywords when used for Unix domain socket forwarding.
150 - all: allow loading public keys from the unencrypted envelope of a
151 private key file if no corresponding public key file is present.
152 - ssh(1), sshd(8): prefer to use chacha20 from libcrypto where possible
153 instead of the (slower) portable C implementation included in OpenSSH.
154 - ssh-keygen(1): add ability to dump the contents of a binary key
155 revocation list via "ssh-keygen -lQf /path".
156 - ssh(1): fix IdentitiesOnly=yes to also apply to keys loaded from a
157 PKCS11Provider.
158 - ssh-keygen(1): avoid NULL dereference when trying to convert an
159 invalid RFC4716 private key.
160 - scp(1): when performing remote-to-remote copies using "scp -3", start
161 the second ssh(1) channel with BatchMode=yes enabled to avoid
162 confusing and non-deterministic ordering of prompts.
163 - ssh(1), ssh-keygen(1): when signing a challenge using a FIDO token,
164 perform hashing of the message to be signed in the middleware layer
165 rather than in OpenSSH code. This permits the use of security key
166 middlewares that perform the hashing implicitly, such as Windows
167 Hello.
168 - ssh(1): fix incorrect error message for "too many known hosts files."
169 - ssh(1): make failures when establishing "Tunnel" forwarding terminate
170 the connection when ExitOnForwardFailure is enabled.
171 - ssh-keygen(1): fix printing of fingerprints on private keys and add a
172 regression test for same.
173 - sshd(8): document order of checking AuthorizedKeysFile (first) and
174 AuthorizedKeysCommand (subsequently, if the file doesn't match).
175 - sshd(8): document that /etc/hosts.equiv and /etc/shosts.equiv are not
176 considered for HostbasedAuthentication when the target user is root.
177 - ssh(1), ssh-keygen(1): fix NULL dereference in private certificate key
178 parsing.
179 - ssh(1), sshd(8): more consistency between sets of %TOKENS are accepted
180 in various configuration options.
181 - ssh(1), ssh-keygen(1): improve error messages for some common PKCS#11
182 C_Login failure cases.
183 - ssh(1), sshd(8): make error messages for problems during SSH banner
184 exchange consistent with other SSH transport-layer error messages and
185 ensure they include the relevant IP addresses.
186 - ssh-keygen(1), ssh-add(1): when downloading FIDO2 resident keys from a
187 token, don't prompt for a PIN until the token has told us that it
188 needs one. Avoids double-prompting on devices that implement
189 on-device authentication (closes: #932071).
190 - sshd(8), ssh-keygen(1): no-touch-required FIDO certificate option
191 should be an extension, not a critical option.
192 - ssh(1), ssh-keygen(1), ssh-add(1): offer a better error message when
193 trying to use a FIDO key function and SecurityKeyProvider is empty.
194 - ssh-add(1), ssh-agent(8): ensure that a key lifetime fits within the
195 values allowed by the wire format (u32). Prevents integer wraparound
196 of the timeout values.
197 - ssh(1): detect and prevent trivial configuration loops when using
198 ProxyJump. bz#3057.
199 - On platforms that do not support setting process-wide routing domains
200 (all excepting OpenBSD at present), fail to accept a configuration
201 attempts to set one at process start time rather than fatally erroring
202 at run time.
203 - Fix theoretical infinite loop in the glob(3) replacement
204 implementation.
205 * Update GSSAPI key exchange patch from
206 https://github.com/openssh-gsskex/openssh-gsskex:
207 - Fix connection through ProxyJump in combination with "GSSAPITrustDNS
208 yes".
209 - Enable SHA2-based GSSAPI key exchange methods by default as RFC 8732
210 was published.
211 * Fix or suppress various shellcheck errors under debian/.
212 * Use AUTOPKGTEST_TMP rather than the deprecated ADTTMP.
213 * Apply upstream patch to fix the handling of Port directives after
214 Include (closes: #962035, LP: #1876320).
215
216 -- Colin Watson <cjwatson@debian.org> Sun, 07 Jun 2020 13:44:04 +0100
217
218openssh (1:8.2p1-4) unstable; urgency=medium
219
220 * Add /etc/ssh/ssh_config.d/ to openssh-client.
221 * Add /etc/ssh/sshd_config.d/ to openssh-server (closes: #952427).
222 * Install ssh-sk-helper even on non-Linux architectures, though it will
223 need an external middleware library in those cases.
224
225 -- Colin Watson <cjwatson@debian.org> Wed, 26 Feb 2020 10:55:07 +0000
226
227openssh (1:8.2p1-3) unstable; urgency=medium
228
229 * Reupload with -sa to work around confusion with 1:8.2p1-1 being in NEW.
230
231 -- Colin Watson <cjwatson@debian.org> Sun, 23 Feb 2020 13:30:01 +0000
232
233openssh (1:8.2p1-2) unstable; urgency=medium
234
235 * Move ssh-sk-helper into openssh-client rather than shipping it in a
236 separate package. The extra library dependencies are pretty small, so
237 it doesn't seem worth bloating the Packages file. Suggested by Bastian
238 Blank.
239
240 -- Colin Watson <cjwatson@debian.org> Sun, 23 Feb 2020 11:31:31 +0000
241
242openssh (1:8.2p1-1) unstable; urgency=medium
243
244 * New upstream release (https://www.openssh.com/txt/release-8.2, closes:
245 #951582):
246 - ssh(1), sshd(8), ssh-keygen(1): this release removes the "ssh-rsa"
247 (RSA/SHA1) algorithm from those accepted for certificate signatures
248 (i.e. the client and server CASignatureAlgorithms option) and will use
249 the rsa-sha2-512 signature algorithm by default when the ssh-keygen(1)
250 CA signs new certificates.
251 - ssh(1), sshd(8): Remove diffie-hellman-group14-sha1 from the default
252 key exchange proposal for both the client and server.
253 - ssh-keygen(1): The command-line options related to the generation and
254 screening of safe prime numbers used by the
255 diffie-hellman-group-exchange-* key exchange algorithms have changed.
256 Most options have been folded under the -O flag.
257 - sshd(8): The sshd listener process title visible to ps(1) has changed
258 to include information about the number of connections that are
259 currently attempting authentication and the limits configured by
260 MaxStartups.
261 - Add support for FIDO/U2F hardware authenticators.
262 - ssh-keygen(1): Add a "no-touch-required" option when generating
263 FIDO-hosted keys, that disables their default behaviour of requiring a
264 physical touch/tap on the token during authentication. Note: not all
265 tokens support disabling the touch requirement.
266 - sshd(8): Add a sshd_config PubkeyAuthOptions directive that collects
267 miscellaneous public key authentication-related options for sshd(8).
268 At present it supports only a single option "no-touch-required". This
269 causes sshd to skip its default check for FIDO/U2F keys that the
270 signature was authorised by a touch or press event on the token
271 hardware.
272 - ssh(1), sshd(8), ssh-keygen(1): Add a "no-touch-required" option for
273 authorized_keys and a similar extension for certificates. This option
274 disables the default requirement that FIDO key signatures attest that
275 the user touched their key to authorize them, mirroring the similar
276 PubkeyAuthOptions sshd_config option.
277 - ssh-keygen(1): Add support for the writing the FIDO attestation
278 information that is returned when new keys are generated via the "-O
279 write-attestation=/path" option. FIDO attestation certificates may be
280 used to verify that a FIDO key is hosted in trusted hardware. OpenSSH
281 does not currently make use of this information, beyond optionally
282 writing it to disk.
283 - Add support for FIDO2 resident keys.
284 - sshd(8): Add an Include sshd_config keyword that allows including
285 additional configuration files via glob(3) patterns (closes: #631189).
286 - ssh(1)/sshd(8): Make the LE (low effort) DSCP code point available via
287 the IPQoS directive.
288 - ssh(1): When AddKeysToAgent=yes is set and the key contains no
289 comment, add the key to the agent with the key's path as the comment.
290 - ssh-keygen(1), ssh-agent(1): Expose PKCS#11 key labels and X.509
291 subjects as key comments, rather than simply listing the PKCS#11
292 provider library path.
293 - ssh-keygen(1): Allow PEM export of DSA and ECDSA keys.
294 - sshd(8): When clients get denied by MaxStartups, send a notification
295 prior to the SSH2 protocol banner according to RFC4253 section 4.2
296 (closes: #275458).
297 - ssh(1), ssh-agent(1): When invoking the $SSH_ASKPASS prompt program,
298 pass a hint to the program to describe the type of desired prompt.
299 The possible values are "confirm" (indicating that a yes/no
300 confirmation dialog with no text entry should be shown), "none" (to
301 indicate an informational message only), or blank for the original
302 ssh-askpass behaviour of requesting a password/phrase.
303 - ssh(1): Allow forwarding a different agent socket to the path
304 specified by $SSH_AUTH_SOCK, by extending the existing ForwardAgent
305 option to accepting an explicit path or the name of an environment
306 variable in addition to yes/no.
307 - ssh-keygen(1): Add a new signature operations "find-principals" to
308 look up the principal associated with a signature from an
309 allowed-signers file.
310 - sshd(8): Expose the number of currently-authenticating connections
311 along with the MaxStartups limit in the process title visible to "ps".
312 - sshd(8): Make ClientAliveCountMax=0 have sensible semantics: it will
313 now disable connection killing entirely rather than the current
314 behaviour of instantly killing the connection after the first liveness
315 test regardless of success.
316 - sshd(8): Clarify order of AllowUsers / DenyUsers vs AllowGroups /
317 DenyGroups in the sshd(8) manual page.
318 - sshd(8): Better describe HashKnownHosts in the manual page.
319 - sshd(8): Clarify that that permitopen=/PermitOpen do no name or
320 address translation in the manual page.
321 - sshd(8): Allow the UpdateHostKeys feature to function when multiple
322 known_hosts files are in use. When updating host keys, ssh will now
323 search subsequent known_hosts files, but will add updated host keys to
324 the first specified file only.
325 - All: Replace all calls to signal(2) with a wrapper around
326 sigaction(2). This wrapper blocks all other signals during the
327 handler preventing races between handlers, and sets SA_RESTART which
328 should reduce the potential for short read/write operations.
329 - sftp(1): Fix a race condition in the SIGCHILD handler that could turn
330 in to a kill(-1).
331 - sshd(8): Fix a case where valid (but extremely large) SSH channel IDs
332 were being incorrectly rejected.
333 - ssh(1): When checking host key fingerprints as answers to new hostkey
334 prompts, ignore whitespace surrounding the fingerprint itself.
335 - All: Wait for file descriptors to be readable or writeable during
336 non-blocking connect, not just readable. Prevents a timeout when the
337 server doesn't immediately send a banner (e.g. multiplexers like
338 sslh).
339 - sshd_config(5): Document the sntrup4591761x25519-sha512@tinyssh.org
340 key exchange algorithm.
341 * Add more historical md5sums of /etc/ssh/sshd_config between 1:7.4p1-1
342 and 1:7.8p1-1 inclusive (closes: #951220).
343 * ssh(1): Explain that -Y is equivalent to -X in the default configuration
344 (closes: #951640).
345 * Include /etc/ssh/ssh_config.d/*.conf from /etc/ssh/ssh_config and
346 /etc/ssh/sshd_config.d/*.conf from /etc/ssh/sshd_config (closes:
347 #845315).
348
349 -- Colin Watson <cjwatson@debian.org> Fri, 21 Feb 2020 16:36:37 +0000
350
351openssh (1:8.1p1-5) unstable; urgency=medium
352
353 * Apply upstream patches to allow clock_nanosleep() and variants in the
354 seccomp sandbox, fixing failures with glibc 2.31.
355 * Apply upstream patch to deny (non-fatally) ipc in the seccomp sandbox,
356 fixing failures with OpenSSL 1.1.1d and Linux < 3.19 on some
357 architectures (closes: #946242).
358
359 -- Colin Watson <cjwatson@debian.org> Sat, 11 Jan 2020 23:55:03 +0000
360
361openssh (1:8.1p1-4) unstable; urgency=medium
362
363 * Apply upstream patch to stop using 2020 as a future date in regress
364 tests.
365
366 -- Colin Watson <cjwatson@debian.org> Thu, 09 Jan 2020 11:42:10 +0000
367
368openssh (1:8.1p1-3) unstable; urgency=medium
369
370 [ Colin Watson ]
371 * Drop suggestion of rssh, since it's been removed (see
372 https://bugs.debian.org/923691).
373
374 [ Steve Langasek ]
375 * Don't build openssh-tests on Ubuntu i386 (closes: #948466).
376
377 -- Colin Watson <cjwatson@debian.org> Thu, 09 Jan 2020 00:29:58 +0000
378
379openssh (1:8.1p1-2) unstable; urgency=medium
380
381 * Drop "Allow flock and ipc syscall for s390 architecture" patch for now;
382 upstream has security concerns with it and it doesn't currently seem to
383 be needed.
384 * Mark openssh-sftp-server, openssh-tests, ssh, and ssh-askpass-gnome as
385 Multi-Arch: foreign; none of them provide any architecture-dependent
386 interfaces.
387
388 -- Colin Watson <cjwatson@debian.org> Wed, 11 Dec 2019 23:53:49 +0000
389
390openssh (1:8.1p1-1) unstable; urgency=medium
391
392 * New upstream release (https://www.openssh.com/txt/release-8.1):
393 - ssh(1), sshd(8), ssh-agent(1): Add protection for private keys at rest
394 in RAM against speculation and memory side-channel attacks like
395 Spectre, Meltdown and Rambleed. This release encrypts private keys
396 when they are not in use with a symmetric key that is derived from a
397 relatively large "prekey" consisting of random data (currently 16KB).
398 - ssh(1): Allow %n to be expanded in ProxyCommand strings.
399 - ssh(1), sshd(8): Allow prepending a list of algorithms to the default
400 set by starting the list with the '^' character, e.g.
401 "HostKeyAlgorithms ^ssh-ed25519".
402 - ssh-keygen(1): Add an experimental lightweight signature and
403 verification ability. Signatures may be made using regular ssh keys
404 held on disk or stored in a ssh-agent and verified against an
405 authorized_keys-like list of allowed keys. Signatures embed a
406 namespace that prevents confusion and attacks between different usage
407 domains (e.g. files vs email).
408 - ssh-keygen(1): Print key comment when extracting public key from a
409 private key.
410 - ssh-keygen(1): Accept the verbose flag when searching for host keys in
411 known hosts (i.e. "ssh-keygen -vF host") to print the matching host's
412 random-art signature too.
413 - All: Support PKCS8 as an optional format for storage of private keys
414 to disk. The OpenSSH native key format remains the default, but PKCS8
415 is a superior format to PEM if interoperability with non-OpenSSH
416 software is required, as it may use a less insecure key derivation
417 function than PEM's.
418 - ssh(1): If a PKCS#11 token returns no keys then try to login and
419 refetch them.
420 - ssh(1): Produce a useful error message if the user's shell is set
421 incorrectly during "match exec" processing.
422 - sftp(1): Allow the maximum uint32 value for the argument passed to -b
423 which allows better error messages from later validation.
424 - ssh-keyscan(1): Include SHA2-variant RSA key algorithms in KEX
425 proposal; allows ssh-keyscan to harvest keys from servers that disable
426 old SHA1 ssh-rsa.
427 - sftp(1): Print explicit "not modified" message if a file was requested
428 for resumed download but was considered already complete.
429 - sftp(1): Fix a typo and make <esc><right> move right to the closest
430 end of a word just like <esc><left> moves left to the closest
431 beginning of a word.
432 - sshd(8): Cap the number of permitopen/permitlisten directives allowed
433 to appear on a single authorized_keys line.
434 - All: Fix a number of memory leaks (one-off or on exit paths).
435 - ssh(1), sshd(8): Check for convtime() refusing to accept times that
436 resolve to LONG_MAX.
437 - ssh(1): Slightly more instructive error message when the user
438 specifies multiple -J options on the command-line (closes: #929669).
439 - ssh-agent(1): Process agent requests for RSA certificate private keys
440 using correct signature algorithm when requested.
441 - sftp(1): Check for user@host when parsing sftp target. This allows
442 user@[1.2.3.4] to work without a path.
443 - sshd(8): Enlarge format buffer size for certificate serial number so
444 the log message can record any 64-bit integer without truncation.
445 - sshd(8): For PermitOpen violations add the remote host and port to be
446 able to more easily ascertain the source of the request. Add the same
447 logging for PermitListen violations which were not previously logged
448 at all.
449 - scp(1), sftp(1): Use the correct POSIX format style for left
450 justification for the transfer progress meter.
451 - sshd(8): When examining a configuration using sshd -T, assume any
452 attribute not provided by -C does not match, which allows it to work
453 when sshd_config contains a Match directive with or without -C.
454 - ssh(1), ssh-keygen(1): Downgrade PKCS#11 "provider returned no slots"
455 warning from log level error to debug. This is common when attempting
456 to enumerate keys on smartcard readers with no cards plugged in.
457 - ssh(1), ssh-keygen(1): Do not unconditionally log in to PKCS#11
458 tokens. Avoids spurious PIN prompts for keys not selected for
459 authentication in ssh(1) and when listing public keys available in a
460 token using ssh-keygen(1).
461 - ssh(1), sshd(8): Fix typo that prevented detection of Linux VRF.
462 - sshd(8): In the Linux seccomp-bpf sandbox, allow mprotect(2) with
463 PROT_(READ|WRITE|NONE) only. This syscall is used by some hardened
464 heap allocators.
465 - sshd(8): In the Linux seccomp-bpf sandbox, allow the s390-specific
466 ioctl for ECC hardware support.
467 * Re-enable hardening on hppa, since the corresponding GCC bug is
468 apparently fixed.
469
470 -- Colin Watson <cjwatson@debian.org> Thu, 10 Oct 2019 10:23:19 +0100
471
472openssh (1:8.0p1-7) unstable; urgency=medium
473
474 [ Daniel Kahn Gillmor ]
475 * runit: Correct typo in comment.
476
477 [ Colin Watson ]
478 * Apply upstream patch to deny (non-fatally) shmget/shmat/shmdt in preauth
479 privsep child, coping with changes in OpenSSL 1.1.1d that broke OpenSSH
480 on Linux kernels before 3.19 (closes: #941663).
481
482 -- Colin Watson <cjwatson@debian.org> Sat, 05 Oct 2019 22:41:11 +0100
483
484openssh (1:8.0p1-6) unstable; urgency=medium
485
486 * Only run dh_runit on openssh-server (closes: #935936).
487
488 -- Colin Watson <cjwatson@debian.org> Wed, 28 Aug 2019 10:53:18 +0100
489
490openssh (1:8.0p1-5) unstable; urgency=medium
491
492 [ Lorenzo Puliti ]
493 * Add a runscript for runit (closes: #933999).
494
495 -- Colin Watson <cjwatson@debian.org> Tue, 27 Aug 2019 15:18:54 +0100
496
497openssh (1:8.0p1-4) unstable; urgency=medium
498
499 * Use debhelper-compat instead of debian/compat.
500 * debian/*.apport:
501 - Remove #! lines.
502 - Avoid star imports.
503 - Fix flake8 errors.
504 * Run regression tests against the Python 3 version of Twisted Conch.
505
506 -- Colin Watson <cjwatson@debian.org> Sat, 03 Aug 2019 13:33:24 +0100
507
508openssh (1:8.0p1-3) unstable; urgency=medium
509
510 * Upload to unstable.
511
512 -- Colin Watson <cjwatson@debian.org> Mon, 08 Jul 2019 17:19:37 +0100
513
514openssh (1:8.0p1-2) experimental; urgency=medium
515
516 * Fix interop tests for recent regress changes.
517
518 -- Colin Watson <cjwatson@debian.org> Fri, 14 Jun 2019 14:32:12 +0100
519
520openssh (1:8.0p1-1) experimental; urgency=medium
521
522 * New upstream release (https://www.openssh.com/txt/release-8.0, closes:
523 #927792):
524 - ssh(1), ssh-agent(1), ssh-add(1): Add support for ECDSA keys in
525 PKCS#11 tokens (LP: #1665695).
526 - ssh(1), sshd(8): Add experimental quantum-computing resistant key
527 exchange method, based on a combination of Streamlined NTRU Prime
528 4591^761 and X25519.
529 - ssh-keygen(1): Increase the default RSA key size to 3072 bits,
530 following NIST Special Publication 800-57's guidance for a 128-bit
531 equivalent symmetric security level (LP: #1445625).
532 - ssh(1): Allow "PKCS11Provider=none" to override later instances of the
533 PKCS11Provider directive in ssh_config.
534 - sshd(8): Add a log message for situations where a connection is
535 dropped for attempting to run a command but a sshd_config
536 ForceCommand=internal-sftp restriction is in effect.
537 - ssh(1): When prompting whether to record a new host key, accept the
538 key fingerprint as a synonym for "yes". This allows the user to paste
539 a fingerprint obtained out of band at the prompt and have the client
540 do the comparison for you.
541 - ssh-keygen(1): When signing multiple certificates on a single
542 command-line invocation, allow automatically incrementing the
543 certificate serial number.
544 - scp(1), sftp(1): Accept -J option as an alias to ProxyJump on the scp
545 and sftp command-lines.
546 - ssh-agent(1), ssh-pkcs11-helper(8), ssh-add(1): Accept "-v"
547 command-line flags to increase the verbosity of output; pass verbose
548 flags though to subprocesses, such as ssh-pkcs11-helper started from
549 ssh-agent.
550 - ssh-add(1): Add a "-T" option to allowing testing whether keys in an
551 agent are usable by performing a signature and a verification.
552 - sftp-server(8): Add a "lsetstat@openssh.com" protocol extension that
553 replicates the functionality of the existing SSH2_FXP_SETSTAT
554 operation but does not follow symlinks.
555 - sftp(1): Add "-h" flag to chown/chgrp/chmod commands to request they
556 do not follow symlinks.
557 - sshd(8): Expose $SSH_CONNECTION in the PAM environment. This makes
558 the connection 4-tuple available to PAM modules that wish to use it in
559 decision-making.
560 - sshd(8): Add a ssh_config "Match final" predicate. Matches in same
561 pass as "Match canonical" but doesn't require hostname
562 canonicalisation be enabled.
563 - sftp(1): Support a prefix of '@' to suppress echo of sftp batch
564 commands.
565 - ssh-keygen(1): When printing certificate contents using "ssh-keygen
566 -Lf /path/certificate", include the algorithm that the CA used to sign
567 the cert.
568 - sshd(8): Fix authentication failures when sshd_config contains
569 "AuthenticationMethods any" inside a Match block that overrides a more
570 restrictive default.
571 - sshd(8): Avoid sending duplicate keepalives when ClientAliveCount is
572 enabled.
573 - sshd(8): Fix two race conditions related to SIGHUP daemon restart.
574 Remnant file descriptors in recently-forked child processes could
575 block the parent sshd's attempt to listen(2) to the configured
576 addresses. Also, the restarting parent sshd could exit before any
577 child processes that were awaiting their re-execution state had
578 completed reading it, leaving them in a fallback path.
579 - ssh(1): Fix stdout potentially being redirected to /dev/null when
580 ProxyCommand=- was in use.
581 - sshd(8): Avoid sending SIGPIPE to child processes if they attempt to
582 write to stderr after their parent processes have exited.
583 - ssh(1): Fix bad interaction between the ssh_config ConnectTimeout and
584 ConnectionAttempts directives - connection attempts after the first
585 were ignoring the requested timeout (LP: #1798049).
586 - ssh-keyscan(1): Return a non-zero exit status if no keys were found
587 (closes: #374980, LP: #1661745).
588 - scp(1): Sanitize scp filenames to allow UTF-8 characters without
589 terminal control sequences.
590 - sshd(8): Fix confusion between ClientAliveInterval and time-based
591 RekeyLimit that could cause connections to be incorrectly closed.
592 - ssh(1), ssh-add(1): Correct some bugs in PKCS#11 token PIN handling at
593 initial token login. The attempt to read the PIN could be skipped in
594 some cases, particularly on devices with integrated PIN readers. This
595 would lead to an inability to retrieve keys from these tokens.
596 - ssh(1), ssh-add(1): Support keys on PKCS#11 tokens that set the
597 CKA_ALWAYS_AUTHENTICATE flag by requring a fresh login after the
598 C_SignInit operation.
599 - ssh(1): Improve documentation for ProxyJump/-J, clarifying that local
600 configuration does not apply to jump hosts.
601 - ssh-keygen(1): Clarify manual - ssh-keygen -e only writes public keys,
602 not private.
603 - ssh(1), sshd(8): be more strict in processing protocol banners,
604 allowing \r characters only immediately before \n.
605 - Various: fix a number of memory leaks.
606 - scp(1), sftp(1): fix calculation of initial bandwidth limits. Account
607 for bytes written before the timer starts and adjust the schedule on
608 which recalculations are performed. Avoids an initial burst of
609 traffic and yields more accurate bandwidth limits.
610 - sshd(8): Only consider the ext-info-c extension during the initial key
611 eschange. It shouldn't be sent in subsequent ones, but if it is
612 present we should ignore it. This prevents sshd from sending a
613 SSH_MSG_EXT_INFO for REKEX for these buggy clients.
614 - ssh-keygen(1): Clarify manual that ssh-keygen -F (find host in
615 authorized_keys) and -R (remove host from authorized_keys) options may
616 accept either a bare hostname or a [hostname]:port combo.
617 - ssh(1): Don't attempt to connect to empty SSH_AUTH_SOCK.
618 - sshd(8): Silence error messages when sshd fails to load some of the
619 default host keys. Failure to load an explicitly-configured hostkey
620 is still an error, and failure to load any host key is still fatal.
621 - ssh(1): Redirect stderr of ProxyCommands to /dev/null when ssh is
622 started with ControlPersist; prevents random ProxyCommand output from
623 interfering with session output.
624 - ssh(1): The ssh client was keeping a redundant ssh-agent socket
625 (leftover from authentication) around for the life of the connection.
626 - sshd(8): Fix bug in HostbasedAcceptedKeyTypes and
627 PubkeyAcceptedKeyTypes options. If only RSA-SHA2 signature types were
628 specified, then authentication would always fail for RSA keys as the
629 monitor checks only the base key (not the signature algorithm) type
630 against *AcceptedKeyTypes.
631 - ssh(1): Request correct signature types from ssh-agent when
632 certificate keys and RSA-SHA2 signatures are in use.
633 - sshd(8): Don't set $MAIL if UsePAM=yes as PAM typically specifies the
634 user environment if it's enabled (closes: #189920, #532754).
635 * Mostly resynced GSSAPI key exchange patch with Fedora. Major changes:
636 - Support selection of GSSAPI key exchange algorithms.
637 - Support GSSAPI key exchange methods with DH and SHA2.
638 - Support GSSAPI key exchange using ECDH and SHA2.
639 - Make sure the Kerberos tickets are cleaned up with the user context.
640 - Enable gssapi-keyex authentication without gssapi-with-mic.
641 - Allow querying for GSSAPI key exchange algorithms from ssh (-Q
642 kex-gss).
643 * Apply upstream patch to fix the utimensat regression tests when not
644 using the compatibility implementation.
645
646 -- Colin Watson <cjwatson@debian.org> Sun, 09 Jun 2019 22:47:27 +0100
647
648openssh (1:7.9p1-10) unstable; urgency=medium
649
650 * Temporarily revert IPQoS defaults to pre-7.8 values until issues with
651 "iptables -m tos" and VMware have been fixed (closes: #923879, #926229;
652 LP: #1822370).
653
654 -- Colin Watson <cjwatson@debian.org> Mon, 08 Apr 2019 11:13:04 +0100
655
656openssh (1:7.9p1-9) unstable; urgency=medium
657
658 * Apply upstream patch to make scp handle shell-style brace expansions
659 when checking that filenames sent by the server match what the client
660 requested (closes: #923486).
661
662 -- Colin Watson <cjwatson@debian.org> Fri, 01 Mar 2019 12:23:36 +0000
663
664openssh (1:7.9p1-8) unstable; urgency=medium
665
666 [ Colin Watson ]
667 * Apply upstream patch to fix bug in HostbasedAcceptedKeyTypes and
668 PubkeyAcceptedKeyTypes options in the case where only RSA-SHA2 signature
669 types were specified.
670 * Apply upstream patch to request RSA-SHA2 signatures for
671 rsa-sha2-{256|512}-cert-v01@openssh.com cert algorithms (closes:
672 #923419).
673 * Move moduli(5) manual page to openssh-server to go with /etc/ssh/moduli;
674 forgotten in 1:7.9p1-5.
675
676 [ Dominik George ]
677 * Correctly handle conffile move to openssh-server (closes: #919344).
678
679 -- Colin Watson <cjwatson@debian.org> Thu, 28 Feb 2019 19:31:49 +0000
680
681openssh (1:7.9p1-7) unstable; urgency=medium
682
683 * Recommend "default-logind | logind | libpam-systemd" rather than just
684 libpam-systemd (closes: #923199). (I've retained libpam-systemd as an
685 alternative for a while to avoid backporting accidents, although it can
686 be removed later.)
687 * Pass "--exec /usr/sbin/sshd" to start-stop-daemon on stop as well as
688 start and pass "--chuid 0:0" on start, to avoid problems with non-root
689 groups leaking into the ownership of /run/sshd.pid (closes: #922365).
690
691 -- Colin Watson <cjwatson@debian.org> Tue, 26 Feb 2019 15:13:23 +0000
692
693openssh (1:7.9p1-6) unstable; urgency=medium
694
695 * CVE-2019-6109: Apply upstream patches to sanitize scp filenames via
696 snmprintf (closes: #793412).
697 * CVE-2019-6111: Apply upstream patch to check in scp client that
698 filenames sent during remote->local directory copies satisfy the
699 wildcard specified by the user.
700
701 -- Colin Watson <cjwatson@debian.org> Fri, 08 Feb 2019 16:26:35 +0000
702
703openssh (1:7.9p1-5) unstable; urgency=high
704
705 * Move /etc/ssh/moduli to openssh-server, since it's reasonably large and
706 only used by sshd (closes: #858050).
707 * Drop obsolete alternate build-dependency on libssl1.0-dev (closes:
708 #917342).
709 * CVE-2018-20685: Apply upstream scp patch to disallow empty incoming
710 filename or ones that refer to the current directory (closes: #919101).
711
712 -- Colin Watson <cjwatson@debian.org> Sun, 13 Jan 2019 11:22:45 +0000
713
714openssh (1:7.9p1-4) unstable; urgency=medium
715
716 * Fix Ubuntu detection in debian/rules, since the documentation comment
717 for dpkg_vendor_derives_from is wrong (thanks, Jeremy Bicha; see
718 #913816).
719
720 -- Colin Watson <cjwatson@debian.org> Fri, 16 Nov 2018 11:27:28 +0000
721
722openssh (1:7.9p1-3) unstable; urgency=medium
723
724 * Be more specific about what files to install in openssh-tests, to avoid
725 installing a symlink into the build tree.
726 * Re-export debian/upstream/signing-key.asc without extra signatures.
727 * Restore direct test dependencies on openssl, putty-tools, and
728 python-twisted-conch; these are really only indirect dependencies via
729 openssh-tests, but including them means that this package will be
730 retested when they change.
731
732 -- Colin Watson <cjwatson@debian.org> Thu, 15 Nov 2018 01:30:56 +0000
733
734openssh (1:7.9p1-2) unstable; urgency=medium
735
736 * Add GitLab CI configuration.
737 * Make the autopkgtest create /run/sshd if it doesn't already exist.
738 * Drop "set -x" verbosity from the autopkgtest; I think we can do without
739 this in most cases nowadays.
740 * Add an openssh-tests binary package containing enough files to run the
741 upstream regression tests. This allows autopkgtest to run more
742 efficiently, as it doesn't have to build part of the source tree again.
743
744 -- Colin Watson <cjwatson@debian.org> Wed, 14 Nov 2018 15:55:48 +0000
745
746openssh (1:7.9p1-1) unstable; urgency=medium
747
748 * New upstream release (https://www.openssh.com/txt/release-7.9):
749 - ssh(1), sshd(8): allow most port numbers to be specified using service
750 names from getservbyname(3) (typically /etc/services; closes:
751 #177406).
752 - ssh(1): allow the IdentityAgent configuration directive to accept
753 environment variable names. This supports the use of multiple agent
754 sockets without needing to use fixed paths.
755 - sshd(8): support signalling sessions via the SSH protocol. A limited
756 subset of signals is supported and only for login or command sessions
757 (i.e. not subsystems) that were not subject to a forced command via
758 authorized_keys or sshd_config.
759 - ssh(1): support "ssh -Q sig" to list supported signature options.
760 Also "ssh -Q help" to show the full set of supported queries.
761 - ssh(1), sshd(8): add a CASignatureAlgorithms option for the client and
762 server configs to allow control over which signature formats are
763 allowed for CAs to sign certificates. For example, this allows
764 banning CAs that sign certificates using the RSA-SHA1 signature
765 algorithm.
766 - sshd(8), ssh-keygen(1): allow key revocation lists (KRLs) to revoke
767 keys specified by SHA256 hash.
768 - ssh-keygen(1): allow creation of key revocation lists directly from
769 base64-encoded SHA256 fingerprints. This supports revoking keys using
770 only the information contained in sshd(8) authentication log messages.
771 - ssh(1), ssh-keygen(1): avoid spurious "invalid format" errors when
772 attempting to load PEM private keys while using an incorrect
773 passphrase.
774 - sshd(8): when a channel closed message is received from a client,
775 close the stderr file descriptor at the same time stdout is closed.
776 This avoids stuck processes if they were waiting for stderr to close
777 and were insensitive to stdin/out closing (closes: #844494).
778 - ssh(1): allow ForwardX11Timeout=0 to disable the untrusted X11
779 forwarding timeout and support X11 forwarding indefinitely.
780 Previously the behaviour of ForwardX11Timeout=0 was undefined.
781 - sshd(8): when compiled with GSSAPI support, cache supported method
782 OIDs regardless of whether GSSAPI authentication is enabled in the
783 main section of sshd_config. This avoids sandbox violations if GSSAPI
784 authentication was later enabled in a Match block.
785 - sshd(8): do not fail closed when configured with a text key revocation
786 list that contains a too-short key.
787 - ssh(1): treat connections with ProxyJump specified the same as ones
788 with a ProxyCommand set with regards to hostname canonicalisation
789 (i.e. don't try to canonicalise the hostname unless
790 CanonicalizeHostname is set to 'always').
791 - ssh(1): fix regression in OpenSSH 7.8 that could prevent public-key
792 authentication using certificates hosted in a ssh-agent(1) or against
793 sshd(8) from OpenSSH <7.8 (LP: #1790963).
794 - All: support building against the openssl-1.1 API (releases 1.1.0g and
795 later). The openssl-1.0 API will remain supported at least until
796 OpenSSL terminates security patch support for that API version
797 (closes: #828475).
798 - sshd(8): allow the futex(2) syscall in the Linux seccomp sandbox;
799 apparently required by some glibc/OpenSSL combinations.
800 * Remove dh_builddeb override to use xz compression; this has been the
801 default since dpkg 1.17.0.
802 * Simplify debian/rules using /usr/share/dpkg/default.mk.
803 * Remove /etc/network/if-up.d/openssh-server, as it causes more problems
804 than it solves (thanks, Christian Ehrhardt, Andreas Hasenack, and David
805 Britton; closes: #789532, LP: #1037738, #1674330, #1718227). Add an
806 "if-up hook removed" section to README.Debian documenting the corner
807 case that may need configuration adjustments.
808
809 -- Colin Watson <cjwatson@debian.org> Sun, 21 Oct 2018 10:39:24 +0100
810
811openssh (1:7.8p1-1) unstable; urgency=medium
812
813 * New upstream release (https://www.openssh.com/txt/release-7.8, closes:
814 #907534):
815 - ssh-keygen(1): Write OpenSSH format private keys by default instead of
816 using OpenSSL's PEM format (closes: #905407). The OpenSSH format,
817 supported in OpenSSH releases since 2014 and described in the
818 PROTOCOL.key file in the source distribution, offers substantially
819 better protection against offline password guessing and supports key
820 comments in private keys. If necessary, it is possible to write old
821 PEM-style keys by adding "-m PEM" to ssh-keygen's arguments when
822 generating or updating a key.
823 - sshd(8): Remove internal support for S/Key multiple factor
824 authentication. S/Key may still be used via PAM or BSD auth.
825 - ssh(1): Remove vestigial support for running ssh(1) as setuid. This
826 used to be required for hostbased authentication and the (long gone)
827 rhosts-style authentication, but has not been necessary for a long
828 time. Attempting to execute ssh as a setuid binary, or with uid !=
829 effective uid will now yield a fatal error at runtime.
830 - sshd(8): The semantics of PubkeyAcceptedKeyTypes and the similar
831 HostbasedAcceptedKeyTypes options have changed. These now specify
832 signature algorithms that are accepted for their respective
833 authentication mechanism, where previously they specified accepted key
834 types. This distinction matters when using the RSA/SHA2 signature
835 algorithms "rsa-sha2-256", "rsa-sha2-512" and their certificate
836 counterparts. Configurations that override these options but omit
837 these algorithm names may cause unexpected authentication failures (no
838 action is required for configurations that accept the default for
839 these options).
840 - sshd(8): The precedence of session environment variables has changed.
841 ~/.ssh/environment and environment="..." options in authorized_keys
842 files can no longer override SSH_* variables set implicitly by sshd.
843 - ssh(1)/sshd(8): The default IPQoS used by ssh/sshd has changed. They
844 will now use DSCP AF21 for interactive traffic and CS1 for bulk. For
845 a detailed rationale, please see the commit message:
846 https://cvsweb.openbsd.org/src/usr.bin/ssh/readconf.c#rev1.284
847 - ssh(1)/sshd(8): Add new signature algorithms "rsa-sha2-256-cert-
848 v01@openssh.com" and "rsa-sha2-512-cert-v01@openssh.com" to explicitly
849 force use of RSA/SHA2 signatures in authentication.
850 - sshd(8): Extend the PermitUserEnvironment option to accept a whitelist
851 of environment variable names in addition to global "yes" or "no"
852 settings.
853 - sshd(8): Add a PermitListen directive to sshd_config(5) and a
854 corresponding permitlisten= authorized_keys option that control which
855 listen addresses and port numbers may be used by remote forwarding
856 (ssh -R ...).
857 - sshd(8): Add some countermeasures against timing attacks used for
858 account validation/enumeration. sshd will enforce a minimum time or
859 each failed authentication attempt consisting of a global 5ms minimum
860 plus an additional per-user 0-4ms delay derived from a host secret.
861 - sshd(8): Add a SetEnv directive to allow an administrator to
862 explicitly specify environment variables in sshd_config. Variables
863 set by SetEnv override the default and client-specified environment.
864 - ssh(1): Add a SetEnv directive to request that the server sets an
865 environment variable in the session. Similar to the existing SendEnv
866 option, these variables are set subject to server configuration.
867 - ssh(1): Allow "SendEnv -PATTERN" to clear environment variables
868 previously marked for sending to the server (closes: #573316).
869 - ssh(1)/sshd(8): Make UID available as a %-expansion everywhere that
870 the username is available currently.
871 - ssh(1): Allow setting ProxyJump=none to disable ProxyJump
872 functionality.
873 - sshd(8): Avoid observable differences in request parsing that could be
874 used to determine whether a target user is valid.
875 - ssh(1)/sshd(8): Fix some memory leaks.
876 - ssh(1): Fix a pwent clobber (introduced in openssh-7.7) that could
877 occur during key loading, manifesting as crash on some platforms.
878 - sshd_config(5): Clarify documentation for AuthenticationMethods
879 option.
880 - ssh(1): Ensure that the public key algorithm sent in a public key
881 SSH_MSG_USERAUTH_REQUEST matches the content of the signature blob.
882 Previously, these could be inconsistent when a legacy or non-OpenSSH
883 ssh-agent returned a RSA/SHA1 signature when asked to make a RSA/SHA2
884 signature.
885 - sshd(8): Fix failures to read authorized_keys caused by faulty
886 supplemental group caching.
887 - scp(1): Apply umask to directories, fixing potential mkdir/chmod race
888 when copying directory trees.
889 - ssh-keygen(1): Return correct exit code when searching for and hashing
890 known_hosts entries in a single operation.
891 - ssh(1): Prefer the ssh binary pointed to via argv[0] to $PATH when
892 re-executing ssh for ProxyJump.
893 - sshd(8): Do not ban PTY allocation when a sshd session is restricted
894 because the user password is expired as it breaks password change
895 dialog.
896 - ssh(1)/sshd(8): Fix error reporting from select() failures.
897 - ssh(1): Improve documentation for -w (tunnel) flag, emphasising that
898 -w implicitly sets Tunnel=point-to-point.
899 - ssh-agent(1): Implement EMFILE mitigation for ssh-agent. ssh-agent
900 will no longer spin when its file descriptor limit is exceeded.
901 - ssh(1)/sshd(8): Disable SSH2_MSG_DEBUG messages for Twisted Conch
902 clients. Twisted Conch versions that lack a version number in their
903 identification strings will mishandle these messages when running on
904 Python 2.x (https://twistedmatrix.com/trac/ticket/9422).
905 - sftp(1): Notify user immediately when underlying ssh process dies
906 expectedly.
907 - ssh(1)/sshd(8): Fix tunnel forwarding; regression in 7.7 release.
908 - ssh-agent(1): Don't kill ssh-agent's listening socket entirely if it
909 fails to accept(2) a connection.
910 - ssh(1): Add some missing options in the configuration dump output (ssh
911 -G).
912 - sshd(8): Expose details of completed authentication to PAM auth
913 modules via SSH_AUTH_INFO_0 in the PAM environment.
914 * Switch debian/watch to HTTPS.
915 * Temporarily work around https://twistedmatrix.com/trac/ticket/9515 in
916 regression tests.
917
918 -- Colin Watson <cjwatson@debian.org> Thu, 30 Aug 2018 15:35:27 +0100
919
920openssh (1:7.7p1-4) unstable; urgency=high
921
922 * CVE-2018-15473: Apply upstream patch to delay bailout for invalid
923 authenticating user until after the packet containing the request has
924 been fully parsed (closes: #906236).
925
926 -- Colin Watson <cjwatson@debian.org> Fri, 17 Aug 2018 14:09:32 +0100
927
928openssh (1:7.7p1-3) unstable; urgency=medium
929
930 [ Colin Watson ]
931 * Adjust git-dpm tagging configuration.
932 * Remove no-longer-used Lintian overrides from openssh-server and ssh.
933 * Add Documentation keys to ssh-agent.service, ssh.service, and
934 ssh@.service.
935
936 [ Juri Grabowski ]
937 * Add rescue.target with ssh support.
938
939 [ Christian Ehrhardt ]
940 * Fix unintentional restriction of authorized keys environment options
941 to be alphanumeric (closes: #903474, LP: #1771011).
942
943 -- Colin Watson <cjwatson@debian.org> Tue, 10 Jul 2018 16:07:16 +0100
944
945openssh (1:7.7p1-2) unstable; urgency=medium
946
947 * Fix parsing of DebianBanner option (closes: #894730).
948
949 -- Colin Watson <cjwatson@debian.org> Wed, 04 Apr 2018 00:47:29 +0100
950
951openssh (1:7.7p1-1) unstable; urgency=medium
952
953 * New upstream release (https://www.openssh.com/txt/release-7.7):
954 - ssh(1)/sshd(8): Drop compatibility support for some very old SSH
955 implementations, including ssh.com <=2.* and OpenSSH <= 3.*. These
956 versions were all released in or before 2001 and predate the final SSH
957 RFCs. The support in question isn't necessary for RFC-compliant SSH
958 implementations.
959 - Add experimental support for PQC XMSS keys (Extended Hash-Based
960 Signatures).
961 - sshd(8): Add an "rdomain" criterion for the sshd_config Match keyword
962 to allow conditional configuration that depends on which routing
963 domain a connection was received on.
964 - sshd_config(5): Add an optional rdomain qualifier to the ListenAddress
965 directive to allow listening on different routing domains.
966 - sshd(8): Add "expiry-time" option for authorized_keys files to allow
967 for expiring keys.
968 - ssh(1): Add a BindInterface option to allow binding the outgoing
969 connection to an interface's address (basically a more usable
970 BindAddress; closes: #289592).
971 - ssh(1): Expose device allocated for tun/tap forwarding via a new %T
972 expansion for LocalCommand. This allows LocalCommand to be used to
973 prepare the interface.
974 - sshd(8): Expose the device allocated for tun/tap forwarding via a new
975 SSH_TUNNEL environment variable. This allows automatic setup of the
976 interface and surrounding network configuration automatically on the
977 server.
978 - ssh(1)/scp(1)/sftp(1): Add URI support to ssh, sftp and scp, e.g.
979 ssh://user@host or sftp://user@host/path. Additional connection
980 parameters described in draft-ietf-secsh-scp-sftp-ssh-uri-04 are not
981 implemented since the ssh fingerprint format in the draft uses the
982 deprecated MD5 hash with no way to specify any other algorithm.
983 - ssh-keygen(1): Allow certificate validity intervals that specify only
984 a start or stop time (instead of both or neither).
985 - sftp(1): Allow "cd" and "lcd" commands with no explicit path argument.
986 lcd will change to the local user's home directory as usual. cd will
987 change to the starting directory for session (because the protocol
988 offers no way to obtain the remote user's home directory).
989 - sshd(8): When doing a config test with sshd -T, only require the
990 attributes that are actually used in Match criteria rather than (an
991 incomplete list of) all criteria.
992 - ssh(1)/sshd(8): More strictly check signature types during key
993 exchange against what was negotiated. Prevents downgrade of RSA
994 signatures made with SHA-256/512 to SHA-1.
995 - sshd(8): Fix support for client that advertise a protocol version of
996 "1.99" (indicating that they are prepared to accept both SSHv1 and
997 SSHv2). This was broken in OpenSSH 7.6 during the removal of SSHv1
998 support.
999 - ssh(1): Warn when the agent returns a ssh-rsa (SHA1) signature when a
1000 rsa-sha2-256/512 signature was requested. This condition is possible
1001 when an old or non-OpenSSH agent is in use.
1002 - ssh-agent(1): Fix regression introduced in 7.6 that caused ssh-agent
1003 to fatally exit if presented an invalid signature request message.
1004 - sshd_config(5): Accept yes/no flag options case-insensitively, as has
1005 been the case in ssh_config(5) for a long time (LP: #1656557).
1006 - ssh(1): Improve error reporting for failures during connection. Under
1007 some circumstances misleading errors were being shown.
1008 - ssh-keyscan(1): Add -D option to allow printing of results directly in
1009 SSHFP format.
1010 - ssh(1): Compatibility fix for some servers that erroneously drop the
1011 connection when the IUTF8 (RFC8160) option is sent.
1012 - scp(1): Disable RemoteCommand and RequestTTY in the ssh session
1013 started by scp (sftp was already doing this).
1014 - ssh-keygen(1): Refuse to create a certificate with an unusable number
1015 of principals.
1016 - ssh-keygen(1): Fatally exit if ssh-keygen is unable to write all the
1017 public key during key generation. Previously it would silently ignore
1018 errors writing the comment and terminating newline.
1019 - ssh(1): Do not modify hostname arguments that are addresses by
1020 automatically forcing them to lower-case. Instead canonicalise them
1021 jo resolve ambiguities (e.g. ::0001 => ::1) before they are matched
1022 against known_hosts.
1023 - ssh(1): Don't accept junk after "yes" or "no" responses to hostkey
1024 prompts.
1025 - sftp(1): Have sftp print a warning about shell cleanliness when
1026 decoding the first packet fails, which is usually caused by shells
1027 polluting stdout of non-interactive startups.
1028 - ssh(1)/sshd(8): Switch timers in packet code from using wall-clock
1029 time to monotonic time, allowing the packet layer to better function
1030 over a clock step and avoiding possible integer overflows during
1031 steps.
1032 - sshd(8): Correctly detect MIPS ABI in use at configure time. Fixes
1033 sandbox violations on some environments.
1034 - Build and link with "retpoline" flags when available to mitigate the
1035 "branch target injection" style (variant 2) of the Spectre
1036 branch-prediction vulnerability.
1037
1038 -- Colin Watson <cjwatson@debian.org> Tue, 03 Apr 2018 12:40:24 +0100
1039
1040openssh (1:7.6p1-5) unstable; urgency=medium
1041
1042 * Explicitly build-depend on pkg-config, rather than implicitly
1043 build-depending on it via libgtk-3-dev (thanks, Aurelien Jarno; closes:
1044 #894558).
1045
1046 -- Colin Watson <cjwatson@debian.org> Sun, 01 Apr 2018 21:37:19 +0100
1047
1048openssh (1:7.6p1-4) unstable; urgency=medium
1049
1050 * Move VCS to salsa.debian.org.
1051 * Add a preseeding-only openssh-server/password-authentication debconf
1052 template that can be used to disable password authentication (closes:
1053 #878945).
1054
1055 -- Colin Watson <cjwatson@debian.org> Sat, 10 Feb 2018 02:31:46 +0000
1056
1057openssh (1:7.6p1-3) unstable; urgency=medium
1058
1059 [ Colin Watson ]
1060 * Remove the decade-old ssh-krb5 transitional package; upgrades of
1061 openssh-server will preserve existing configuration, and new
1062 installations should just enable GSSAPIAuthentication and
1063 GSSAPIKeyExchange in sshd_config (closes: #878626).
1064 * Support the "noudeb" build profile.
1065 * Fix putty-transfer regression test.
1066
1067 [ Anders Kaseorg ]
1068 * debian/systemd/ssh-agent.service: Add missing dbus dependency.
1069
1070 [ Jason Duerstock ]
1071 * Add a "pkg.openssh.nognome" build profile, which disables building the
1072 ssh-askpass-gnome binary package and avoids the build-dependency on
1073 libgtk-3-dev (closes: #883819).
1074
1075 -- Colin Watson <cjwatson@debian.org> Tue, 16 Jan 2018 17:41:08 +0000
1076
1077openssh (1:7.6p1-2) unstable; urgency=medium
1078
1079 * Apply upstream patch to fix PermitOpen argument handling.
1080
1081 -- Colin Watson <cjwatson@debian.org> Sat, 07 Oct 2017 13:44:13 +0100
1082
1083openssh (1:7.6p1-1) unstable; urgency=medium
1084
1085 * New upstream release (https://www.openssh.com/txt/release-7.6):
1086 - CVE-2017-15906: sftp-server(8): In read-only mode, sftp-server was
1087 incorrectly permitting creation of zero-length files. Reported by
1088 Michal Zalewski.
1089 - ssh(1): Delete SSH protocol version 1 support, associated
1090 configuration options and documentation (LP: #1584321).
1091 - ssh(1)/sshd(8): Remove support for the hmac-ripemd160 MAC.
1092 - ssh(1)/sshd(8): Remove support for the arcfour, blowfish and CAST
1093 ciphers.
1094 - Refuse RSA keys <1024 bits in length and improve reporting for keys
1095 that do not meet this requirement.
1096 - ssh(1): Do not offer CBC ciphers by default.
1097 - ssh(1): Add RemoteCommand option to specify a command in the ssh
1098 config file instead of giving it on the client's command line. This
1099 allows the configuration file to specify the command that will be
1100 executed on the remote host.
1101 - sshd(8): Add ExposeAuthInfo option that enables writing details of the
1102 authentication methods used (including public keys where applicable)
1103 to a file that is exposed via a $SSH_USER_AUTH environment variable in
1104 the subsequent session.
1105 - ssh(1): Add support for reverse dynamic forwarding. In this mode, ssh
1106 will act as a SOCKS4/5 proxy and forward connections to destinations
1107 requested by the remote SOCKS client. This mode is requested using
1108 extended syntax for the -R and RemoteForward options and, because it
1109 is implemented solely at the client, does not require the server be
1110 updated to be supported.
1111 - sshd(8): Allow LogLevel directive in sshd_config Match blocks.
1112 - ssh-keygen(1): Allow inclusion of arbitrary string or flag certificate
1113 extensions and critical options.
1114 - ssh-keygen(1): Allow ssh-keygen to use a key held in ssh-agent as a CA
1115 when signing certificates.
1116 - ssh(1)/sshd(8): Allow IPQoS=none in ssh/sshd to not set an explicit
1117 ToS/DSCP value and just use the operating system default.
1118 - ssh-add(1): Add -q option to make ssh-add quiet on success.
1119 - ssh(1): Expand the StrictHostKeyChecking option with two new settings.
1120 The first "accept-new" will automatically accept hitherto-unseen keys
1121 but will refuse connections for changed or invalid hostkeys. This is
1122 a safer subset of the current behaviour of StrictHostKeyChecking=no.
1123 The second setting "off", is a synonym for the current behaviour of
1124 StrictHostKeyChecking=no: accept new host keys, and continue
1125 connection for hosts with incorrect hostkeys. A future release will
1126 change the meaning of StrictHostKeyChecking=no to the behaviour of
1127 "accept-new".
1128 - ssh(1): Add SyslogFacility option to ssh(1) matching the equivalent
1129 option in sshd(8).
1130 - ssh(1): Use HostKeyAlias if specified instead of hostname for matching
1131 host certificate principal names.
1132 - sftp(1): Implement sorting for globbed ls.
1133 - ssh(1): Add a user@host prefix to client's "Permission denied"
1134 messages, useful in particular when using "stacked" connections (e.g.
1135 ssh -J) where it's not clear which host is denying.
1136 - ssh(1): Accept unknown EXT_INFO extension values that contain \0
1137 characters. These are legal, but would previously cause fatal
1138 connection errors if received.
1139 - sftp(1): Print '?' instead of incorrect link count (that the protocol
1140 doesn't provide) for remote listings.
1141 - ssh(1): Return failure rather than fatal() for more cases during
1142 session multiplexing negotiations. Causes the session to fall back to
1143 a non-mux connection if they occur.
1144 - ssh(1): Mention that the server may send debug messages to explain
1145 public key authentication problems under some circumstances.
1146 - Translate OpenSSL error codes to better report incorrect passphrase
1147 errors when loading private keys.
1148 - sshd(8): Adjust compatibility patterns for WinSCP to correctly
1149 identify versions that implement only the legacy DH group exchange
1150 scheme (closes: #877800).
1151 - ssh(1): Print the "Killed by signal 1" message only at LogLevel
1152 verbose so that it is not shown at the default level; prevents it from
1153 appearing during ssh -J and equivalent ProxyCommand configs.
1154 - ssh-keygen(1): When generating all hostkeys (ssh-keygen -A), clobber
1155 existing keys if they exist but are zero length. Zero-length keys
1156 could previously be made if ssh-keygen failed or was interrupted part
1157 way through generating them.
1158 - ssh-keyscan(1): Avoid double-close() on file descriptors.
1159 - sshd(8): Avoid reliance on shared use of pointers shared between
1160 monitor and child sshd processes.
1161 - sshd_config(8): Document available AuthenticationMethods.
1162 - ssh(1): Avoid truncation in some login prompts.
1163 - ssh(1): Make "--" before the hostname terminate argument processing
1164 after the hostname too (closes: #873201).
1165 - ssh-keygen(1): Switch from aes256-cbc to aes256-ctr for encrypting
1166 new-style private keys.
1167 - ssh(1): Warn and do not attempt to use keys when the public and
1168 private halves do not match.
1169 - sftp(1): Don't print verbose error message when ssh disconnects from
1170 under sftp.
1171 - sshd(8): Fix keepalive scheduling problem: prevent activity on a
1172 forwarded port from preventing the keepalive from being sent.
1173 - sshd(8): When started without root privileges, don't require the
1174 privilege separation user or path to exist.
1175 - ssh(1)/sshd(8): Correctness fix for channels implementation: accept
1176 channel IDs greater than 0x7FFFFFFF.
1177 - sshd(8): Expose list of completed authentication methods to PAM via
1178 the SSH_AUTH_INFO_0 PAM environment variable.
1179 - ssh(1)/sshd(8): Fix several problems in the tun/tap forwarding code,
1180 mostly to do with host/network byte order confusion.
1181 - sshd(8): Avoid Linux seccomp violations on ppc64le over the socketcall
1182 syscall.
1183 * Build-depend on debhelper (>= 9.20160709~) rather than dh-systemd.
1184 * Change priorities of ssh and ssh-krb5 binary packages to optional, since
1185 "Priority: extra" is now deprecated.
1186 * Use HTTPS form of copyright-format URL.
1187 * Adjust "Running sshd from inittab" instructions in README.Debian to
1188 recommend using service(8) rather than calling the init script directly.
1189 * Policy version 4.1.0.
1190 * Adjust "Per-connection sshd instances with systemd" instructions in
1191 README.Debian to recommend using a drop-in file rather than copying and
1192 modifying the ssh.socket unit file.
1193
1194 -- Colin Watson <cjwatson@debian.org> Fri, 06 Oct 2017 12:36:48 +0100
1195
1196openssh (1:7.5p1-10) unstable; urgency=medium
1197
1198 * Tell haveged to create the pid file we expect.
1199 * Give up and use systemctl to start haveged if running under systemd;
1200 this shouldn't be necessary, but I can't seem to get things working in
1201 the Ubuntu autopkgtest environment otherwise.
1202
1203 -- Colin Watson <cjwatson@debian.org> Fri, 01 Sep 2017 11:17:19 +0100
1204
1205openssh (1:7.5p1-9) unstable; urgency=medium
1206
1207 * Run debian/tests/regress with "set -x".
1208 * Run haveged without "-w 1024", as setting the low water mark doesn't
1209 seem possible in all autopkgtest virtualisation environments.
1210
1211 -- Colin Watson <cjwatson@debian.org> Thu, 31 Aug 2017 13:23:04 +0100
1212
1213openssh (1:7.5p1-8) unstable; urgency=medium
1214
1215 * Drop openssh-client-ssh1, now built by a separate source package.
1216 * Run haveged during autopkgtests to ensure that they have enough entropy
1217 for key generation (LP: #1712921).
1218 * Apply patches from https://bugzilla.mindrot.org/show_bug.cgi?id=2752 to
1219 allow some extra syscalls for crypto cards on s390x (LP: #1686618).
1220
1221 -- Colin Watson <cjwatson@debian.org> Mon, 28 Aug 2017 12:16:35 +0100
1222
1223openssh (1:7.5p1-7) unstable; urgency=medium
1224
1225 * Fix spelling of RuntimeDirectoryMode (closes: #872976).
1226 * Add RuntimeDirectory and RuntimeDirectoryMode to ssh@.service as well as
1227 ssh.service (closes: #872978).
1228
1229 -- Colin Watson <cjwatson@debian.org> Wed, 23 Aug 2017 12:12:59 +0100
1230
1231openssh (1:7.5p1-6) unstable; urgency=medium
1232
1233 [ Colin Watson ]
1234 * Test configuration before starting or reloading sshd under systemd
1235 (closes: #865770).
1236 * Create /run/sshd under systemd using RuntimeDirectory rather than
1237 tmpfiles.d (thanks, Dmitry Smirnov; closes: #864190).
1238
1239 [ Dimitri John Ledkov ]
1240 * Drop upstart system and user jobs (closes: #872851).
1241
1242 [ Chris Lamb ]
1243 * Quote IP address in suggested "ssh-keygen -f" calls (closes: #872643).
1244
1245 -- Colin Watson <cjwatson@debian.org> Wed, 23 Aug 2017 01:41:06 +0100
1246
1247openssh (1:7.5p1-5) unstable; urgency=medium
1248
1249 * Upload to unstable.
1250 * Fix syntax error in debian/copyright.
1251
1252 -- Colin Watson <cjwatson@debian.org> Sun, 18 Jun 2017 12:08:42 +0100
1253
1254openssh (1:7.5p1-4) experimental; urgency=medium
1255
1256 * Drop README.Debian section on privilege separation, as it's no longer
1257 optional.
1258 * Only call "initctl set-env" from agent-launch if $UPSTART_SESSION is set
1259 (LP: #1689299).
1260 * Fix incoming compression statistics (thanks, Russell Coker; closes:
1261 #797964).
1262 * Relicense debian/* under a two-clause BSD licence for bidirectional
1263 compatibility with upstream, with permission from Matthew Vernon and
1264 others.
1265
1266 -- Colin Watson <cjwatson@debian.org> Tue, 06 Jun 2017 15:17:58 +0100
1267
1268openssh (1:7.5p1-3) experimental; urgency=medium
1269
1270 * Fix debian/adjust-openssl-dependencies to account for preferring
1271 libssl1.0-dev.
1272 * Adjust OpenSSL dependencies for openssh-client-ssh1 too.
1273 * Fix purge failure when /etc/ssh has already somehow been removed
1274 (LP: #1682817).
1275 * Ensure that /etc/ssh exists before trying to create /etc/ssh/sshd_config
1276 (LP: #1685022).
1277
1278 -- Colin Watson <cjwatson@debian.org> Tue, 02 May 2017 13:51:27 +0100
1279
1280openssh (1:7.5p1-2) experimental; urgency=medium
1281
1282 * Add missing header on Linux/s390.
1283 * Fix syntax error on Linux/X32.
1284
1285 -- Colin Watson <cjwatson@debian.org> Sun, 02 Apr 2017 13:20:11 +0100
1286
1287openssh (1:7.5p1-1) experimental; urgency=medium
1288
1289 * New upstream release (https://www.openssh.com/txt/release-7.5):
1290 - SECURITY: ssh(1), sshd(8): Fix weakness in CBC padding oracle
1291 countermeasures that allowed a variant of the attack fixed in OpenSSH
1292 7.3 to proceed. Note that the OpenSSH client disables CBC ciphers by
1293 default, sshd offers them as lowest-preference options and will remove
1294 them by default entirely in the next release.
1295 - This release deprecates the sshd_config UsePrivilegeSeparation option,
1296 thereby making privilege separation mandatory (closes: #407754).
1297 - The format of several log messages emitted by the packet code has
1298 changed to include additional information about the user and their
1299 authentication state. Software that monitors ssh/sshd logs may need
1300 to account for these changes.
1301 - ssh(1), sshd(8): Support "=-" syntax to easily remove methods from
1302 algorithm lists, e.g. Ciphers=-*cbc.
1303 - sshd(1): Fix NULL dereference crash when key exchange start messages
1304 are sent out of sequence.
1305 - ssh(1), sshd(8): Allow form-feed characters to appear in configuration
1306 files.
1307 - sshd(8): Fix regression in OpenSSH 7.4 support for the server-sig-algs
1308 extension, where SHA2 RSA signature methods were not being correctly
1309 advertised.
1310 - ssh(1), ssh-keygen(1): Fix a number of case-sensitivity bugs in
1311 known_hosts processing.
1312 - ssh(1): Allow ssh to use certificates accompanied by a private key
1313 file but no corresponding plain *.pub public key.
1314 - ssh(1): When updating hostkeys using the UpdateHostKeys option, accept
1315 RSA keys if HostkeyAlgorithms contains any RSA keytype. Previously,
1316 ssh could ignore RSA keys when only the ssh-rsa-sha2-* methods were
1317 enabled in HostkeyAlgorithms and not the old ssh-rsa method.
1318 - ssh(1): Detect and report excessively long configuration file lines.
1319 - Merge a number of fixes found by Coverity and reported via Redhat and
1320 FreeBSD. Includes fixes for some memory and file descriptor leaks in
1321 error paths.
1322 - ssh(1), sshd(8): When logging long messages to stderr, don't truncate
1323 "\r\n" if the length of the message exceeds the buffer.
1324 - ssh(1): Fully quote [host]:port in generated ProxyJump/-J command-
1325 line; avoid confusion over IPv6 addresses and shells that treat square
1326 bracket characters specially.
1327 - Fix various fallout and sharp edges caused by removing SSH protocol 1
1328 support from the server, including the server banner string being
1329 incorrectly terminated with only \n (instead of \r\n), confusing error
1330 messages from ssh-keyscan, and a segfault in sshd if protocol v.1 was
1331 enabled for the client and sshd_config contained references to legacy
1332 keys.
1333 - ssh(1), sshd(8): Free fd_set on connection timeout.
1334 - sftp(1): Fix division by zero crash in "df" output when server returns
1335 zero total filesystem blocks/inodes.
1336 - ssh(1), ssh-add(1), ssh-keygen(1), sshd(8): Translate OpenSSL errors
1337 encountered during key loading to more meaningful error codes.
1338 - ssh-keygen(1): Sanitise escape sequences in key comments sent to
1339 printf but preserve valid UTF-8 when the locale supports it.
1340 - ssh(1), sshd(8): Return reason for port forwarding failures where
1341 feasible rather than always "administratively prohibited".
1342 - sshd(8): Fix deadlock when AuthorizedKeysCommand or
1343 AuthorizedPrincipalsCommand produces a lot of output and a key is
1344 matched early.
1345 - ssh(1): Fix typo in ~C error message for bad port forward
1346 cancellation.
1347 - ssh(1): Show a useful error message when included config files can't
1348 be opened.
1349 - sshd_config(5): Repair accidentally-deleted mention of %k token in
1350 AuthorizedKeysCommand.
1351 - sshd(8): Remove vestiges of previously removed LOGIN_PROGRAM.
1352 - ssh-agent(1): Relax PKCS#11 whitelist to include libexec and common
1353 32-bit compatibility library directories.
1354 - sftp-client(1): Fix non-exploitable integer overflow in SSH2_FXP_NAME
1355 response handling.
1356 - ssh-agent(1): Fix regression in 7.4 of deleting PKCS#11-hosted keys.
1357 It was not possible to delete them except by specifying their full
1358 physical path.
1359 - sshd(8): Avoid sandbox errors for Linux S390 systems using an ICA
1360 crypto coprocessor.
1361 - sshd(8): Fix non-exploitable weakness in seccomp-bpf sandbox arg
1362 inspection.
1363 - ssh-keygen(1), ssh(1), sftp(1): Fix output truncation for various that
1364 contain non-printable characters where the codeset in use is ASCII.
1365
1366 -- Colin Watson <cjwatson@debian.org> Sun, 02 Apr 2017 02:58:01 +0100
1367
1368openssh (1:7.4p1-11) unstable; urgency=medium
1369
1370 * Fix incoming compression statistics (thanks, Russell Coker; closes:
1371 #797964).
1372
1373 -- Colin Watson <cjwatson@debian.org> Tue, 06 Jun 2017 15:03:48 +0100
1374
1375openssh (1:7.4p1-10) unstable; urgency=medium
1376
1377 * Move privilege separation directory and PID file from /var/run/ to /run/
1378 (closes: #760422, #856825).
1379 * Unbreak Unix domain socket forwarding for root (closes: #858252).
1380
1381 -- Colin Watson <cjwatson@debian.org> Thu, 30 Mar 2017 11:19:04 +0100
1382
1383openssh (1:7.4p1-9) unstable; urgency=medium
1384
1385 * Fix null pointer dereference in ssh-keygen; this fixes an autopkgtest
1386 regression introduced in 1:7.4p1-8.
1387
1388 -- Colin Watson <cjwatson@debian.org> Thu, 16 Mar 2017 13:43:15 +0000
1389
1390openssh (1:7.4p1-8) unstable; urgency=medium
1391
1392 * Fix ssh-keygen -H accidentally corrupting known_hosts that contained
1393 already-hashed entries (closes: #851734, LP: #1668093).
1394 * Fix ssh-keyscan to correctly hash hosts with a port number (closes:
1395 #857736, LP: #1670745).
1396
1397 -- Colin Watson <cjwatson@debian.org> Tue, 14 Mar 2017 13:49:14 +0000
1398
1399openssh (1:7.4p1-7) unstable; urgency=medium
1400
1401 * Don't set "PermitRootLogin yes" on fresh installations (regression
1402 introduced in 1:7.4p1-1; closes: #852781).
1403 * Restore reading authorized_keys2 by default. Upstream seems to intend
1404 to gradually phase this out, so don't assume that this will remain the
1405 default forever. However, we were late in adopting the upstream
1406 sshd_config changes, so it makes sense to extend the grace period
1407 (closes: #852320).
1408
1409 -- Colin Watson <cjwatson@debian.org> Sun, 05 Mar 2017 02:12:42 +0000
1410
1411openssh (1:7.4p1-6) unstable; urgency=medium
1412
1413 * Remove temporary file on exit from postinst (closes: #850275).
1414 * Remove LOGIN_PROGRAM and LOGIN_NO_ENDOPT definitions, since UseLogin is
1415 gone.
1416 * Document sshd_config changes that may be needed following the removal of
1417 protocol 1 support from sshd (closes: #851573).
1418 * Remove ssh_host_dsa_key from HostKey default (closes: #850614).
1419 * Fix rekeying failure with GSSAPI key exchange (thanks, Harald Barth;
1420 closes: #819361, LP: #1608965).
1421
1422 -- Colin Watson <cjwatson@debian.org> Mon, 16 Jan 2017 15:11:10 +0000
1423
1424openssh (1:7.4p1-5) unstable; urgency=medium
1425
1426 * Create mux socket for regression tests in a temporary directory.
1427 * Work around clock_gettime kernel bug on Linux x32 (closes: #849923).
1428
1429 -- Colin Watson <cjwatson@debian.org> Tue, 03 Jan 2017 14:43:28 +0000
1430
1431openssh (1:7.4p1-4) unstable; urgency=medium
1432
1433 * Run regression tests inside annotate-output to try to diagnose timeout
1434 issues.
1435 * Make integrity tests more robust against timeouts in the case where the
1436 first test in a series for a given MAC happens to modify the low bytes
1437 of a packet length.
1438 * Fix race conditions in forwarding tests.
1439
1440 -- Colin Watson <cjwatson@debian.org> Mon, 02 Jan 2017 19:37:23 +0000
1441
1442openssh (1:7.4p1-3) unstable; urgency=medium
1443
1444 * Revert attempted hack around regress/forwarding.sh test failure, since
1445 it doesn't seem to help.
1446 * Run regression tests using 'sh -x' to try to get more information about
1447 failures.
1448 * Dump some useful log files if regression tests fail.
1449 * Tweak regression test setup to cope with the case where some of the
1450 source directory is unreadable by the openssh-tests user.
1451
1452 -- Colin Watson <cjwatson@debian.org> Sat, 31 Dec 2016 02:48:17 +0000
1453
1454openssh (1:7.4p1-2) unstable; urgency=medium
1455
1456 * Attempt to hack around regress/forwarding.sh test failure in some
1457 environments.
1458 * Avoid calling into Kerberos libraries from ssh_gssapi_server_mechanisms
1459 in the privsep monitor.
1460
1461 -- Colin Watson <cjwatson@debian.org> Thu, 29 Dec 2016 12:02:12 +0000
1462
1463openssh (1:7.4p1-1) unstable; urgency=medium
1464
1465 * New upstream release (http://www.openssh.com/txt/release-7.4):
1466 - ssh(1): Remove 3des-cbc from the client's default proposal. 64-bit
1467 block ciphers are not safe in 2016 and we don't want to wait until
1468 attacks like SWEET32 are extended to SSH. As 3des-cbc was the only
1469 mandatory cipher in the SSH RFCs, this may cause problems connecting
1470 to older devices using the default configuration, but it's highly
1471 likely that such devices already need explicit configuration for key
1472 exchange and hostkey algorithms already anyway.
1473 - sshd(8): When a forced-command appears in both a certificate and an
1474 authorized keys/principals command= restriction, sshd will now refuse
1475 to accept the certificate unless they are identical. The previous
1476 (documented) behaviour of having the certificate forced-command
1477 override the other could be a bit confusing and error-prone.
1478 - sshd(8): Remove the UseLogin configuration directive and support for
1479 having /bin/login manage login sessions.
1480 - CVE-2016-10009: ssh-agent(1): Will now refuse to load PKCS#11 modules
1481 from paths outside a trusted whitelist (run-time configurable).
1482 Requests to load modules could be passed via agent forwarding and an
1483 attacker could attempt to load a hostile PKCS#11 module across the
1484 forwarded agent channel: PKCS#11 modules are shared libraries, so this
1485 would result in code execution on the system running the ssh-agent if
1486 the attacker has control of the forwarded agent-socket (on the host
1487 running the sshd server) and the ability to write to the filesystem of
1488 the host running ssh-agent (usually the host running the ssh client)
1489 (closes: #848714).
1490 - CVE-2016-10010: sshd(8): When privilege separation is disabled,
1491 forwarded Unix-domain sockets would be created by sshd(8) with the
1492 privileges of 'root' instead of the authenticated user. This release
1493 refuses Unix-domain socket forwarding when privilege separation is
1494 disabled (Privilege separation has been enabled by default for 14
1495 years) (closes: #848715).
1496 - CVE-2016-10011: sshd(8): Avoid theoretical leak of host private key
1497 material to privilege-separated child processes via realloc() when
1498 reading keys. No such leak was observed in practice for normal-sized
1499 keys, nor does a leak to the child processes directly expose key
1500 material to unprivileged users (closes: #848716).
1501 - CVE-2016-10012: sshd(8): The shared memory manager used by
1502 pre-authentication compression support had a bounds checks that could
1503 be elided by some optimising compilers. Additionally, this memory
1504 manager was incorrectly accessible when pre-authentication compression
1505 was disabled. This could potentially allow attacks against the
1506 privileged monitor process from the sandboxed privilege-separation
1507 process (a compromise of the latter would be required first). This
1508 release removes support for pre-authentication compression from
1509 sshd(8) (closes: #848717).
1510 - SECURITY: sshd(8): Validate address ranges for AllowUser and DenyUsers
1511 directives at configuration load time and refuse to accept invalid
1512 ones. It was previously possible to specify invalid CIDR address
1513 ranges (e.g. user@127.1.2.3/55) and these would always match, possibly
1514 resulting in granting access where it was not intended.
1515 - ssh(1): Add a proxy multiplexing mode to ssh(1) inspired by the
1516 version in PuTTY by Simon Tatham. This allows a multiplexing client
1517 to communicate with the master process using a subset of the SSH
1518 packet and channels protocol over a Unix-domain socket, with the main
1519 process acting as a proxy that translates channel IDs, etc. This
1520 allows multiplexing mode to run on systems that lack file-descriptor
1521 passing (used by current multiplexing code) and potentially, in
1522 conjunction with Unix-domain socket forwarding, with the client and
1523 multiplexing master process on different machines. Multiplexing proxy
1524 mode may be invoked using "ssh -O proxy ...".
1525 - sshd(8): Add a sshd_config DisableForwarding option that disables X11,
1526 agent, TCP, tunnel and Unix domain socket forwarding, as well as
1527 anything else we might implement in the future. Like the 'restrict'
1528 authorized_keys flag, this is intended to be a simple and future-proof
1529 way of restricting an account.
1530 - sshd(8), ssh(1): Support the "curve25519-sha256" key exchange method.
1531 This is identical to the currently-supported method named
1532 "curve25519-sha256@libssh.org".
1533 - sshd(8): Improve handling of SIGHUP by checking to see if sshd is
1534 already daemonised at startup and skipping the call to daemon(3) if it
1535 is. This ensures that a SIGHUP restart of sshd(8) will retain the
1536 same process-ID as the initial execution. sshd(8) will also now
1537 unlink the PidFile prior to SIGHUP restart and re-create it after a
1538 successful restart, rather than leaving a stale file in the case of a
1539 configuration error.
1540 - sshd(8): Allow ClientAliveInterval and ClientAliveCountMax directives
1541 to appear in sshd_config Match blocks.
1542 - sshd(8): Add %-escapes to AuthorizedPrincipalsCommand to match those
1543 supported by AuthorizedKeysCommand (key, key type, fingerprint, etc.)
1544 and a few more to provide access to the contents of the certificate
1545 being offered.
1546 - ssh(1): Allow IdentityFile to successfully load and use certificates
1547 that have no corresponding bare public key.
1548 - ssh(1): Fix public key authentication when multiple authentication is
1549 in use and publickey is not just the first method attempted.
1550 - ssh(1): Improve reporting when attempting to load keys from PKCS#11
1551 tokens with fewer useless log messages and more detail in debug
1552 messages.
1553 - ssh(1): When tearing down ControlMaster connections, don't pollute
1554 stderr when LogLevel=quiet.
1555 - sftp(1): On ^Z wait for underlying ssh(1) to suspend before suspending
1556 sftp(1) to ensure that ssh(1) restores the terminal mode correctly if
1557 suspended during a password prompt.
1558 - ssh(1): Avoid busy-wait when ssh(1) is suspended during a password
1559 prompt (LP: #1646813).
1560 - ssh(1), sshd(8): Correctly report errors during sending of ext-info
1561 messages.
1562 - sshd(8): Fix NULL-deref crash if sshd(8) received an out-of-sequence
1563 NEWKEYS message.
1564 - sshd(8): Correct list of supported signature algorithms sent in the
1565 server-sig-algs extension.
1566 - sshd(8): Fix sending ext_info message if privsep is disabled.
1567 - sshd(8): More strictly enforce the expected ordering of privilege
1568 separation monitor calls used for authentication and allow them only
1569 when their respective authentication methods are enabled in the
1570 configuration.
1571 - sshd_config(5): Use 2001:db8::/32, the official IPv6 subnet for
1572 configuration examples.
1573 - On environments configured with Turkish locales, fall back to the
1574 C/POSIX locale to avoid errors in configuration parsing caused by that
1575 locale's unique handling of the letters 'i' and 'I' (LP: #1638338).
1576 - contrib: Add a gnome-ssh-askpass3 with GTK+3 support.
1577 - sshd(8): Improve PRNG reseeding across privilege separation and force
1578 libcrypto to obtain a high-quality seed before chroot or sandboxing.
1579 * Apply "wrap-and-sort -at -f debian/control -f debian/tests/control".
1580 * Remove entries related to protocol 1 from the default sshd_config
1581 generated on new installations.
1582 * Remove some advice related to protocol 1 from README.Debian.
1583 * Start handling /etc/ssh/sshd_config using ucf. The immediate motivation
1584 for this is to deal with deprecations of options related to protocol 1,
1585 but something like this has been needed for a long time (closes:
1586 #419574, #848089):
1587 - sshd_config is now a slightly-patched version of upstream's, and only
1588 contains non-default settings (closes: #147201).
1589 - I've included as many historical md5sums of default versions of
1590 sshd_config as I could reconstruct from version control, but I'm sure
1591 I've missed some.
1592 - Explicitly synchronise the debconf database with the current
1593 configuration file state in openssh-server.config, to ensure that the
1594 PermitRootLogin setting is properly preserved.
1595 - UsePrivilegeSeparation now defaults to the stronger "sandbox" rather
1596 than "yes", per upstream.
1597 * Remove redundant "GSSAPIDelegateCredentials no" from ssh_config (already
1598 the upstream default), and document that setting ServerAliveInterval to
1599 300 by default if BatchMode is set is Debian-specific (closes: #765630).
1600 * Build gnome-ssh-askpass with GTK+ 3 (LP: #801187).
1601 * When running regression tests under autopkgtest, use a non-root user
1602 with passwordless sudo.
1603
1604 -- Colin Watson <cjwatson@debian.org> Tue, 27 Dec 2016 18:01:46 +0000
1605
1606openssh (1:7.3p1-5) unstable; urgency=medium
1607
1608 * debian/tests/control: Add dependency on openssl, required by the PuTTY
1609 interoperability tests.
1610
1611 -- Colin Watson <cjwatson@debian.org> Sat, 03 Dec 2016 03:43:21 +0000
1612
1613openssh (1:7.3p1-4) unstable; urgency=medium
1614
1615 * Adjust Build-Depends further to avoid considering libssl-dev >= 1.1.0~
1616 as sufficient.
1617 * Move build directories under debian/.
1618 * Remove the non-upstream .gitignore file and add the relevant entries to
1619 debian/.gitignore, in order to make the source tree more
1620 dgit-compatible.
1621 * Build all upstream regression test binaries using the new
1622 "regress-binaries" target.
1623 * Fix and enable PuTTY interoperability tests under autopkgtest.
1624
1625 -- Colin Watson <cjwatson@debian.org> Fri, 02 Dec 2016 20:49:30 +0000
1626
1627openssh (1:7.3p1-3) unstable; urgency=medium
1628
1629 * Avoid building with OpenSSL 1.1 for now (see #828475).
1630 * Add a missing License line to debian/copyright.
1631 * Policy version 3.9.8: no changes required.
1632
1633 -- Colin Watson <cjwatson@debian.org> Sat, 05 Nov 2016 15:37:15 +0000
1634
1635openssh (1:7.3p1-2) unstable; urgency=high
1636
1637 * Rewrite debian/copyright using copyright-format 1.0.
1638 * CVE-2016-8858: Unregister the KEXINIT handler after message has been
1639 received (closes: #841884).
1640
1641 -- Colin Watson <cjwatson@debian.org> Mon, 24 Oct 2016 11:18:00 +0100
1642
1643openssh (1:7.3p1-1) unstable; urgency=medium
1644
1645 * New upstream release (http://www.openssh.com/txt/release-7.3):
1646 - SECURITY: sshd(8): Mitigate a potential denial-of-service attack
1647 against the system's crypt(3) function via sshd(8). An attacker could
1648 send very long passwords that would cause excessive CPU use in
1649 crypt(3). sshd(8) now refuses to accept password authentication
1650 requests of length greater than 1024 characters.
1651 - SECURITY: ssh(1), sshd(8): Fix observable timing weakness in the CBC
1652 padding oracle countermeasures. Note that CBC ciphers are disabled by
1653 default and only included for legacy compatibility.
1654 - SECURITY: ssh(1), sshd(8): Improve operation ordering of MAC
1655 verification for Encrypt-then-MAC (EtM) mode transport MAC algorithms
1656 to verify the MAC before decrypting any ciphertext. This removes the
1657 possibility of timing differences leaking facts about the plaintext,
1658 though no such leakage has been observed.
1659 - ssh(1): Add a ProxyJump option and corresponding -J command-line flag
1660 to allow simplified indirection through a one or more SSH bastions or
1661 "jump hosts".
1662 - ssh(1): Add an IdentityAgent option to allow specifying specific agent
1663 sockets instead of accepting one from the environment.
1664 - ssh(1): Allow ExitOnForwardFailure and ClearAllForwardings to be
1665 optionally overridden when using ssh -W.
1666 - ssh(1), sshd(8): Implement support for the IUTF8 terminal mode as per
1667 draft-sgtatham-secsh-iutf8-00 (closes: #337041, LP: #394570).
1668 - ssh(1), sshd(8): Add support for additional fixed Diffie-Hellman 2K,
1669 4K and 8K groups from draft-ietf-curdle-ssh-kex-sha2-03.
1670 - ssh-keygen(1), ssh(1), sshd(8): Support SHA256 and SHA512 RSA
1671 signatures in certificates.
1672 - ssh(1): Add an Include directive for ssh_config(5) files (closes:
1673 #536031).
1674 - ssh(1): Permit UTF-8 characters in pre-authentication banners sent
1675 from the server.
1676 - ssh(1), sshd(8): Reduce the syslog level of some relatively common
1677 protocol events from LOG_CRIT.
1678 - sshd(8): Refuse AuthenticationMethods="" in configurations and accept
1679 AuthenticationMethods=any for the default behaviour of not requiring
1680 multiple authentication.
1681 - sshd(8): Remove obsolete and misleading "POSSIBLE BREAK-IN ATTEMPT!"
1682 message when forward and reverse DNS don't match.
1683 - ssh(1): Deduplicate LocalForward and RemoteForward entries to fix
1684 failures when both ExitOnForwardFailure and hostname canonicalisation
1685 are enabled.
1686 - sshd(8): Remove fallback from moduli to obsolete "primes" file that
1687 was deprecated in 2001 (LP: #1528251).
1688 - sshd_config(5): Correct description of UseDNS: it affects ssh hostname
1689 processing for authorized_keys, not known_hosts.
1690 - sshd(8): Send ClientAliveInterval pings when a time-based RekeyLimit
1691 is set; previously keepalive packets were not being sent.
1692 - sshd(8): Whitelist more architectures to enable the seccomp-bpf
1693 sandbox.
1694 - scp(1): Respect the local user's LC_CTYPE locale (closes: #396295).
1695 - Take character display widths into account for the progressmeter
1696 (closes: #407088).
1697
1698 -- Colin Watson <cjwatson@debian.org> Sun, 07 Aug 2016 22:45:26 +0100
1699
1700openssh (1:7.2p2-8) unstable; urgency=medium
1701
1702 [ Colin Watson ]
1703 * Stop enabling ssh-session-cleanup.service by default; instead, ship it
1704 as an example and add a section to README.Debian. libpam-systemd >= 230
1705 and "UsePAM yes" should take care of the original problem for most
1706 systemd users (thanks, Michael Biebl; closes: #832155).
1707
1708 [ Martin Pitt ]
1709 * Add debian/agent-launch: Helper script for conditionally starting the SSH
1710 agent in the user session. Use it in ssh-agent.user-session.upstart.
1711 * Add systemd user unit for graphical sessions that use systemd. Override
1712 the corresponding upstart job in that case (closes: #832445).
1713 * debian/openssh-server.if-up: Don't block on a finished reload of
1714 openssh.service, to avoid deadlocking with restarting networking.
1715 (closes: #832557, LP: #1584393)
1716
1717 -- Colin Watson <cjwatson@debian.org> Fri, 29 Jul 2016 02:51:32 +0100
1718
1719openssh (1:7.2p2-7) unstable; urgency=medium
1720
1721 * Don't stop the ssh-session-cleanup service on upgrade (closes: #832155).
1722 This may cause SSH sessions to be killed on upgrade to *this* version if
1723 you had previously installed 1:7.2p2-6. Sorry! If your session is
1724 killed, you can recover using "dpkg --unpack" on this openssh-server
1725 .deb, followed by "dpkg --configure -a".
1726 * Recommend libpam-systemd from openssh-server. It's a much better
1727 solution than the above for systemd users, but I'm wary of depending on
1728 it in case I cause an assortment of exciting dependency problems on
1729 upgrade for non-systemd users.
1730
1731 -- Colin Watson <cjwatson@debian.org> Sat, 23 Jul 2016 11:46:33 +0100
1732
1733openssh (1:7.2p2-6) unstable; urgency=medium
1734
1735 * debian/watch: Switch to HTTP (thanks, Nicholas Luedtke; closes:
1736 #822997).
1737 * Copy summary of supported SFTP protocol versions from upstream's
1738 PROTOCOL file into the openssh-sftp-server package description (closes:
1739 #766887).
1740 * Set SSH_PROGRAM=/usr/bin/ssh1 when building openssh-client-ssh1 so that
1741 scp1 works (reported by Olivier MATZ).
1742 * Retroactively add a NEWS.Debian entry for the UseDNS change in 6.9 (see
1743 LP #1588457).
1744 * CVE-2016-6210: Mitigate user enumeration via covert timing channel
1745 (closes: #831902).
1746 * Backport upstream patch to close ControlPersist background process
1747 stderr when not in debug mode or when logging to a file or syslog
1748 (closes: #714526).
1749 * Add a session cleanup script and a systemd unit file to trigger it,
1750 which serves to terminate SSH sessions cleanly if systemd doesn't do
1751 that itself, often because libpam-systemd is not installed (thanks,
1752 Vivek Das Mohapatra, Tom Hutter, and others; closes: #751636).
1753 * Stop generating DSA host keys by default (thanks, Santiago Vila; closes:
1754 #823827).
1755
1756 -- Colin Watson <cjwatson@debian.org> Fri, 22 Jul 2016 17:06:19 +0100
1757
1758openssh (1:7.2p2-5) unstable; urgency=medium
1759
1760 * Backport upstream patch to unbreak authentication using lone certificate
1761 keys in ssh-agent: when attempting pubkey auth with a certificate, if no
1762 separate private key is found among the keys then try with the
1763 certificate key itself (thanks, Paul Querna; LP: #1575961).
1764
1765 -- Colin Watson <cjwatson@debian.org> Thu, 28 Apr 2016 01:52:01 +0100
1766
1767openssh (1:7.2p2-4) unstable; urgency=medium
1768
1769 * Drop dependency on libnss-files-udeb (closes: #819686).
1770 * Policy version 3.9.7: no changes required.
1771
1772 -- Colin Watson <cjwatson@debian.org> Fri, 15 Apr 2016 16:40:07 +0100
1773
1774openssh (1:7.2p2-3) unstable; urgency=high
1775
1776 * Change all openssh.org references to openssh.com (closes: #819213).
1777 * CVE-2015-8325: Ignore PAM environment vars when UseLogin=yes.
1778
1779 -- Colin Watson <cjwatson@debian.org> Wed, 13 Apr 2016 16:42:28 +0100
1780
1781openssh (1:7.2p2-2) unstable; urgency=medium
1782
1783 * Fix kexgss_server to cope with DH_GRP_MIN/DH_GRP_MAX being stricter on
1784 the server end than the client (thanks, Damien Miller; closes: #817870,
1785 LP: #1558576).
1786
1787 -- Colin Watson <cjwatson@debian.org> Mon, 21 Mar 2016 12:08:55 +0000
1788
1789openssh (1:7.2p2-1) unstable; urgency=high
1790
1791 * New upstream release (http://www.openssh.com/txt/release-7.2p2):
1792 - CVE-2016-3115: sshd(8): Sanitise X11 authentication credentials to
1793 avoid xauth command injection when X11Forwarding is enabled
1794 (http://www.openssh.com/txt/x11fwd.adv).
1795
1796 -- Colin Watson <cjwatson@debian.org> Thu, 10 Mar 2016 13:04:29 +0000
1797
1798openssh (1:7.2p1-1) unstable; urgency=medium
1799
1800 * New upstream release (http://www.openssh.com/txt/release-7.2):
1801 - This release disables a number of legacy cryptographic algorithms by
1802 default in ssh:
1803 + Several ciphers blowfish-cbc, cast128-cbc, all arcfour variants and
1804 the rijndael-cbc aliases for AES.
1805 + MD5-based and truncated HMAC algorithms.
1806 These algorithms are already disabled by default in sshd.
1807 - ssh(1), sshd(8): Remove unfinished and unused roaming code (was
1808 already forcibly disabled in OpenSSH 7.1p2).
1809 - ssh(1): Eliminate fallback from untrusted X11 forwarding to trusted
1810 forwarding when the X server disables the SECURITY extension.
1811 - ssh(1), sshd(8): Increase the minimum modulus size supported for
1812 diffie-hellman-group-exchange to 2048 bits.
1813 - sshd(8): Pre-auth sandboxing is now enabled by default (previous
1814 releases enabled it for new installations via sshd_config).
1815 - all: Add support for RSA signatures using SHA-256/512 hash algorithms
1816 based on draft-rsa-dsa-sha2-256-03.txt and draft-ssh-ext-info-04.txt.
1817 - ssh(1): Add an AddKeysToAgent client option which can be set to 'yes',
1818 'no', 'ask', or 'confirm', and defaults to 'no'. When enabled, a
1819 private key that is used during authentication will be added to
1820 ssh-agent if it is running (with confirmation enabled if set to
1821 'confirm').
1822 - sshd(8): Add a new authorized_keys option "restrict" that includes all
1823 current and future key restrictions (no-*-forwarding, etc.). Also add
1824 permissive versions of the existing restrictions, e.g. "no-pty" ->
1825 "pty". This simplifies the task of setting up restricted keys and
1826 ensures they are maximally-restricted, regardless of any permissions
1827 we might implement in the future.
1828 - ssh(1): Add ssh_config CertificateFile option to explicitly list
1829 certificates.
1830 - ssh-keygen(1): Allow ssh-keygen to change the key comment for all
1831 supported formats (closes: #811125).
1832 - ssh-keygen(1): Allow fingerprinting from standard input, e.g.
1833 "ssh-keygen -lf -" (closes: #509058).
1834 - ssh-keygen(1): Allow fingerprinting multiple public keys in a file,
1835 e.g. "ssh-keygen -lf ~/.ssh/authorized_keys".
1836 - sshd(8): Support "none" as an argument for sshd_config Foreground and
1837 ChrootDirectory. Useful inside Match blocks to override a global
1838 default.
1839 - ssh-keygen(1): Support multiple certificates (one per line) and
1840 reading from standard input (using "-f -") for "ssh-keygen -L"
1841 - ssh-keyscan(1): Add "ssh-keyscan -c ..." flag to allow fetching
1842 certificates instead of plain keys.
1843 - ssh(1): Better handle anchored FQDNs (e.g. 'cvs.openbsd.org.') in
1844 hostname canonicalisation - treat them as already canonical and remove
1845 the trailing '.' before matching ssh_config.
1846 - sftp(1): Existing destination directories should not terminate
1847 recursive uploads (regression in OpenSSH 6.8; LP: #1553378).
1848 * Use HTTPS for Vcs-* URLs, and link to cgit rather than gitweb.
1849 * Restore slogin symlinks for compatibility, although they were removed
1850 upstream.
1851
1852 -- Colin Watson <cjwatson@debian.org> Tue, 08 Mar 2016 11:47:20 +0000
1853
1854openssh (1:7.1p2-2) unstable; urgency=medium
1855
1856 * Remove protocol 1 host key generation from openssh-server.postinst
1857 (closes: #811265).
1858
1859 -- Colin Watson <cjwatson@debian.org> Sun, 17 Jan 2016 14:10:19 +0000
1860
1861openssh (1:7.1p2-1) unstable; urgency=high
1862
1863 * New upstream release (http://www.openssh.com/txt/release-7.1p2):
1864 - CVE-2016-0777, CVE-2016-0778: Disable experimental client-side support
1865 for roaming, which could be tricked by a malicious server into leaking
1866 client memory to the server, including private client user keys; this
1867 information leak is restricted to connections to malicious or
1868 compromised servers (closes: #810984).
1869 - SECURITY: Fix an out of-bound read access in the packet handling code.
1870 Reported by Ben Hawkes.
1871 - Further use of explicit_bzero has been added in various buffer
1872 handling code paths to guard against compilers aggressively doing
1873 dead-store removal.
1874
1875 -- Colin Watson <cjwatson@debian.org> Thu, 14 Jan 2016 15:28:03 +0000
1876
1877openssh (1:7.1p1-6) unstable; urgency=medium
1878
1879 [ Colin Watson ]
1880 * Remove explicit "XS-Testsuite: autopkgtest" from debian/control;
1881 dpkg-source now figures that out automatically based on the existence of
1882 debian/tests/control.
1883 * Allow authenticating as root using gssapi-keyex even with
1884 "PermitRootLogin prohibit-password" (closes: #809695).
1885 * Shuffle PROPOSAL_KEX_ALGS mangling for GSSAPI key exchange a little
1886 later in ssh_kex2 so that it's actually effective (closes: #809696).
1887
1888 [ Michael Biebl ]
1889 * Don't call sd_notify when sshd is re-execed (closes: #809035).
1890
1891 -- Colin Watson <cjwatson@debian.org> Mon, 04 Jan 2016 15:09:10 +0000
1892
1893openssh (1:7.1p1-5) unstable; urgency=medium
1894
1895 [ Michael Biebl ]
1896 * Add systemd readiness notification support (closes: #778913).
1897
1898 -- Colin Watson <cjwatson@debian.org> Mon, 21 Dec 2015 22:10:07 +0000
1899
1900openssh (1:7.1p1-4) unstable; urgency=medium
1901
1902 * Backport upstream patch to unbreak connections with peers that set
1903 first_kex_follows (LP: #1526357).
1904
1905 -- Colin Watson <cjwatson@debian.org> Tue, 15 Dec 2015 15:40:18 +0000
1906
1907openssh (1:7.1p1-3) unstable; urgency=medium
1908
1909 * Drop priority of openssh-client-ssh1 to extra (closes: #807518).
1910 * Redirect regression test input from /dev/zero, since otherwise conch
1911 will immediately send EOF.
1912
1913 -- Colin Watson <cjwatson@debian.org> Thu, 10 Dec 2015 15:12:10 +0000
1914
1915openssh (1:7.1p1-2) unstable; urgency=medium
1916
1917 * Really enable conch interoperability tests under autopkgtest.
1918 * Drop SSH1 keepalive patch. Now that SSH1 is disabled at compile-time,
1919 it's been rejected upstream and there isn't much point carrying it any
1920 more.
1921 * Add NEWS.Debian documenting cryptographic changes in OpenSSH 7.0
1922 (closes: #806962).
1923 * Add an openssh-client-ssh1 binary package for people who need to connect
1924 to outdated SSH1-only servers (closes: #807107).
1925 * Update "Subsystem sftp" path in example sshd_config (closes: #691004,
1926 LP: #1437005).
1927
1928 -- Colin Watson <cjwatson@debian.org> Tue, 08 Dec 2015 15:33:08 +0000
1929
1930openssh (1:7.1p1-1) unstable; urgency=medium
1931
1932 * New upstream release (http://www.openssh.com/txt/release-7.0, closes:
1933 #785190):
1934 - Support for the legacy SSH version 1 protocol is disabled by default
1935 at compile time.
1936 - Support for the 1024-bit diffie-hellman-group1-sha1 key exchange is
1937 disabled by default at run-time. It may be re-enabled using the
1938 instructions at http://www.openssh.com/legacy.html
1939 - Support for ssh-dss, ssh-dss-cert-* host and user keys is disabled by
1940 default at run-time. These may be re-enabled using the instructions
1941 at http://www.openssh.com/legacy.html
1942 - Support for the legacy v00 cert format has been removed.
1943 - The default for the sshd_config(5) PermitRootLogin option has changed
1944 from "yes" to "prohibit-password".
1945 - PermitRootLogin=without-password/prohibit-password now bans all
1946 interactive authentication methods, allowing only public-key,
1947 hostbased and GSSAPI authentication (previously it permitted
1948 keyboard-interactive and password-less authentication if those were
1949 enabled).
1950 - ssh_config(5): Add PubkeyAcceptedKeyTypes option to control which
1951 public key types are available for user authentication.
1952 - sshd_config(5): Add HostKeyAlgorithms option to control which public
1953 key types are offered for host authentications.
1954 - ssh(1), sshd(8): Extend Ciphers, MACs, KexAlgorithms,
1955 HostKeyAlgorithms, PubkeyAcceptedKeyTypes and HostbasedKeyTypes
1956 options to allow appending to the default set of algorithms instead of
1957 replacing it. Options may now be prefixed with a '+' to append to the
1958 default, e.g. "HostKeyAlgorithms=+ssh-dss".
1959 - sshd_config(5): PermitRootLogin now accepts an argument of
1960 'prohibit-password' as a less-ambiguous synonym of 'without-
1961 password'.
1962 - ssh(1), sshd(8): Add compatability workarounds for Cisco and more
1963 PuTTY versions.
1964 - Fix some omissions and errors in the PROTOCOL and PROTOCOL.mux
1965 documentation relating to Unix domain socket forwarding.
1966 - ssh(1): Improve the ssh(1) manual page to include a better description
1967 of Unix domain socket forwarding (closes: #779068).
1968 - ssh(1), ssh-agent(1): Skip uninitialised PKCS#11 slots, fixing
1969 failures to load keys when they are present.
1970 - ssh(1), ssh-agent(1): Do not ignore PKCS#11 hosted keys that wth empty
1971 CKA_ID.
1972 - sshd(8): Clarify documentation for UseDNS option.
1973 - Check realpath(3) behaviour matches what sftp-server requires and use
1974 a replacement if necessary.
1975 * New upstream release (http://www.openssh.com/txt/release-7.1):
1976 - sshd(8): OpenSSH 7.0 contained a logic error in PermitRootLogin=
1977 prohibit-password/without-password that could, depending on
1978 compile-time configuration, permit password authentication to root
1979 while preventing other forms of authentication. This problem was
1980 reported by Mantas Mikulenas.
1981 - ssh(1), sshd(8): Add compatibility workarounds for FuTTY.
1982 - ssh(1), sshd(8): Refine compatibility workarounds for WinSCP.
1983 - Fix a number of memory faults (double-free, free of uninitialised
1984 memory, etc) in ssh(1) and ssh-keygen(1). Reported by Mateusz
1985 Kocielski.
1986 * Change "PermitRootLogin without-password" to the new preferred spelling
1987 of "PermitRootLogin prohibit-password" in sshd_config, and update
1988 documentation to reflect the new upstream default.
1989 * Enable conch interoperability tests under autopkgtest.
1990
1991 -- Colin Watson <cjwatson@debian.org> Wed, 02 Dec 2015 20:18:35 +0000
1992
1993openssh (1:6.9p1-3) unstable; urgency=medium
1994
1995 * ssh_config(5): Fix markup errors in description of GSSAPITrustDns
1996 (closes: #799271).
1997 * Fix dh_install and dh_fixperms overrides to work properly with an
1998 architecture-independent-only build (closes: #806090).
1999 * Do much less work in architecture-independent-only builds.
2000 * Drop ConsoleKit session registration patch; it was only ever enabled for
2001 Ubuntu, which no longer needs it (LP: #1334916, #1502045).
2002
2003 -- Colin Watson <cjwatson@debian.org> Tue, 24 Nov 2015 22:48:53 +0000
2004
2005openssh (1:6.9p1-2) unstable; urgency=medium
2006
2007 [ Colin Watson ]
2008 * mention-ssh-keygen-on-keychange.patch: Move example ssh-keygen
2009 invocation onto a separate line to make it easier to copy and paste
2010 (LP: #1491532).
2011
2012 [ Tyler Hicks ]
2013 * Build with audit support on Linux (closes: #797727, LP: #1478087).
2014
2015 -- Colin Watson <cjwatson@debian.org> Thu, 10 Sep 2015 12:26:11 +0100
2016
2017openssh (1:6.9p1-1) unstable; urgency=medium
2018
2019 * New upstream release (http://www.openssh.com/txt/release-6.8):
2020 - sshd(8): UseDNS now defaults to 'no'. Configurations that match
2021 against the client host name (via sshd_config or authorized_keys) may
2022 need to re-enable it or convert to matching against addresses.
2023 - Add FingerprintHash option to ssh(1) and sshd(8), and equivalent
2024 command-line flags to the other tools to control algorithm used for
2025 key fingerprints. The default changes from MD5 to SHA256 and format
2026 from hex to base64.
2027 Fingerprints now have the hash algorithm prepended. An example of the
2028 new format: SHA256:mVPwvezndPv/ARoIadVY98vAC0g+P/5633yTC4d/wXE
2029 Please note that visual host keys will also be different.
2030 - ssh(1), sshd(8): Experimental host key rotation support. Add a
2031 protocol extension for a server to inform a client of all its
2032 available host keys after authentication has completed. The client
2033 may record the keys in known_hosts, allowing it to upgrade to better
2034 host key algorithms and a server to gracefully rotate its keys.
2035 The client side of this is controlled by a UpdateHostkeys config
2036 option (default off).
2037 - ssh(1): Add a ssh_config HostbasedKeyType option to control which host
2038 public key types are tried during host-based authentication.
2039 - ssh(1), sshd(8): Fix connection-killing host key mismatch errors when
2040 sshd offers multiple ECDSA keys of different lengths.
2041 - ssh(1): When host name canonicalisation is enabled, try to parse host
2042 names as addresses before looking them up for canonicalisation. Fixes
2043 bz#2074 and avoids needless DNS lookups in some cases.
2044 - ssh(1), ssh-keysign(8): Make ed25519 keys work for host based
2045 authentication.
2046 - sshd(8): SSH protocol v.1 workaround for the Meyer, et al,
2047 Bleichenbacher Side Channel Attack. Fake up a bignum key before RSA
2048 decryption.
2049 - sshd(8): Remember which public keys have been used for authentication
2050 and refuse to accept previously-used keys. This allows
2051 AuthenticationMethods=publickey,publickey to require that users
2052 authenticate using two _different_ public keys.
2053 - sshd(8): add sshd_config HostbasedAcceptedKeyTypes and
2054 PubkeyAcceptedKeyTypes options to allow sshd to control what public
2055 key types will be accepted (closes: #481133). Currently defaults to
2056 all.
2057 - sshd(8): Don't count partial authentication success as a failure
2058 against MaxAuthTries.
2059 - ssh(1): Add RevokedHostKeys option for the client to allow text-file
2060 or KRL-based revocation of host keys.
2061 - ssh-keygen(1), sshd(8): Permit KRLs that revoke certificates by serial
2062 number or key ID without scoping to a particular CA.
2063 - ssh(1): Add a "Match canonical" criteria that allows ssh_config Match
2064 blocks to trigger only in the second config pass.
2065 - ssh(1): Add a -G option to ssh that causes it to parse its
2066 configuration and dump the result to stdout, similar to "sshd -T".
2067 - ssh(1): Allow Match criteria to be negated. E.g. "Match !host".
2068 - ssh-keyscan(1): ssh-keyscan has been made much more robust against
2069 servers that hang or violate the SSH protocol (closes: #241119).
2070 - ssh(1), ssh-keygen(1): Fix regression bz#2306: Key path names were
2071 being lost as comment fields (closes: #787776).
2072 - ssh(1): Allow ssh_config Port options set in the second config parse
2073 phase to be applied (they were being ignored; closes: #774369).
2074 - ssh(1): Tweak config re-parsing with host canonicalisation - make the
2075 second pass through the config files always run when host name
2076 canonicalisation is enabled (and not whenever the host name changes)
2077 - ssh(1): Fix passing of wildcard forward bind addresses when connection
2078 multiplexing is in use.
2079 - ssh-keygen(1): Fix broken private key conversion from non-OpenSSH
2080 formats.
2081 - ssh-keygen(1): Fix KRL generation bug when multiple CAs are in use.
2082 * New upstream release (http://www.openssh.com/txt/release-6.9):
2083 - CVE-2015-5352: ssh(1): When forwarding X11 connections with
2084 ForwardX11Trusted=no, connections made after ForwardX11Timeout expired
2085 could be permitted and no longer subject to XSECURITY restrictions
2086 because of an ineffective timeout check in ssh(1) coupled with "fail
2087 open" behaviour in the X11 server when clients attempted connections
2088 with expired credentials (closes: #790798). This problem was reported
2089 by Jann Horn.
2090 - SECURITY: ssh-agent(1): Fix weakness of agent locking (ssh-add -x) to
2091 password guessing by implementing an increasing failure delay, storing
2092 a salted hash of the password rather than the password itself and
2093 using a timing-safe comparison function for verifying unlock attempts.
2094 This problem was reported by Ryan Castellucci.
2095 - sshd(8): Support admin-specified arguments to AuthorizedKeysCommand
2096 (closes: #740494).
2097 - sshd(8): Add AuthorizedPrincipalsCommand that allows retrieving
2098 authorized principals information from a subprocess rather than a
2099 file.
2100 - ssh(1), ssh-add(1): Support PKCS#11 devices with external PIN entry
2101 devices.
2102 - ssh-keygen(1): Support "ssh-keygen -lF hostname" to search known_hosts
2103 and print key hashes rather than full keys.
2104 - ssh-agent(1): Add -D flag to leave ssh-agent in foreground without
2105 enabling debug mode.
2106 - ssh(1), sshd(8): Deprecate legacy SSH2_MSG_KEX_DH_GEX_REQUEST_OLD
2107 message and do not try to use it against some 3rd-party SSH
2108 implementations that use it (older PuTTY, WinSCP).
2109 - ssh(1), sshd(8): Cap DH-GEX group size at 4Kbits for Cisco
2110 implementations as some would fail when attempting to use group sizes
2111 >4K (closes: #740307, LP: #1287222).
2112 - ssh(1): Fix out-of-bound read in EscapeChar configuration option
2113 parsing.
2114 - sshd(8): Fix application of PermitTunnel, LoginGraceTime,
2115 AuthenticationMethods and StreamLocalBindMask options in Match blocks.
2116 - ssh(1), sshd(8): Improve disconnection message on TCP reset.
2117 - ssh(1): Remove failed remote forwards established by multiplexing from
2118 the list of active forwards.
2119 - sshd(8): Make parsing of authorized_keys "environment=" options
2120 independent of PermitUserEnv being enabled.
2121 - sshd(8): Fix post-auth crash with permitopen=none (closes: #778807).
2122 - ssh(1), ssh-add(1), ssh-keygen(1): Allow new-format private keys to be
2123 encrypted with AEAD ciphers.
2124 - ssh(1): Allow ListenAddress, Port and AddressFamily configuration
2125 options to appear in any order.
2126 - sshd(8): Check for and reject missing arguments for VersionAddendum
2127 and ForceCommand.
2128 - ssh(1), sshd(8): Don't treat unknown certificate extensions as fatal.
2129 - ssh-keygen(1): Make stdout and stderr output consistent.
2130 - ssh(1): Mention missing DISPLAY environment in debug log when X11
2131 forwarding requested.
2132 - sshd(8): Correctly record login when UseLogin is set.
2133 - sshd(8): Add some missing options to sshd -T output and fix output of
2134 VersionAddendum and HostCertificate.
2135 - Document and improve consistency of options that accept a "none"
2136 argument: TrustedUserCAKeys, RevokedKeys, AuthorizedPrincipalsFile.
2137 - ssh(1): Include remote username in debug output.
2138 - sshd(8): Avoid compatibility problem with some versions of Tera Term,
2139 which would crash when they received the hostkeys notification message
2140 (hostkeys-00@openssh.com).
2141 - sshd(8): Mention ssh-keygen -E as useful when comparing legacy MD5
2142 host key fingerprints.
2143 - ssh(1): Clarify pseudo-terminal request behaviour and make manual
2144 language consistent.
2145 - ssh(1): Document that the TERM environment variable is not subject to
2146 SendEnv and AcceptEnv; bz#2386
2147 - sshd(8): Format UsePAM setting when using sshd -T (closes: #767648).
2148 - moduli(5): Update DH-GEX moduli (closes: #787037).
2149 * There are some things I want to fix before upgrading to 7.0p1, though I
2150 intend to do that soon. In the meantime, backport some patches, mainly
2151 to fix security issues:
2152 - SECURITY: sshd(8): OpenSSH 6.8 and 6.9 incorrectly set TTYs to be
2153 world-writable. Local attackers may be able to write arbitrary
2154 messages to logged-in users, including terminal escape sequences.
2155 Reported by Nikolay Edigaryev.
2156 - SECURITY: sshd(8): Fixed a privilege separation weakness related to
2157 PAM support. Attackers who could successfully compromise the
2158 pre-authentication process for remote code execution and who had valid
2159 credentials on the host could impersonate other users. Reported by
2160 Moritz Jodeit.
2161 - SECURITY: sshd(8): Fixed a use-after-free bug related to PAM support
2162 that was reachable by attackers who could compromise the
2163 pre-authentication process for remote code execution (closes:
2164 #795711). Also reported by Moritz Jodeit.
2165 - CVE-2015-5600: sshd(8): Fix circumvention of MaxAuthTries using
2166 keyboard-interactive authentication (closes: #793616). By specifying
2167 a long, repeating keyboard-interactive "devices" string, an attacker
2168 could request the same authentication method be tried thousands of
2169 times in a single pass. The LoginGraceTime timeout in sshd(8) and any
2170 authentication failure delays implemented by the authentication
2171 mechanism itself were still applied. Found by Kingcope.
2172 - Let principals-command.sh work for noexec /var/run.
2173 * Thanks to Jakub Jelen of Red Hat for Fedora's rebased version of the
2174 GSSAPI key exchange patch.
2175 * Document the Debian-specific change to the default value of
2176 ForwardX11Trusted in ssh(1) (closes: #781469).
2177
2178 -- Colin Watson <cjwatson@debian.org> Thu, 20 Aug 2015 10:38:58 +0100
2179
2180openssh (1:6.7p1-6) unstable; urgency=medium
2181
2182 [ Martin Pitt ]
2183 * openssh-server.postinst: Quiesce "Unable to connect to Upstart" error
2184 message from initctl if upstart is installed, but not the current init
2185 system. (LP: #1440070)
2186 * openssh-server.postinst: Fix version comparisons of upgrade adjustments
2187 to not apply to fresh installs.
2188
2189 -- Colin Watson <cjwatson@debian.org> Sun, 19 Apr 2015 14:32:43 +0100
2190
2191openssh (1:6.7p1-5) unstable; urgency=medium
2192
2193 * Revert change from previous upload, which causes far more trouble than
2194 it is worth (closes: #780797):
2195 - Send/accept only specific known LC_* variables, rather than using a
2196 wildcard.
2197 * Add a NEWS.Debian entry documenting this reversion, as it is too
2198 difficult to undo the sshd_config change automatically without
2199 compounding the problem of (arguably) overwriting user configuration.
2200
2201 -- Colin Watson <cjwatson@debian.org> Sun, 22 Mar 2015 23:20:56 +0000
2202
2203openssh (1:6.7p1-4) unstable; urgency=medium
2204
2205 * Send/accept only specific known LC_* variables, rather than using a
2206 wildcard (closes: #765633).
2207 * Document interactions between ListenAddress/Port and ssh.socket in
2208 README.Debian (closes: #764842).
2209 * Debconf translations:
2210 - Brazilian Portuguese (thanks, José de Figueiredo; closes: #771859).
2211
2212 -- Colin Watson <cjwatson@debian.org> Wed, 18 Mar 2015 15:34:13 +0000
2213
2214openssh (1:6.7p1-3) unstable; urgency=medium
2215
2216 * Debconf translations:
2217 - Dutch (thanks, Frans Spiesschaert; closes: #765851).
2218 * Assume that dpkg-statoverride exists and drop the test for an obsolete
2219 compatibility path.
2220
2221 -- Colin Watson <cjwatson@debian.org> Mon, 03 Nov 2014 20:29:52 +0000
2222
2223openssh (1:6.7p1-2) unstable; urgency=medium
2224
2225 * debian/tests/control: Drop isolation-container, since the tests run on a
2226 high port. They're still not guaranteed to run correctly in an schroot,
2227 but may manage to work, so this lets the tests at least try to run on
2228 ci.debian.net.
2229
2230 -- Colin Watson <cjwatson@debian.org> Fri, 10 Oct 2014 10:47:19 +0100
2231
2232openssh (1:6.7p1-1) unstable; urgency=medium
2233
2234 * New upstream release (http://www.openssh.com/txt/release-6.7):
2235 - sshd(8): The default set of ciphers and MACs has been altered to
2236 remove unsafe algorithms. In particular, CBC ciphers and arcfour* are
2237 disabled by default. The full set of algorithms remains available if
2238 configured explicitly via the Ciphers and MACs sshd_config options.
2239 - ssh(1), sshd(8): Add support for Unix domain socket forwarding. A
2240 remote TCP port may be forwarded to a local Unix domain socket and
2241 vice versa or both ends may be a Unix domain socket (closes: #236718).
2242 - ssh(1), ssh-keygen(1): Add support for SSHFP DNS records for ED25519
2243 key types.
2244 - sftp(1): Allow resumption of interrupted uploads.
2245 - ssh(1): When rekeying, skip file/DNS lookups of the hostkey if it is
2246 the same as the one sent during initial key exchange.
2247 - sshd(8): Allow explicit ::1 and 127.0.0.1 forwarding bind addresses
2248 when GatewayPorts=no; allows client to choose address family.
2249 - sshd(8): Add a sshd_config PermitUserRC option to control whether
2250 ~/.ssh/rc is executed, mirroring the no-user-rc authorized_keys
2251 option.
2252 - ssh(1): Add a %C escape sequence for LocalCommand and ControlPath that
2253 expands to a unique identifier based on a hash of the tuple of (local
2254 host, remote user, hostname, port). Helps avoid exceeding miserly
2255 pathname limits for Unix domain sockets in multiplexing control paths.
2256 - sshd(8): Make the "Too many authentication failures" message include
2257 the user, source address, port and protocol in a format similar to the
2258 authentication success / failure messages.
2259 - Use CLOCK_BOOTTIME in preference to CLOCK_MONOTONIC when it is
2260 available. It considers time spent suspended, thereby ensuring
2261 timeouts (e.g. for expiring agent keys) fire correctly (closes:
2262 #734553).
2263 - Use prctl() to prevent sftp-server from accessing
2264 /proc/self/{mem,maps}.
2265 * Restore TCP wrappers support, removed upstream in 6.7. It is true that
2266 dropping this reduces preauth attack surface in sshd. On the other
2267 hand, this support seems to be quite widely used, and abruptly dropping
2268 it (from the perspective of users who don't read openssh-unix-dev) could
2269 easily cause more serious problems in practice. It's not entirely clear
2270 what the right long-term answer for Debian is, but it at least probably
2271 doesn't involve dropping this feature shortly before a freeze.
2272 * Replace patch to disable OpenSSL version check with an updated version
2273 of Kurt Roeckx's patch from #732940 to just avoid checking the status
2274 field.
2275 * Build-depend on a new enough dpkg-dev for dpkg-buildflags, rather than
2276 simply a new enough dpkg.
2277 * Simplify debian/rules using /usr/share/dpkg/buildflags.mk.
2278 * Use Package-Type rather than XC-Package-Type, now that it is an official
2279 field.
2280 * Run a subset of the upstream regression test suite at package build
2281 time, and the rest of it under autopkgtest.
2282
2283 -- Colin Watson <cjwatson@debian.org> Thu, 09 Oct 2014 14:05:56 +0100
2284
2285openssh (1:6.6p1-8) unstable; urgency=medium
2286
2287 * Make the if-up hook use "reload" rather than "restart" if the system was
2288 booted using systemd (closes: #756547).
2289 * Show fingerprints of new keys after creating them in the postinst
2290 (closes: #762128).
2291 * Policy version 3.9.6: no changes required.
2292 * Don't link /usr/share/doc/ssh to openssh-client, as this is not safe
2293 between Architecture: all and Architecture: any binary packages (closes:
2294 #763375).
2295
2296 -- Colin Watson <cjwatson@debian.org> Fri, 03 Oct 2014 12:23:57 +0100
2297
2298openssh (1:6.6p1-7) unstable; urgency=medium
2299
2300 * Make sure that DEB_HOST_ARCH is set, even when invoking debian/rules
2301 directly.
2302 * Use dh-exec to simplify override_dh_install target.
2303 * Remove several unnecessary entries in debian/*.dirs.
2304 * Pass noupdate to the second call to pam_motd, not the first (thanks, Ken
2305 T Takusagawa; closes: #757059).
2306 * Debconf translations:
2307 - Turkish (thanks, Mert Dirik; closes: #756757).
2308
2309 -- Colin Watson <cjwatson@debian.org> Tue, 05 Aug 2014 09:10:04 +0100
2310
2311openssh (1:6.6p1-6) unstable; urgency=medium
2312
2313 * Upgrade to debhelper v9.
2314 * Only use pam_keyinit on Linux architectures (closes: #747245).
2315 * Make get_config_option more robust against trailing whitespace (thanks,
2316 LaMont Jones).
2317 * Debconf translations:
2318 - Czech (thanks, Michal Šimůnek; closes: #751419).
2319
2320 -- Colin Watson <cjwatson@debian.org> Sat, 28 Jun 2014 14:50:04 +0100
2321
2322openssh (1:6.6p1-5) unstable; urgency=medium
2323
2324 * Force ssh-agent Upstart job to use sh syntax regardless of the user's
2325 shell (thanks, Steffen Stempel; LP: #1312928).
2326
2327 -- Colin Watson <cjwatson@debian.org> Thu, 01 May 2014 16:27:53 +0100
2328
2329openssh (1:6.6p1-4) unstable; urgency=medium
2330
2331 * Debconf translations:
2332 - Spanish (thanks, Matías Bellone; closes: #744867).
2333 * Apply upstream-recommended patch to fix bignum encoding for
2334 curve25519-sha256@libssh.org, fixing occasional key exchange failures.
2335
2336 -- Colin Watson <cjwatson@debian.org> Mon, 21 Apr 2014 21:29:53 +0100
2337
2338openssh (1:6.6p1-3) unstable; urgency=medium
2339
2340 * Debconf translations:
2341 - French (thanks, Étienne Gilli; closes: #743242).
2342 * Never signal the service supervisor with SIGSTOP more than once, to
2343 prevent a hang on re-exec (thanks, Robie Basak; LP: #1306877).
2344
2345 -- Colin Watson <cjwatson@debian.org> Mon, 14 Apr 2014 12:11:50 +0100
2346
2347openssh (1:6.6p1-2) unstable; urgency=medium
2348
2349 * If no root password is set, then switch to "PermitRootLogin
2350 without-password" without asking (LP: #1300127).
2351
2352 -- Colin Watson <cjwatson@debian.org> Mon, 31 Mar 2014 12:20:46 +0100
2353
2354openssh (1:6.6p1-1) unstable; urgency=medium
2355
2356 [ Colin Watson ]
2357 * Apply various warning-suppression and regression-test fixes to
2358 gssapi.patch from Damien Miller.
2359 * New upstream release (http://www.openssh.com/txt/release-6.6,
2360 LP: #1298280):
2361 - CVE-2014-2532: sshd(8): when using environment passing with an
2362 sshd_config(5) AcceptEnv pattern with a wildcard, OpenSSH prior to 6.6
2363 could be tricked into accepting any environment variable that contains
2364 the characters before the wildcard character.
2365 * Re-enable btmp logging, as its permissions were fixed a long time ago in
2366 response to #370050 (closes: #341883).
2367 * Change to "PermitRootLogin without-password" for new installations, and
2368 ask a debconf question when upgrading systems with "PermitRootLogin yes"
2369 from previous versions (closes: #298138).
2370 * Debconf translations:
2371 - Danish (thanks, Joe Hansen).
2372 - Portuguese (thanks, Américo Monteiro).
2373 - Russian (thanks, Yuri Kozlov; closes: #742308).
2374 - Swedish (thanks, Andreas Rönnquist).
2375 - Japanese (thanks, victory).
2376 - German (thanks, Stephan Beck; closes: #742541).
2377 - Italian (thanks, Beatrice Torracca).
2378 * Don't start ssh-agent from the Upstart user session job if something
2379 like Xsession has already done so (based on work by Bruno Vasselle;
2380 LP: #1244736).
2381
2382 [ Matthew Vernon ]
2383 * CVE-2014-2653: Fix failure to check SSHFP records if server presents a
2384 certificate (bug reported by me, patch by upstream's Damien Miller;
2385 thanks also to Mark Wooding for his help in fixing this) (Closes:
2386 #742513)
2387
2388 -- Colin Watson <cjwatson@debian.org> Fri, 28 Mar 2014 18:04:41 +0000
2389
2390openssh (1:6.5p1-6) unstable; urgency=medium
2391
2392 * Fix Breaks/Replaces versions of openssh-sftp-server on openssh-server
2393 (thanks, Axel Beckert).
2394
2395 -- Colin Watson <cjwatson@debian.org> Thu, 06 Mar 2014 16:18:44 +0000
2396
2397openssh (1:6.5p1-5) unstable; urgency=medium
2398
2399 [ Colin Watson ]
2400 * Add Alias=sshd.service to systemd ssh.service file, to match "Provides:
2401 sshd" in the sysvinit script (thanks, Michael Biebl).
2402 * Add Before=ssh.service to systemd ssh.socket file, since otherwise
2403 nothing guarantees that ssh.service has stopped before ssh.socket starts
2404 (thanks, Uoti Urpala).
2405
2406 [ Axel Beckert ]
2407 * Split sftp-server into its own package to allow it to also be used by
2408 other SSH server implementations like dropbear (closes: #504290).
2409
2410 -- Colin Watson <cjwatson@debian.org> Wed, 05 Mar 2014 13:53:08 +0000
2411
2412openssh (1:6.5p1-4) unstable; urgency=medium
2413
2414 * Configure --without-hardening on hppa, to work around
2415 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60155 (closes: #738798).
2416 * Amend "Running sshd from inittab" instructions in README.Debian to
2417 recommend 'update-rc.d ssh disable', rather than manual removal of rc*.d
2418 symlinks that won't work with dependency-based sysv-rc.
2419 * Remove code related to non-dependency-based sysv-rc ordering, since that
2420 is no longer supported.
2421 * Apply patch from https://bugzilla.mindrot.org/show_bug.cgi?id=2200 to
2422 fix getsockname errors when using "ssh -W" (closes: #738693).
2423
2424 -- Colin Watson <cjwatson@debian.org> Sat, 15 Feb 2014 02:19:36 +0000
2425
2426openssh (1:6.5p1-3) unstable; urgency=medium
2427
2428 * Clarify socket activation mode in README.Debian, as suggested by Uoti
2429 Urpala.
2430 * Stop claiming that "Protocol 2" is a Debian-specific default; this has
2431 been upstream's default since 5.4p1.
2432 * Avoid stdout noise from which(1) on purge of openssh-client.
2433 * Fix sysvinit->systemd transition code to cope with still-running
2434 sysvinit jobs being considered active by systemd (thanks, Uoti Urpala
2435 and Michael Biebl).
2436 * Bump guard version for sysvinit->systemd transition to 1:6.5p1-3; we may
2437 have got it wrong before, and it's fairly harmless to repeat it.
2438 * Remove tests for whether /dev/null is a character device from the
2439 Upstart job and the systemd service files; it's there to avoid a
2440 confusing failure mode in daemon(), but with modern init systems we use
2441 the -D option to suppress daemonisation anyway.
2442 * Refer to /usr/share/common-licenses/GPL-2 in debian/copyright (for the
2443 Debian patch) rather than plain GPL.
2444 * Drop some very old Conflicts and Replaces (ssh (<< 1:3.8.1p1-9),
2445 rsh-client (<< 0.16.1-1), ssh-krb5 (<< 1:4.3p2-7), ssh-nonfree (<< 2),
2446 and openssh-client (<< 1:3.8.1p1-11)). These all relate to pre-etch
2447 versions, for which we no longer have maintainer script code, and per
2448 policy they would have to become Breaks nowadays anyway.
2449 * Policy version 3.9.5.
2450 * Drop unnecessary -1 in zlib1g Build-Depends version.
2451 * Tweak dh_systemd_enable invocations to avoid lots of error noise.
2452
2453 -- Colin Watson <cjwatson@debian.org> Wed, 12 Feb 2014 13:10:08 +0000
2454
2455openssh (1:6.5p1-2) unstable; urgency=medium
2456
2457 * Only enable ssh.service for systemd, not both ssh.service and
2458 ssh.socket. Thanks to Michael Biebl for spotting this.
2459 * Backport upstream patch to unbreak case-sensitive matching of ssh_config
2460 (closes: #738619).
2461
2462 -- Colin Watson <cjwatson@debian.org> Tue, 11 Feb 2014 11:28:35 +0000
2463
2464openssh (1:6.5p1-1) unstable; urgency=medium
2465
2466 * New upstream release (http://www.openssh.com/txt/release-6.5,
2467 LP: #1275068):
2468 - ssh(1): Add support for client-side hostname canonicalisation using a
2469 set of DNS suffixes and rules in ssh_config(5). This allows
2470 unqualified names to be canonicalised to fully-qualified domain names
2471 to eliminate ambiguity when looking up keys in known_hosts or checking
2472 host certificate names (closes: #115286).
2473 * Switch to git; adjust Vcs-* fields.
2474 * Convert to git-dpm, and drop source package documentation associated
2475 with the old bzr/quilt patch handling workflow.
2476 * Drop ssh-vulnkey and the associated ssh/ssh-add/sshd integration code,
2477 leaving only basic configuration file compatibility, since it has been
2478 nearly six years since the original vulnerability and this code is not
2479 likely to be of much value any more (closes: #481853, #570651). See
2480 https://lists.debian.org/debian-devel/2013/09/msg00240.html for my full
2481 reasoning.
2482 * Add OpenPGP signature checking configuration to watch file (thanks,
2483 Daniel Kahn Gillmor; closes: #732441).
2484 * Add the pam_keyinit session module, to create a new session keyring on
2485 login (closes: #734816).
2486 * Incorporate default path changes from shadow 1:4.0.18.1-8, removing
2487 /usr/bin/X11 (closes: #644521).
2488 * Generate ED25519 host keys on fresh installations. Upgraders who wish
2489 to add such host keys should manually add 'HostKey
2490 /etc/ssh/ssh_host_ed25519_key' to /etc/ssh/sshd_config and run
2491 'ssh-keygen -q -f /etc/ssh/ssh_host_ed25519_key -N "" -t ed25519'.
2492 * Drop long-obsolete "SSH now uses protocol 2 by default" section from
2493 README.Debian.
2494 * Add systemd support (thanks, Sven Joachim; closes: #676830).
2495
2496 -- Colin Watson <cjwatson@debian.org> Mon, 10 Feb 2014 14:58:26 +0000
2497
2498openssh (1:6.4p1-2) unstable; urgency=high
2499
2500 * Increase ServerKeyBits value in package-generated sshd_config to 1024
2501 (closes: #727622, LP: #1244272).
2502 * Restore patch to disable OpenSSL version check (closes: #732940).
2503
2504 -- Colin Watson <cjwatson@debian.org> Mon, 23 Dec 2013 10:44:04 +0000
2505
2506openssh (1:6.4p1-1) unstable; urgency=high
2507
2508 * New upstream release. Important changes:
2509 - 6.3/6.3p1 (http://www.openssh.com/txt/release-6.3):
2510 + sftp(1): add support for resuming partial downloads using the
2511 "reget" command and on the sftp commandline or on the "get"
2512 commandline using the "-a" (append) option (closes: #158590).
2513 + ssh(1): add an "IgnoreUnknown" configuration option to selectively
2514 suppress errors arising from unknown configuration directives
2515 (closes: #436052).
2516 + sftp(1): update progressmeter when data is acknowledged, not when
2517 it's sent (partially addresses #708372).
2518 + ssh(1): do not fatally exit when attempting to cleanup multiplexing-
2519 created channels that are incompletely opened (closes: #651357).
2520 - 6.4/6.4p1 (http://www.openssh.com/txt/release-6.4):
2521 + CVE-2013-4548: sshd(8): fix a memory corruption problem triggered
2522 during rekeying when an AES-GCM cipher is selected (closes:
2523 #729029). Full details of the vulnerability are available at:
2524 http://www.openssh.com/txt/gcmrekey.adv
2525 * When running under Upstart, only consider the daemon started once it is
2526 ready to accept connections (by raising SIGSTOP at that point and using
2527 "expect stop").
2528
2529 -- Colin Watson <cjwatson@debian.org> Sat, 09 Nov 2013 18:24:16 +0000
2530
2531openssh (1:6.2p2-6) unstable; urgency=low
2532
2533 * Update config.guess and config.sub automatically at build time.
2534 dh_autoreconf does not take care of that by default because openssh does
2535 not use automake.
2536
2537 -- Colin Watson <cjwatson@debian.org> Tue, 02 Jul 2013 22:54:49 +0100
2538
2539openssh (1:6.2p2-5) unstable; urgency=low
2540
2541 [ Colin Watson ]
2542 * Document consequences of ssh-agent being setgid in ssh-agent(1); see
2543 #711623.
2544 * Use 'set -e' rather than '#! /bin/sh -e' in maintainer scripts and
2545 ssh-argv0.
2546
2547 [ Yolanda Robla ]
2548 * debian/rules: Include real distribution in SSH_EXTRAVERSION instead of
2549 hardcoding Debian (LP: #1195342).
2550
2551 -- Colin Watson <cjwatson@debian.org> Thu, 27 Jun 2013 15:24:14 +0100
2552
2553openssh (1:6.2p2-4) unstable; urgency=low
2554
2555 * Fix non-portable shell in ssh-copy-id (closes: #711162).
2556 * Rebuild against debhelper 9.20130604 with fixed dependencies for
2557 invoke-rc.d and Upstart jobs (closes: #711159, #711364).
2558 * Set SELinux context on private host keys as well as public host keys
2559 (closes: #687436).
2560
2561 -- Colin Watson <cjwatson@debian.org> Thu, 06 Jun 2013 17:06:31 +0100
2562
2563openssh (1:6.2p2-3) unstable; urgency=low
2564
2565 * If the running init daemon is Upstart, then, on the first upgrade to
2566 this version, check whether sysvinit is still managing sshd; if so,
2567 manually stop it so that it can be restarted under upstart. We do this
2568 near the end of the postinst, so it shouldn't result in any appreciable
2569 extra window where sshd is not running during upgrade.
2570
2571 -- Colin Watson <cjwatson@debian.org> Wed, 22 May 2013 17:42:10 +0100
2572
2573openssh (1:6.2p2-2) unstable; urgency=low
2574
2575 * Change start condition of Upstart job to be just the standard "runlevel
2576 [2345]", rather than "filesystem or runlevel [2345]"; the latter makes
2577 it unreasonably difficult to ensure that urandom starts before ssh, and
2578 is not really necessary since one of static-network-up and failsafe-boot
2579 is guaranteed to happen and will trigger entry to the default runlevel,
2580 and we don't care about ssh starting before the network (LP: #1098299).
2581 * Drop conffile handling for direct upgrades from pre-split ssh package;
2582 this was originally added in 1:4.3p2-7 / 1:4.3p2-8, and contained a
2583 truly ghastly hack around a misbehaviour in sarge's dpkg. Since this is
2584 now four Debian releases ago, we can afford to drop this and simplify
2585 the packaging.
2586 * Remove ssh/use_old_init_script, which was a workaround for a very old
2587 bug in /etc/init.d/ssh. If anyone has ignored this for >10 years then
2588 they aren't going to be convinced now (closes: #214182).
2589 * Remove support for upgrading directly from ssh-nonfree.
2590 * Remove lots of maintainer script support for direct upgrades from
2591 pre-etch (three releases before current stable).
2592 * Add #DEBHELPER# tokens to openssh-client.postinst and
2593 openssh-server.postinst.
2594 * Replace old manual conffile handling code with dpkg-maintscript-helper,
2595 via dh_installdeb.
2596 * Switch to new unified layout for Upstart jobs as documented in
2597 https://wiki.ubuntu.com/UpstartCompatibleInitScripts: the init script
2598 checks for a running Upstart, and we now let dh_installinit handle most
2599 of the heavy lifting in maintainer scripts. Ubuntu users should be
2600 essentially unaffected except that sshd may no longer start
2601 automatically in chroots if the running Upstart predates 0.9.0; but the
2602 main goal is simply not to break when openssh-server is installed in a
2603 chroot.
2604 * Remove the check for vulnerable host keys; this was first added five
2605 years ago, and everyone should have upgraded through a version that
2606 applied these checks by now. The ssh-vulnkey tool and the blacklisting
2607 support in sshd are still here, at least for the moment.
2608 * This removes the last of our uses of debconf (closes: #221531).
2609 * Use the pam_loginuid session module (thanks, Laurent Bigonville; closes:
2610 #677440, LP: #1067779).
2611 * Bracket our session stack with calls to pam_selinux close/open (thanks,
2612 Laurent Bigonville; closes: #679458).
2613 * Fix dh_builddeb invocation so that we really use xz compression for
2614 binary packages, as intended since 1:6.1p1-2.
2615
2616 -- Colin Watson <cjwatson@debian.org> Wed, 22 May 2013 09:07:42 +0100
2617
2618openssh (1:6.2p2-1) unstable; urgency=low
2619
2620 * New upstream release (http://www.openssh.com/txt/release-6.2p2):
2621 - Only warn for missing identity files that were explicitly specified
2622 (closes: #708275).
2623 - Fix bug in contributed contrib/ssh-copy-id script that could result in
2624 "rm *" being called on mktemp failure (closes: #708419).
2625
2626 -- Colin Watson <cjwatson@debian.org> Thu, 16 May 2013 14:05:06 +0100
2627
2628openssh (1:6.2p1-3) unstable; urgency=low
2629
2630 * Renumber Debian-specific additions to enum monitor_reqtype so that they
2631 fit within a single byte (thanks, Jason Conti; LP: #1179202).
2632
2633 -- Colin Watson <cjwatson@debian.org> Mon, 13 May 2013 10:56:04 +0100
2634
2635openssh (1:6.2p1-2) unstable; urgency=low
2636
2637 * Fix build failure on Ubuntu:
2638 - Include openbsd-compat/sys-queue.h from consolekit.c.
2639 - Fix consolekit mismerges in monitor.c and monitor_wrap.c.
2640
2641 -- Colin Watson <cjwatson@debian.org> Thu, 09 May 2013 09:45:57 +0100
2642
2643openssh (1:6.2p1-1) unstable; urgency=low
2644
2645 * New upstream release (http://www.openssh.com/txt/release-6.2).
2646 - Add support for multiple required authentication in SSH protocol 2 via
2647 an AuthenticationMethods option (closes: #195716).
2648 - Fix Sophie Germain formula in moduli(5) (closes: #698612).
2649 - Update ssh-copy-id to Phil Hands' greatly revised version (closes:
2650 #99785, #322228, #620428; LP: #518883, #835901, #1074798).
2651 * Use dh-autoreconf.
2652
2653 -- Colin Watson <cjwatson@debian.org> Tue, 07 May 2013 11:48:16 +0100
2654
2655openssh (1:6.1p1-4) experimental; urgency=low
2656
2657 [ Gunnar Hjalmarsson ]
2658 * debian/openssh-server.sshd.pam: Explicitly state that ~/.pam_environment
2659 should be read, and move the pam_env calls from "auth" to "session" so
2660 that it's also read when $HOME is encrypted (LP: #952185).
2661
2662 [ Stéphane Graber ]
2663 * Add ssh-agent upstart user job. This implements something similar to
2664 the 90x11-common_ssh-agent Xsession script. That is, start ssh-agent
2665 and set the appropriate environment variables (closes: #703906).
2666
2667 -- Colin Watson <cjwatson@debian.org> Mon, 25 Mar 2013 16:58:04 +0000
2668
2669openssh (1:6.1p1-3) experimental; urgency=low
2670
2671 * Give ssh and ssh-krb5 versioned dependencies on openssh-client and
2672 openssh-server, to try to reduce confusion when people run 'apt-get
2673 install ssh' or similar and expect that to upgrade everything relevant.
2674 * CVE-2010-5107: Improve DoS resistance by changing default of MaxStartups
2675 to 10:30:100 (closes: #700102).
2676
2677 -- Colin Watson <cjwatson@debian.org> Fri, 08 Feb 2013 21:07:31 +0000
2678
2679openssh (1:6.1p1-2) experimental; urgency=low
2680
2681 * Use xz compression for binary packages.
2682 * Merge from Ubuntu:
2683 - Add support for registering ConsoleKit sessions on login. (This is
2684 currently enabled only when building for Ubuntu.)
2685 - Drop openssh-blacklist and openssh-blacklist-extra to Suggests. It's
2686 been long enough since the relevant vulnerability that we shouldn't
2687 need these installed by default nowadays.
2688 - Add an Upstart job (not currently used by default in Debian).
2689 - Add mention of ssh-keygen in ssh connect warning (Scott Moser).
2690 - Install apport hooks.
2691 * Only build with -j if DEB_BUILD_OPTIONS=parallel=* is used (closes:
2692 #694282).
2693
2694 -- Colin Watson <cjwatson@debian.org> Mon, 26 Nov 2012 16:39:07 +0000
2695
2696openssh (1:6.1p1-1) experimental; urgency=low
2697
2698 * New upstream release (http://www.openssh.com/txt/release-6.1).
2699 - Enable pre-auth sandboxing by default for new installs.
2700 - Allow "PermitOpen none" to refuse all port-forwarding requests
2701 (closes: #543683).
2702
2703 -- Colin Watson <cjwatson@debian.org> Fri, 07 Sep 2012 00:22:44 +0100
2704
2705openssh (1:6.0p1-3) unstable; urgency=low
2706
2707 * debconf template translations:
2708 - Add Indonesian (thanks, Andika Triwidada; closes: #681670).
2709 * Call restorecon on copied ~/.ssh/authorized_keys if possible, since some
2710 SELinux policies require this (closes: #658675).
2711 * Add ncurses-term to openssh-server's Recommends, since it's often needed
2712 to support unusual terminal emulators on clients (closes: #675362).
2713
2714 -- Colin Watson <cjwatson@debian.org> Fri, 24 Aug 2012 06:55:36 +0100
2715
2716openssh (1:6.0p1-2) unstable; urgency=low
2717
2718 * Tighten libssl1.0.0 and libcrypto1.0.0-udeb dependencies to the current
2719 "fix" version at build time (closes: #678661).
2720
2721 -- Colin Watson <cjwatson@debian.org> Sun, 24 Jun 2012 12:16:06 +0100
2722
2723openssh (1:6.0p1-1) unstable; urgency=low
2724
2725 [ Roger Leigh ]
2726 * Display dynamic part of MOTD from /run/motd.dynamic, if it exists
2727 (closes: #669699).
2728
2729 [ Colin Watson ]
2730 * Update OpenSSH FAQ to revision 1.113, fixing missing line break (closes:
2731 #669667).
2732 * New upstream release (closes: #671010,
2733 http://www.openssh.com/txt/release-6.0).
2734 - Fix IPQoS not being set on non-mapped v4-in-v6 addressed connections
2735 (closes: #643312, #650512, #671075).
2736 - Add a new privilege separation sandbox implementation for Linux's new
2737 seccomp sandbox, automatically enabled on platforms that support it.
2738 (Note: privilege separation sandboxing is still experimental.)
2739 * Fix a bashism in configure's seccomp_filter check.
2740 * Add a sandbox fallback mechanism, so that behaviour on Linux depends on
2741 whether the running system's kernel has seccomp_filter support, not the
2742 build system's kernel (forwarded upstream as
2743 https://bugzilla.mindrot.org/show_bug.cgi?id=2011).
2744
2745 -- Colin Watson <cjwatson@debian.org> Sat, 26 May 2012 13:48:14 +0100
2746
2747openssh (1:5.9p1-5) unstable; urgency=low
2748
2749 * Use dpkg-buildflags, including for hardening support; drop use of
2750 hardening-includes.
2751 * Fix cross-building:
2752 - Allow using a cross-architecture pkg-config.
2753 - Pass default LDFLAGS to contrib/Makefile.
2754 - Allow dh_strip to strip gnome-ssh-askpass, rather than calling
2755 'install -s'.
2756
2757 -- Colin Watson <cjwatson@debian.org> Mon, 02 Apr 2012 11:20:33 +0100
2758
2759openssh (1:5.9p1-4) unstable; urgency=low
2760
2761 * Disable OpenSSL version check again, as its SONAME is sufficient
2762 nowadays (closes: #664383).
2763
2764 -- Colin Watson <cjwatson@debian.org> Mon, 19 Mar 2012 11:06:30 +0000
2765
2766openssh (1:5.9p1-3) unstable; urgency=low
2767
2768 * debconf template translations:
2769 - Update Polish (thanks, Michał Kułach; closes: #659829).
2770 * Ignore errors writing to console in init script (closes: #546743).
2771 * Move ssh-krb5 to Section: oldlibs.
2772
2773 -- Colin Watson <cjwatson@debian.org> Fri, 24 Feb 2012 08:56:18 +0000
2774
2775openssh (1:5.9p1-2) unstable; urgency=low
2776
2777 * Mark openssh-client and openssh-server as Multi-Arch: foreign.
2778
2779 -- Colin Watson <cjwatson@debian.org> Wed, 09 Nov 2011 02:06:48 +0000
2780
2781openssh (1:5.9p1-1) unstable; urgency=low
2782
2783 * New upstream release (http://www.openssh.com/txt/release-5.9).
2784 - Introduce sandboxing of the pre-auth privsep child using an optional
2785 sshd_config(5) "UsePrivilegeSeparation=sandbox" mode that enables
2786 mandatory restrictions on the syscalls the privsep child can perform.
2787 - Add new SHA256-based HMAC transport integrity modes from
2788 http://www.ietf.org/id/draft-dbider-sha2-mac-for-ssh-02.txt.
2789 - The pre-authentication sshd(8) privilege separation slave process now
2790 logs via a socket shared with the master process, avoiding the need to
2791 maintain /dev/log inside the chroot (closes: #75043, #429243,
2792 #599240).
2793 - ssh(1) now warns when a server refuses X11 forwarding (closes:
2794 #504757).
2795 - sshd_config(5)'s AuthorizedKeysFile now accepts multiple paths,
2796 separated by whitespace (closes: #76312). The authorized_keys2
2797 fallback is deprecated but documented (closes: #560156).
2798 - ssh(1) and sshd(8): set IPv6 traffic class from IPQoS, as well as IPv4
2799 ToS/DSCP (closes: #498297).
2800 - ssh-add(1) now accepts keys piped from standard input. E.g. "ssh-add
2801 - < /path/to/key" (closes: #229124).
2802 - Clean up lost-passphrase text in ssh-keygen(1) (closes: #444691).
2803 - Say "required" rather than "recommended" in unprotected-private-key
2804 warning (LP: #663455).
2805 * Update OpenSSH FAQ to revision 1.112.
2806
2807 -- Colin Watson <cjwatson@debian.org> Wed, 07 Sep 2011 23:46:00 +0100
2808
2809openssh (1:5.8p1-7) unstable; urgency=low
2810
2811 * Only recommend ssh-import-id when built on Ubuntu (closes: #635887).
2812 * Use 'dpkg-vendor --derives-from Ubuntu' to detect Ubuntu systems rather
2813 than 'lsb_release -is' so that Ubuntu derivatives behave the same way as
2814 Ubuntu itself.
2815
2816 -- Colin Watson <cjwatson@debian.org> Fri, 29 Jul 2011 14:27:52 +0100
2817
2818openssh (1:5.8p1-6) unstable; urgency=low
2819
2820 * openssh-client and openssh-server Suggests: monkeysphere.
2821 * Quieten logs when multiple from= restrictions are used in different
2822 authorized_keys lines for the same key; it's still not ideal, but at
2823 least you'll only get one log entry per key (closes: #630606).
2824 * Merge from Ubuntu (Dustin Kirkland):
2825 - openssh-server Recommends: ssh-import-id (no-op in Debian since that
2826 package doesn't exist there, but this reduces the Ubuntu delta).
2827
2828 -- Colin Watson <cjwatson@debian.org> Thu, 28 Jul 2011 17:10:18 +0100
2829
2830openssh (1:5.8p1-5) unstable; urgency=low
2831
2832 * Drop openssh-server's dependency on openssh-blacklist to a
2833 recommendation (closes: #622604).
2834 * Update Vcs-* fields and README.source for Alioth changes.
2835 * Backport from upstream:
2836 - Make hostbased auth with ECDSA keys work correctly (closes: #633368).
2837
2838 -- Colin Watson <cjwatson@debian.org> Sun, 24 Jul 2011 11:06:47 +0100
2839
2840openssh (1:5.8p1-4) unstable; urgency=low
2841
2842 * Drop hardcoded dependencies on libssl0.9.8 and libcrypto0.9.8-udeb,
2843 since the required minimum versions are rather old now anyway and
2844 openssl has bumped its SONAME (thanks, Julien Cristau; closes: #620828).
2845 * Remove unreachable code from openssh-server.postinst.
2846
2847 -- Colin Watson <cjwatson@debian.org> Mon, 04 Apr 2011 15:56:18 +0100
2848
2849openssh (1:5.8p1-3) unstable; urgency=low
2850
2851 * Correct ssh-keygen instruction in the changelog for 1:5.7p1-1 (thanks,
2852 Joel Stanley).
2853 * Allow ssh-add to read from FIFOs (thanks, Daniel Kahn Gillmor; closes:
2854 #614897).
2855
2856 -- Colin Watson <cjwatson@debian.org> Fri, 18 Mar 2011 16:42:42 +0000
2857
2858openssh (1:5.8p1-2) unstable; urgency=low
2859
2860 * Upload to unstable.
2861
2862 -- Colin Watson <cjwatson@debian.org> Tue, 08 Feb 2011 10:59:17 +0000
2863
2864openssh (1:5.8p1-1) experimental; urgency=low
2865
2866 * New upstream release (http://www.openssh.com/txt/release-5.8):
2867 - Fix stack information leak in legacy certificate signing
2868 (http://www.openssh.com/txt/legacy-cert.adv).
2869
2870 -- Colin Watson <cjwatson@debian.org> Sat, 05 Feb 2011 11:13:11 +0000
2871
2872openssh (1:5.7p1-2) experimental; urgency=low
2873
2874 * Fix crash in ssh_selinux_setfscreatecon when SELinux is disabled
2875 (LP: #708571).
2876
2877 -- Colin Watson <cjwatson@debian.org> Thu, 27 Jan 2011 12:14:17 +0000
2878
2879openssh (1:5.7p1-1) experimental; urgency=low
2880
2881 * New upstream release (http://www.openssh.com/txt/release-5.7):
2882 - Implement Elliptic Curve Cryptography modes for key exchange (ECDH)
2883 and host/user keys (ECDSA) as specified by RFC5656. ECDH and ECDSA
2884 offer better performance than plain DH and DSA at the same equivalent
2885 symmetric key length, as well as much shorter keys.
2886 - sftp(1)/sftp-server(8): add a protocol extension to support a hard
2887 link operation. It is available through the "ln" command in the
2888 client. The old "ln" behaviour of creating a symlink is available
2889 using its "-s" option or through the preexisting "symlink" command.
2890 - scp(1): Add a new -3 option to scp: Copies between two remote hosts
2891 are transferred through the local host (closes: #508613).
2892 - ssh(1): "atomically" create the listening mux socket by binding it on
2893 a temporary name and then linking it into position after listen() has
2894 succeeded. This allows the mux clients to determine that the server
2895 socket is either ready or stale without races (closes: #454784).
2896 Stale server sockets are now automatically removed (closes: #523250).
2897 - ssh(1): install a SIGCHLD handler to reap expired child process
2898 (closes: #594687).
2899 - ssh(1)/ssh-agent(1): honour $TMPDIR for client xauth and ssh-agent
2900 temporary directories (closes: #357469, although only if you arrange
2901 for ssh-agent to actually see $TMPDIR since the setgid bit will cause
2902 it to be stripped off).
2903 * Update to current GSSAPI patch from
2904 http://www.sxw.org.uk/computing/patches/openssh-5.7p1-gsskex-all-20110125.patch:
2905 - Add GSSAPIServerIdentity option.
2906 * Generate ECDSA host keys on fresh installations. Upgraders who wish to
2907 add such host keys should manually add 'HostKey
2908 /etc/ssh/ssh_host_ecdsa_key' to /etc/ssh/sshd_config and run 'ssh-keygen
2909 -q -f /etc/ssh/ssh_host_ecdsa_key -N "" -t ecdsa'.
2910 * Build-depend on libssl-dev (>= 0.9.8g) to ensure sufficient ECC support.
2911 * Backport SELinux build fix from CVS.
2912 * Rearrange selinux-role.patch so that it links properly given this
2913 SELinux build fix.
2914
2915 -- Colin Watson <cjwatson@debian.org> Wed, 26 Jan 2011 23:48:02 +0000
2916
2917openssh (1:5.6p1-3) experimental; urgency=low
2918
2919 * Drop override for desktop-file-but-no-dh_desktop-call, which Lintian no
2920 longer issues.
2921 * Merge 1:5.5p1-6.
2922
2923 -- Colin Watson <cjwatson@debian.org> Thu, 30 Dec 2010 11:48:00 +0000
2924
2925openssh (1:5.6p1-2) experimental; urgency=low
2926
2927 * Backport upstream patch to install a SIGCHLD handler to reap expired ssh
2928 child processes, preventing lots of zombies when using ControlPersist
2929 (closes: #594687).
2930
2931 -- Colin Watson <cjwatson@debian.org> Tue, 26 Oct 2010 14:46:40 +0100
2932
2933openssh (1:5.6p1-1) experimental; urgency=low
2934
2935 * New upstream release (http://www.openssh.com/txt/release-5.6):
2936 - Added a ControlPersist option to ssh_config(5) that automatically
2937 starts a background ssh(1) multiplex master when connecting. This
2938 connection can stay alive indefinitely, or can be set to automatically
2939 close after a user-specified duration of inactivity (closes: #335697,
2940 #350898, #454787, #500573, #550262).
2941 - Support AuthorizedKeysFile, AuthorizedPrincipalsFile,
2942 HostbasedUsesNameFromPacketOnly, and PermitTunnel in sshd_config(5)
2943 Match blocks (closes: #549858).
2944 - sftp(1): fix ls in working directories that contain globbing
2945 characters in their pathnames (LP: #530714).
2946
2947 -- Colin Watson <cjwatson@debian.org> Tue, 24 Aug 2010 00:37:54 +0100
2948
2949openssh (1:5.5p1-6) unstable; urgency=low
2950
2951 * Touch /var/run/sshd/.placeholder in the preinst so that /var/run/sshd,
2952 which is intentionally no longer shipped in the openssh-server package
2953 due to /var/run often being a temporary directory, is not removed on
2954 upgrade (closes: #575582).
2955
2956 -- Colin Watson <cjwatson@debian.org> Sun, 26 Dec 2010 18:09:29 +0000
2957
2958openssh (1:5.5p1-5) unstable; urgency=low
2959
2960 * Use an architecture wildcard for libselinux1-dev (closes: #591740).
2961 * debconf template translations:
2962 - Update Danish (thanks, Joe Hansen; closes: #592800).
2963
2964 -- Colin Watson <cjwatson@debian.org> Mon, 23 Aug 2010 22:59:03 +0100
2965
2966openssh (1:5.5p1-4) unstable; urgency=low
2967
2968 [ Sebastian Andrzej Siewior ]
2969 * Add powerpcspe to architecture list for libselinux1-dev build-dependency
2970 (closes: #579843).
2971
2972 [ Colin Watson ]
2973 * Allow ~/.ssh/authorized_keys and other secure files to be
2974 group-writable, provided that the group in question contains only the
2975 file's owner; this extends a patch previously applied to ~/.ssh/config
2976 (closes: #581919).
2977 * Check primary group memberships as well as supplementary group
2978 memberships, and only allow group-writability by groups with exactly one
2979 member, as zero-member groups are typically used by setgid binaries
2980 rather than being user-private groups (closes: #581697).
2981
2982 -- Colin Watson <cjwatson@debian.org> Sat, 22 May 2010 23:37:20 +0100
2983
2984openssh (1:5.5p1-3) unstable; urgency=low
2985
2986 * Discard error messages while checking whether rsh, rlogin, and rcp
2987 alternatives exist (closes: #579285).
2988 * Drop IDEA key check; I don't think it works properly any more due to
2989 textual changes in error output, it's only relevant for direct upgrades
2990 from truly ancient versions, and it breaks upgrades if
2991 /etc/ssh/ssh_host_key can't be loaded (closes: #579570).
2992
2993 -- Colin Watson <cjwatson@debian.org> Wed, 28 Apr 2010 22:12:47 +0100
2994
2995openssh (1:5.5p1-2) unstable; urgency=low
2996
2997 * Use dh_installinit -n, since our maintainer scripts already handle this
2998 more carefully (thanks, Julien Cristau).
2999
3000 -- Colin Watson <cjwatson@debian.org> Sat, 17 Apr 2010 12:55:56 +0100
3001
3002openssh (1:5.5p1-1) unstable; urgency=low
3003
3004 * New upstream release:
3005 - Unbreak sshd_config's AuthorizedKeysFile option for $HOME-relative
3006 paths.
3007 - Include a language tag when sending a protocol 2 disconnection
3008 message.
3009 - Make logging of certificates used for user authentication more clear
3010 and consistent between CAs specified using TrustedUserCAKeys and
3011 authorized_keys.
3012
3013 -- Colin Watson <cjwatson@debian.org> Fri, 16 Apr 2010 10:27:30 +0100
3014
3015openssh (1:5.4p1-2) unstable; urgency=low
3016
3017 * Borrow patch from Fedora to add DNSSEC support: if glibc 2.11 is
3018 installed, the host key is published in an SSHFP RR secured with DNSSEC,
3019 and VerifyHostKeyDNS=yes, then ssh will no longer prompt for host key
3020 verification (closes: #572049).
3021 * Convert to dh(1), and use dh_installdocs --link-doc.
3022 * Drop lpia support, since Ubuntu no longer supports this architecture.
3023 * Use dh_install more effectively.
3024 * Add a NEWS.Debian entry about changes in smartcard support relative to
3025 previous unofficial builds (closes: #231472).
3026
3027 -- Colin Watson <cjwatson@debian.org> Sat, 10 Apr 2010 01:08:59 +0100
3028
3029openssh (1:5.4p1-1) unstable; urgency=low
3030
3031 * New upstream release (LP: #535029).
3032 - After a transition period of about 10 years, this release disables SSH
3033 protocol 1 by default. Clients and servers that need to use the
3034 legacy protocol must explicitly enable it in ssh_config / sshd_config
3035 or on the command-line.
3036 - Remove the libsectok/OpenSC-based smartcard code and add support for
3037 PKCS#11 tokens. This support is enabled by default in the Debian
3038 packaging, since it now doesn't involve additional library
3039 dependencies (closes: #231472, LP: #16918).
3040 - Add support for certificate authentication of users and hosts using a
3041 new, minimal OpenSSH certificate format (closes: #482806).
3042 - Added a 'netcat mode' to ssh(1): "ssh -W host:port ...".
3043 - Add the ability to revoke keys in sshd(8) and ssh(1). (For the Debian
3044 package, this overlaps with the key blacklisting facility added in
3045 openssh 1:4.7p1-9, but with different file formats and slightly
3046 different scopes; for the moment, I've roughly merged the two.)
3047 - Various multiplexing improvements, including support for requesting
3048 port-forwardings via the multiplex protocol (closes: #360151).
3049 - Allow setting an explicit umask on the sftp-server(8) commandline to
3050 override whatever default the user has (closes: #496843).
3051 - Many sftp client improvements, including tab-completion, more options,
3052 and recursive transfer support for get/put (LP: #33378). The old
3053 mget/mput commands never worked properly and have been removed
3054 (closes: #270399, #428082).
3055 - Do not prompt for a passphrase if we fail to open a keyfile, and log
3056 the reason why the open failed to debug (closes: #431538).
3057 - Prevent sftp from crashing when given a "-" without a command. Also,
3058 allow whitespace to follow a "-" (closes: #531561).
3059
3060 * Fix 'debian/rules quilt-setup' to avoid writing .orig files if some
3061 patches apply with offsets.
3062 * Include debian/ssh-askpass-gnome.png in the Debian tarball now that
3063 we're using a source format that permits this, rather than messing
3064 around with uudecode.
3065 * Drop compatibility with the old gssapi mechanism used in ssh-krb5 <<
3066 3.8.1p1-1. Simon Wilkinson refused this patch since the old gssapi
3067 mechanism was removed due to a serious security hole, and since these
3068 versions of ssh-krb5 are no longer security-supported by Debian I don't
3069 think there's any point keeping client compatibility for them.
3070 * Fix substitution of ETC_PAM_D_SSH, following the rename in 1:4.7p1-4.
3071 * Hardcode the location of xauth to /usr/bin/xauth rather than
3072 /usr/bin/X11/xauth (thanks, Aron Griffis; closes: #575725, LP: #8440).
3073 xauth no longer depends on x11-common, so we're no longer guaranteed to
3074 have the /usr/bin/X11 symlink available. I was taking advantage of the
3075 /usr/bin/X11 symlink to smooth X's move to /usr/bin, but this is far
3076 enough in the past now that it's probably safe to just use /usr/bin.
3077 * Remove SSHD_OOM_ADJUST configuration. sshd now unconditionally makes
3078 itself non-OOM-killable, and doesn't require configuration to avoid log
3079 spam in virtualisation containers (closes: #555625).
3080 * Drop Debian-specific removal of OpenSSL version check. Upstream ignores
3081 the two patchlevel nybbles now, which is sufficient to address the
3082 original reason this change was introduced, and it appears that any
3083 change in the major/minor/fix nybbles would involve a new libssl package
3084 name. (We'd still lose if the status nybble were ever changed, but that
3085 would mean somebody had packaged a development/beta version rather than
3086 a proper release, which doesn't appear to be normal practice.)
3087 * Drop most of our "LogLevel SILENT" (-qq) patch. This was originally
3088 introduced to match the behaviour of non-free SSH, in which -q does not
3089 suppress fatal errors, but matching the behaviour of OpenSSH upstream is
3090 much more important nowadays. We no longer document that -q does not
3091 suppress fatal errors (closes: #280609). Migrate "LogLevel SILENT" to
3092 "LogLevel QUIET" in sshd_config on upgrade.
3093 * Policy version 3.8.4:
3094 - Add a Homepage field.
3095
3096 -- Colin Watson <cjwatson@debian.org> Tue, 06 Apr 2010 22:38:31 +0100
3097
3098openssh (1:5.3p1-3) unstable; urgency=low
3099
3100 * Convert to source format 3.0 (quilt).
3101 * Update README.source to match, and add a 'quilt-setup' target to
3102 debian/rules for the benefit of those checking out the package from
3103 revision control.
3104 * All patches are now maintained separately and tagged according to DEP-3.
3105 * Add GSSAPIStoreCredentialsOnRekey to 'sshd -T' configuration dump.
3106 * Remove documentation of building for Debian 3.0 in README.Debian.
3107 Support for this was removed in 1:4.7p1-2.
3108 * Remove obsolete header from README.Debian dating from when people
3109 expected non-free SSH.
3110 * Update copyright years for GSSAPI patch.
3111
3112 -- Colin Watson <cjwatson@debian.org> Sun, 28 Feb 2010 01:35:53 +0000
3113
3114openssh (1:5.3p1-2) unstable; urgency=low
3115
3116 * Link with -Wl,--as-needed (closes: #560155).
3117 * Install upstream sshd_config as an example (closes: #415008).
3118 * Use dh_lintian.
3119 * Honour DEB_BUILD_OPTIONS=nocheck.
3120
3121 -- Colin Watson <cjwatson@debian.org> Mon, 22 Feb 2010 12:43:24 +0000
3122
3123openssh (1:5.3p1-1) unstable; urgency=low
3124
3125 * New upstream release.
3126 * Update to GSSAPI patch from
3127 http://www.sxw.org.uk/computing/patches/openssh-5.3p1-gsskex-all-20100124.patch.
3128 * Backport from upstream:
3129 - Do not fall back to adding keys without constraints (ssh-add -c / -t
3130 ...) when the agent refuses the constrained add request. This was a
3131 useful migration measure back in 2002 when constraints were new, but
3132 just adds risk now (LP: #209447).
3133 * Drop change from 1:3.8p1-3 to avoid setresuid() and setresgid() system
3134 calls. This only applied to Linux 2.2, which it's no longer feasible to
3135 run anyway (see 1:5.2p1-2 changelog).
3136
3137 -- Colin Watson <cjwatson@debian.org> Tue, 26 Jan 2010 11:55:29 +0000
3138
3139openssh (1:5.2p1-2) unstable; urgency=low
3140
3141 [ Colin Watson ]
3142 * Backport from upstream:
3143 - After sshd receives a SIGHUP, ignore subsequent HUPs while sshd
3144 re-execs itself. Prevents two HUPs in quick succession from resulting
3145 in sshd dying (LP: #497781).
3146 - Output a debug if we can't open an existing keyfile (LP: #505301).
3147 * Use host compiler for ssh-askpass-gnome when cross-compiling.
3148 * Don't run tests when cross-compiling.
3149 * Drop change from 1:3.6.1p2-5 to disable cmsg_type check for file
3150 descriptor passing when running on Linux 2.0. The previous stable
3151 release of Debian dropped support for Linux 2.4, let alone 2.0, so this
3152 very likely has no remaining users depending on it.
3153
3154 [ Kees Cook ]
3155 * Implement DebianBanner server configuration flag that can be set to "no"
3156 to allow sshd to run without the Debian-specific extra version in the
3157 initial protocol handshake (closes: #562048).
3158
3159 -- Colin Watson <cjwatson@debian.org> Sat, 16 Jan 2010 01:28:58 +0000
3160
3161openssh (1:5.2p1-1) unstable; urgency=low
3162
3163 * New upstream release (closes: #536182). Yes, I know 5.3p1 has been out
3164 for a while, but there's no GSSAPI patch available for it yet.
3165 - Change the default cipher order to prefer the AES CTR modes and the
3166 revised "arcfour256" mode to CBC mode ciphers that are susceptible to
3167 CPNI-957037 "Plaintext Recovery Attack Against SSH".
3168 - Add countermeasures to mitigate CPNI-957037-style attacks against the
3169 SSH protocol's use of CBC-mode ciphers. Upon detection of an invalid
3170 packet length or Message Authentication Code, ssh/sshd will continue
3171 reading up to the maximum supported packet length rather than
3172 immediately terminating the connection. This eliminates most of the
3173 known differences in behaviour that leaked information about the
3174 plaintext of injected data which formed the basis of this attack
3175 (closes: #506115, LP: #379329).
3176 - ForceCommand directive now accepts commandline arguments for the
3177 internal-sftp server (closes: #524423, LP: #362511).
3178 - Add AllowAgentForwarding to available Match keywords list (closes:
3179 #540623).
3180 - Make ssh(1) send the correct channel number for
3181 SSH2_MSG_CHANNEL_SUCCESS and SSH2_MSG_CHANNEL_FAILURE messages to
3182 avoid triggering 'Non-public channel' error messages on sshd(8) in
3183 openssh-5.1.
3184 - Avoid printing 'Non-public channel' warnings in sshd(8), since the
3185 ssh(1) has sent incorrect channel numbers since ~2004 (this reverts a
3186 behaviour introduced in openssh-5.1; closes: #496017).
3187 - Disable nonfunctional ssh(1) ~C escape handler in multiplex slave
3188 connections (closes: #507541).
3189 - Fix "whitepsace" typo in ssh_config(5) (closes: #514313, LP: #303835).
3190 * Update to GSSAPI patch from
3191 http://www.sxw.org.uk/computing/patches/openssh-5.2p1-gsskex-all-20090726.patch,
3192 including cascading credentials support (LP: #416958).
3193 * Use x11.pc when compiling/linking gnome-ssh-askpass2 (closes: #555951).
3194 * Moved to bzr.debian.org; add Vcs-Bzr and Vcs-Browser control fields.
3195 * Add debian/README.source with instructions on bzr handling.
3196 * Make ChrootDirectory work with SELinux (thanks, Russell Coker; closes:
3197 #556644).
3198 * Initialise sc to NULL in ssh_selinux_getctxbyname (thanks, Václav Ovsík;
3199 closes: #498684).
3200 * Don't duplicate backslashes when displaying server banner (thanks,
3201 Michał Górny; closes: #505378, LP: #425346).
3202 * Use hardening-includes for hardening logic (thanks, Kees Cook; closes:
3203 #561887).
3204 * Update OpenSSH FAQ to revision 1.110.
3205 * Remove ssh/new_config, only needed for direct upgrades from potato which
3206 are no longer particularly feasible anyway (closes: #420682).
3207 * Cope with insserv reordering of init script links.
3208 * Remove init script stop link in rc1, as killprocs handles it already.
3209 * Adjust short descriptions to avoid relying on previous experience with
3210 rsh, based on suggestions from Reuben Thomas (closes: #512198).
3211 * Remove manual page references to login.conf, which aren't applicable on
3212 non-BSD systems (closes: #154434).
3213 * Remove/adjust manual page references to BSD-specific /etc/rc (closes:
3214 #513417).
3215 * Refer to sshd_config(5) rather than sshd(8) in postinst-written
3216 /etc/ssh/sshd_config, and add UsePAM commentary from upstream-shipped
3217 configuration file (closes: #415008, although unfortunately this will
3218 only be conveniently visible on new installations).
3219 * Include URL to OpenBSD's ssl(8) in ssh(1), since I don't see a better
3220 source for the same information among Debian's manual pages (closes:
3221 #530692, LP: #456660).
3222
3223 -- Colin Watson <cjwatson@debian.org> Mon, 04 Jan 2010 13:23:35 +0000
3224
3225openssh (1:5.1p1-8) unstable; urgency=low
3226
3227 * Build with just -fPIC on mips/mipsel, not -fPIE as well (thanks, LIU Qi;
3228 closes: #538313).
3229 * Build-depend on libselinux1-dev on sh4 too (thanks, Nobuhiro Iwamatsu;
3230 closes: #547103).
3231 * Fix grammar in if-up script (closes: #549128).
3232 * Pass $SSHD_OPTS when checking configuration too (thanks, "sobtwmxt";
3233 closes: #548662).
3234
3235 -- Colin Watson <cjwatson@debian.org> Mon, 05 Oct 2009 13:30:49 +0100
3236
3237openssh (1:5.1p1-7) unstable; urgency=low
3238
3239 * Update config.guess and config.sub from autotools-dev 20090611.1
3240 (closes: #538301).
3241 * Set umask to 022 in the init script as well as postinsts (closes:
3242 #539030).
3243 * Add ${misc:Depends} to keep Lintian happy.
3244 * Use 'which' rather than 'type' in maintainer scripts.
3245 * Upgrade to debhelper v7.
3246
3247 -- Colin Watson <cjwatson@debian.org> Fri, 31 Jul 2009 16:28:10 +0100
3248
3249openssh (1:5.1p1-6) unstable; urgency=low
3250
3251 * Open /proc/self/oom_adj with O_RDONLY or O_WRONLY as necessary, rather
3252 than O_RDWR.
3253 * Disable OOM adjustment for vserver/OpenVZ (thanks, Karl Chen; closes:
3254 #511771).
3255 * Add ufw integration (thanks, Didier Roche; see
3256 https://wiki.ubuntu.com/UbuntuFirewall#Integrating%20UFW%20with%20Packages;
3257 LP: #261884).
3258 * Add a comment above PermitRootLogin in sshd_config pointing to
3259 README.Debian.
3260 * Check if delgroup is present in openssh-client.postrm (closes: #530501).
3261 * Build with -fPIC on mips/mipsel (thanks, Luk Claes; closes: #531942).
3262 * Remove /var/run/sshd from openssh-server package; it will be created at
3263 run-time before starting the server.
3264 * Use invoke-rc.d in openssh-server's if-up script.
3265
3266 -- Colin Watson <cjwatson@debian.org> Fri, 05 Jun 2009 11:56:03 +0100
3267
3268openssh (1:5.1p1-5) unstable; urgency=low
3269
3270 * Backport from upstream CVS (Markus Friedl):
3271 - packet_disconnect() on padding error, too. Should reduce the success
3272 probability for the CPNI-957037 Plaintext Recovery Attack to 2^-18.
3273 * Check that /var/run/sshd.pid exists and that the process ID listed there
3274 corresponds to sshd before running '/etc/init.d/ssh reload' from if-up
3275 script; SIGHUP is racy if called at boot before sshd has a chance to
3276 install its signal handler, but fortunately the pid file is written
3277 after that which lets us avoid the race (closes: #502444).
3278 * While the above is a valuable sanity-check, it turns out that it doesn't
3279 really fix the bug (thanks to Kevin Price for testing), so for the
3280 meantime we'll just use '/etc/init.d/ssh restart', even though it is
3281 unfortunately heavyweight.
3282
3283 -- Colin Watson <cjwatson@debian.org> Wed, 14 Jan 2009 00:34:08 +0000
3284
3285openssh (1:5.1p1-4) unstable; urgency=low
3286
3287 * ssh-copy-id: Strip trailing colons from hostname (closes: #226172,
3288 LP: #249706; thanks to Karl Goetz for nudging this along; forwarded
3289 upstream as https://bugzilla.mindrot.org/show_bug.cgi?id=1530).
3290 * Backport from upstream CVS (Markus Friedl):
3291 - Only send eow and no-more-sessions requests to openssh 5 and newer;
3292 fixes interop problems with broken ssh v2 implementations (closes:
3293 #495917).
3294 * Fix double-free when failing to parse a forwarding specification given
3295 using ~C (closes: #505330; forwarded upstream as
3296 https://bugzilla.mindrot.org/show_bug.cgi?id=1539).
3297
3298 -- Colin Watson <cjwatson@debian.org> Sun, 23 Nov 2008 14:46:10 +0000
3299
3300openssh (1:5.1p1-3) unstable; urgency=low
3301
3302 * Remove unnecessary ssh-vulnkey output in non-verbose mode when no
3303 compromised or unknown keys were found (closes: #496495).
3304 * Configure with --disable-strip; dh_strip will deal with stripping
3305 binaries and will honour DEB_BUILD_OPTIONS (thanks, Bernhard R. Link;
3306 closes: #498681).
3307 * Fix handling of zero-length server banners (thanks, Tomas Mraz; closes:
3308 #497026).
3309
3310 -- Colin Watson <cjwatson@debian.org> Tue, 30 Sep 2008 23:09:58 +0100
3311
3312openssh (1:5.1p1-2) unstable; urgency=low
3313
3314 * Look for $SHELL on the path when executing ProxyCommands or
3315 LocalCommands (closes: #492728).
3316
3317 -- Colin Watson <cjwatson@debian.org> Tue, 29 Jul 2008 15:31:25 +0100
3318
3319openssh (1:5.1p1-1) unstable; urgency=low
3320
3321 * New upstream release (closes: #474301). Important changes not previously
3322 backported to 4.7p1:
3323 - 4.9/4.9p1 (http://www.openssh.com/txt/release-4.9):
3324 + Added chroot(2) support for sshd(8), controlled by a new option
3325 "ChrootDirectory" (closes: #139047, LP: #24777).
3326 + Linked sftp-server(8) into sshd(8). The internal sftp server is used
3327 when the command "internal-sftp" is specified in a Subsystem or
3328 ForceCommand declaration. When used with ChrootDirectory, the
3329 internal sftp server requires no special configuration of files
3330 inside the chroot environment.
3331 + Added a protocol extension method "posix-rename@openssh.com" for
3332 sftp-server(8) to perform POSIX atomic rename() operations; sftp(1)
3333 prefers this if available (closes: #308561).
3334 + Removed the fixed limit of 100 file handles in sftp-server(8).
3335 + ssh(8) will now skip generation of SSH protocol 1 ephemeral server
3336 keys when in inetd mode and protocol 2 connections are negotiated.
3337 This speeds up protocol 2 connections to inetd-mode servers that
3338 also allow Protocol 1.
3339 + Accept the PermitRootLogin directive in a sshd_config(5) Match
3340 block. Allows for, e.g. permitting root only from the local network.
3341 + Reworked sftp(1) argument splitting and escaping to be more
3342 internally consistent (i.e. between sftp commands) and more
3343 consistent with sh(1). Please note that this will change the
3344 interpretation of some quoted strings, especially those with
3345 embedded backslash escape sequences.
3346 + Support "Banner=none" in sshd_config(5) to disable sending of a
3347 pre-login banner (e.g. in a Match block).
3348 + ssh(1) ProxyCommands are now executed with $SHELL rather than
3349 /bin/sh.
3350 + ssh(1)'s ConnectTimeout option is now applied to both the TCP
3351 connection and the SSH banner exchange (previously it just covered
3352 the TCP connection). This allows callers of ssh(1) to better detect
3353 and deal with stuck servers that accept a TCP connection but don't
3354 progress the protocol, and also makes ConnectTimeout useful for
3355 connections via a ProxyCommand.
3356 + scp(1) incorrectly reported "stalled" on slow copies (closes:
3357 #140828).
3358 + scp(1) date underflow for timestamps before epoch.
3359 + ssh(1) used the obsolete SIG DNS RRtype for host keys in DNS,
3360 instead of the current standard RRSIG.
3361 + Correctly drain ACKs when a sftp(1) upload write fails midway,
3362 avoids a fatal() exit from what should be a recoverable condition.
3363 + Fixed ssh-keygen(1) selective host key hashing (i.e. "ssh-keygen -HF
3364 hostname") to not include any IP address in the data to be hashed.
3365 + Make ssh(1) skip listening on the IPv6 wildcard address when a
3366 binding address of 0.0.0.0 is used against an old SSH server that
3367 does not support the RFC4254 syntax for wildcard bind addresses.
3368 + Enable IPV6_V6ONLY socket option on sshd(8) listen socket, as is
3369 already done for X11/TCP forwarding sockets (closes: #439661).
3370 + Fix FD leak that could hang a ssh(1) connection multiplexing master.
3371 + Make ssh(1) -q option documentation consistent with reality.
3372 + Fixed sshd(8) PAM support not calling pam_session_close(), or
3373 failing to call it with root privileges (closes: #372680).
3374 + Fix activation of OpenSSL engine support when requested in configure
3375 (LP: #119295).
3376 + Cache SELinux status earlier so we know if it's enabled after a
3377 chroot (LP: #237557).
3378 - 5.1/5.1p1 (http://www.openssh.com/txt/release-5.1):
3379 + Introduce experimental SSH Fingerprint ASCII Visualisation to ssh(1)
3380 and ssh-keygen(1). Visual fingerprint display is controlled by a new
3381 ssh_config(5) option "VisualHostKey". The intent is to render SSH
3382 host keys in a visual form that is amenable to easy recall and
3383 rejection of changed host keys.
3384 + sshd_config(5) now supports CIDR address/masklen matching in "Match
3385 address" blocks, with a fallback to classic wildcard matching.
3386 + sshd(8) now supports CIDR matching in ~/.ssh/authorized_keys
3387 from="..." restrictions, also with a fallback to classic wildcard
3388 matching.
3389 + Added an extended test mode (-T) to sshd(8) to request that it write
3390 its effective configuration to stdout and exit. Extended test mode
3391 also supports the specification of connection parameters (username,
3392 source address and hostname) to test the application of
3393 sshd_config(5) Match rules.
3394 + ssh(1) now prints the number of bytes transferred and the overall
3395 connection throughput for SSH protocol 2 sessions when in verbose
3396 mode (previously these statistics were displayed for protocol 1
3397 connections only).
3398 + sftp-server(8) now supports extension methods statvfs@openssh.com
3399 and fstatvfs@openssh.com that implement statvfs(2)-like operations.
3400 + sftp(1) now has a "df" command to the sftp client that uses the
3401 statvfs@openssh.com to produce a df(1)-like display of filesystem
3402 space and inode utilisation (requires statvfs@openssh.com support on
3403 the server).
3404 + Added a MaxSessions option to sshd_config(5) to allow control of the
3405 number of multiplexed sessions supported over a single TCP
3406 connection. This allows increasing the number of allowed sessions
3407 above the previous default of 10, disabling connection multiplexing
3408 (MaxSessions=1) or disallowing login/shell/subsystem sessions
3409 entirely (MaxSessions=0).
3410 + Added a no-more-sessions@openssh.com global request extension that
3411 is sent from ssh(1) to sshd(8) when the client knows that it will
3412 never request another session (i.e. when session multiplexing is
3413 disabled). This allows a server to disallow further session requests
3414 and terminate the session in cases where the client has been
3415 hijacked.
3416 + ssh-keygen(1) now supports the use of the -l option in combination
3417 with -F to search for a host in ~/.ssh/known_hosts and display its
3418 fingerprint.
3419 + ssh-keyscan(1) now defaults to "rsa" (protocol 2) keys, instead of
3420 "rsa1" (LP: #129794).
3421 + Added an AllowAgentForwarding option to sshd_config(8) to control
3422 whether authentication agent forwarding is permitted. Note that this
3423 is a loose control, as a client may install their own unofficial
3424 forwarder.
3425 + ssh(1) and sshd(8): avoid unnecessary malloc/copy/free when
3426 receiving network data, resulting in a ~10% speedup.
3427 + ssh(1) and sshd(8) will now try additional addresses when connecting
3428 to a port forward destination whose DNS name resolves to more than
3429 one address. The previous behaviour was to try the only first
3430 address and give up if that failed.
3431 + ssh(1) and sshd(8) now support signalling that channels are
3432 half-closed for writing, through a channel protocol extension
3433 notification "eow@openssh.com". This allows propagation of closed
3434 file descriptors, so that commands such as "ssh -2 localhost od
3435 /bin/ls | true" do not send unnecessary data over the wire.
3436 + sshd(8): increased the default size of ssh protocol 1 ephemeral keys
3437 from 768 to 1024 bits.
3438 + When ssh(1) has been requested to fork after authentication ("ssh
3439 -f") with ExitOnForwardFailure enabled, delay the fork until after
3440 replies for any -R forwards have been seen. Allows for robust
3441 detection of -R forward failure when using -f.
3442 + "Match group" blocks in sshd_config(5) now support negation of
3443 groups. E.g. "Match group staff,!guests".
3444 + sftp(1) and sftp-server(8) now allow chmod-like operations to set
3445 set[ug]id/sticky bits.
3446 + The MaxAuthTries option is now permitted in sshd_config(5) match
3447 blocks.
3448 + Multiplexed ssh(1) sessions now support a subset of the ~ escapes
3449 that are available to a primary connection.
3450 + ssh(1) connection multiplexing will now fall back to creating a new
3451 connection in most error cases (closes: #352830).
3452 + Make ssh(1) deal more gracefully with channel requests that fail.
3453 Previously it would optimistically assume that requests would always
3454 succeed, which could cause hangs if they did not (e.g. when the
3455 server runs out of file descriptors).
3456 + ssh(1) now reports multiplexing errors via the multiplex slave's
3457 stderr where possible (subject to LogLevel in the mux master).
3458 + Fixed an UMAC alignment problem that manifested on Itanium
3459 platforms.
3460 * Remove our local version of moduli(5) now that there's one upstream.
3461 * Say "GTK+" rather than "GTK" in ssh-askpass-gnome's description.
3462 * Add lintian overrides for empty /usr/share/doc/openssh-client
3463 directories in openssh-server and ssh (necessary due to being symlink
3464 targets).
3465 * Merge from Ubuntu:
3466 - Add 'status' action to openssh-server init script, requiring lsb-base
3467 (>= 3.2-13) (thanks, Dustin Kirkland).
3468 * debconf template translations:
3469 - Update Korean (thanks, Sunjae Park; closes: #484821).
3470
3471 -- Colin Watson <cjwatson@debian.org> Fri, 25 Jul 2008 10:45:08 +0100
3472
3473openssh (1:4.7p1-13) unstable; urgency=low
3474
3475 * Add some helpful advice to the end of ssh-vulnkey's output if there are
3476 unknown or compromised keys (thanks, Dan Jacobson; closes: #483756).
3477 * Check compromised key blacklist in ssh or ssh-add, as well as in the
3478 server (LP: #232391). To override the blacklist check in ssh
3479 temporarily, use 'ssh -o UseBlacklistedKeys=yes'; there is no override
3480 for the blacklist check in ssh-add.
3481 * Add cross-references to ssh-vulnkey(1) to ssh(1), ssh-add(1),
3482 ssh-keygen(1), and sshd(8) (closes: #484451).
3483 * Change openssh-client-udeb's Installer-Menu-Item from 99900 to 99999
3484 (thanks, Frans Pop).
3485 * Drop openssh-client-udeb isinstallable hack, as main-menu (>= 1.26) now
3486 takes care of that (thanks, Frans Pop; closes: #484404).
3487 * Update DEB_BUILD_OPTIONS parsing code from policy 3.8.0.
3488 * Add documentation on removing openssh-blacklist locally (see #484269).
3489 * Clarify documentation of SSHD_OOM_ADJUST, and make setting it to the
3490 empty string actually skip adjustment as intended (closes: #487325).
3491 * Remove empty /usr/share/applications directory in ssh-askpass-gnome.
3492 * debconf template translations:
3493 - Update Romanian (thanks, Cătălin Feștilă; closes: #485415).
3494
3495 -- Colin Watson <cjwatson@debian.org> Mon, 21 Jul 2008 12:18:28 +0100
3496
3497openssh (1:4.7p1-12) unstable; urgency=low
3498
3499 * Fill in CVE identifier for ssh-vulnkey bug fixed in 1:4.7p1-10.
3500 * Refactor rejection of blacklisted user keys into a single
3501 reject_blacklisted_key function in auth.c (thanks, Dmitry V. Levin).
3502 * Fix memory leak of blacklisted host keys (thanks, Dmitry V. Levin).
3503 * debconf template translations:
3504 - Update Dutch (thanks, Bart Cornelis; closes: #483004).
3505 - Update Brazilian Portuguese (thanks, Eder L. Marques; closes:
3506 #483142).
3507 - Update Slovak (thanks, Ivan Masár; closes: #483517).
3508
3509 -- Colin Watson <cjwatson@debian.org> Thu, 29 May 2008 21:41:29 +0100
3510
3511openssh (1:4.7p1-11) unstable; urgency=low
3512
3513 * Make init script depend on $syslog, and fix some other dependency
3514 glitches (thanks, Petter Reinholdtsen; closes: #481018).
3515 * Remove 0 and 6 from Default-Stop in init script (thanks, Kel Modderman;
3516 closes: #481151).
3517 * Restore OOM killer adjustment for child processes (thanks, Vaclav Ovsik;
3518 closes: #480020).
3519 * Allow building with heimdal-dev (LP: #125805).
3520
3521 * Check RSA1 keys without the need for a separate blacklist. Thanks to
3522 Simon Tatham for the idea.
3523 * Generate two keys with the PID forced to the same value and test that
3524 they differ, to defend against recurrences of the recent Debian OpenSSL
3525 vulnerability.
3526 * Recommend openssh-blacklist from openssh-client (closes: #481187).
3527 * Recommend openssh-blacklist-extra from openssh-client and
3528 openssh-server.
3529 * Make ssh-vulnkey report the file name and line number for each key
3530 (thanks, Heiko Schlittermann and Christopher Perry; closes: #481398).
3531 * Check for blacklists in /usr/share/ssh/ as well as /etc/ssh/ (see
3532 #481283).
3533 * Log IP addresses of hosts attempting to use blacklisted keys (closes:
3534 #481721).
3535 * Incorporate various ssh-vulnkey suggestions from Hugh Daniel:
3536 - Add -v (verbose) option, and don't print output for keys that have a
3537 blacklist file but that are not listed unless in verbose mode.
3538 - Move exit status documentation to a separate section.
3539 - Document key status descriptions.
3540 - Add key type to output.
3541 - Fix error output if ssh-vulnkey fails to read key files, with the
3542 exception of host keys unless -a was given.
3543 - In verbose mode, output the name of each file examined.
3544 * Handle leading IP addresses in ssh-vulnkey input (LP: #230497).
3545 * Fix various ssh-vulnkey problems pointed out by Solar Designer:
3546 - Fix some buffer handling inconsistencies.
3547 - Use xasprintf to build user key file names, avoiding truncation
3548 problems.
3549 - Drop to the user's UID when reading user keys with -a.
3550 - Use EUID rather than UID when run with no file names and without -a.
3551 - Reword "Unknown (no blacklist information)" to "Unknown (blacklist
3552 file not installed)".
3553
3554 * Fix typo in ssh/vulnerable_host_keys message (thanks, Esko Arajärvi).
3555 * debconf template translations:
3556 - Update Finnish (thanks, Esko Arajärvi; closes: #481530).
3557 - Update French (thanks, Christian Perrier; closes: #481576).
3558 - Update Norwegian Bokmål (thanks, Bjørn Steensrud; closes: #481591).
3559 - Update Galician (thanks, Jacobo Tarrio; closes: #481596).
3560 - Update Japanese (thanks, Kenshi Muto; closes: #481621).
3561 - Update Czech (thanks, Miroslav Kure; closes: #481624).
3562 - Update German (thanks, Helge Kreutzmann; closes: #481676).
3563 - Update Portuguese (thanks, Ricardo Silva; closes: #481781).
3564 - Update Basque (thanks, Piarres Beobide; closes: #481836).
3565 - Update Bulgarian (thanks, Damyan Ivanov; closes: #481870).
3566 - Update Vietnamese (thanks, Clytie Siddall; closes: #481876).
3567 - Update Spanish (thanks, Javier Fernandez-Sanguino Peña; closes:
3568 #482341).
3569 - Update Turkish (thanks, Mert Dirik; closes: #482548).
3570 - Update Russian (thanks, Yuri Kozlov; closes: #482887).
3571 - Update Swedish (thanks, Martin Bagge; closes: #482464).
3572 - Update Italian (thanks, Luca Monducci; closes: #482808).
3573
3574 -- Colin Watson <cjwatson@debian.org> Mon, 26 May 2008 12:21:39 +0100
3575
3576openssh (1:4.7p1-10) unstable; urgency=low
3577
3578 * Add a FILES section to ssh-vulnkey(1) (thanks, Hugh Daniel).
3579 * CVE-2008-2285: ssh-vulnkey handles options in authorized_keys
3580 (LP: #230029), and treats # as introducing a comment even if it is
3581 preceded by whitespace.
3582
3583 -- Colin Watson <cjwatson@debian.org> Wed, 14 May 2008 12:35:05 +0100
3584
3585openssh (1:4.7p1-9) unstable; urgency=critical
3586
3587 * Fill in CVE identifier for security vulnerability fixed in 1:4.7p1-8.
3588 * Mitigate OpenSSL security vulnerability (CVE-2008-0166):
3589 - Add key blacklisting support. Keys listed in
3590 /etc/ssh/blacklist.TYPE-LENGTH will be rejected for authentication by
3591 sshd, unless "PermitBlacklistedKeys yes" is set in
3592 /etc/ssh/sshd_config.
3593 - Add a new program, ssh-vulnkey, which can be used to check keys
3594 against these blacklists.
3595 - Depend on openssh-blacklist.
3596 - Force dependencies on libssl0.9.8 / libcrypto0.9.8-udeb to at least
3597 0.9.8g-9.
3598 - Automatically regenerate known-compromised host keys, with a
3599 critical-priority debconf note. (I regret that there was no time to
3600 gather translations.)
3601
3602 -- Colin Watson <cjwatson@debian.org> Tue, 13 May 2008 12:33:38 +0100
3603
3604openssh (1:4.7p1-8) unstable; urgency=high
3605
3606 * Fill in CVE identifier for security vulnerability fixed in 1:4.7p1-5.
3607 * Rename KeepAlive to TCPKeepAlive in sshd_config, cleaning up from old
3608 configurations (LP: #211400).
3609 * Tweak scp's reporting of filenames in verbose mode to be a bit less
3610 confusing with spaces (thanks, Nicolas Valcárcel; LP: #89945).
3611 * Backport from 4.9p1:
3612 - CVE-2008-1657: Ignore ~/.ssh/rc if a sshd_config ForceCommand is
3613 specified.
3614 - Add no-user-rc authorized_keys option to disable execution of
3615 ~/.ssh/rc.
3616 * Backport from Simon Wilkinson's GSSAPI key exchange patch for 5.0p1:
3617 - Add code to actually implement GSSAPIStrictAcceptorCheck, which had
3618 somehow been omitted from a previous version of this patch (closes:
3619 #474246).
3620
3621 -- Colin Watson <cjwatson@debian.org> Sun, 06 Apr 2008 12:34:19 +0100
3622
3623openssh (1:4.7p1-7) unstable; urgency=low
3624
3625 * Ignore errors writing to oom_adj (closes: #473573).
3626
3627 -- Colin Watson <cjwatson@debian.org> Mon, 31 Mar 2008 16:24:44 +0100
3628
3629openssh (1:4.7p1-6) unstable; urgency=low
3630
3631 * Disable the Linux kernel's OOM-killer for the sshd parent; tweak
3632 SSHD_OOM_ADJUST in /etc/default/ssh to change this (closes: #341767).
3633
3634 -- Colin Watson <cjwatson@debian.org> Sun, 30 Mar 2008 21:14:12 +0100
3635
3636openssh (1:4.7p1-5) unstable; urgency=low
3637
3638 * Recommends: xauth rather than Suggests: xbase-clients.
3639 * Document in ssh(1) that '-S none' disables connection sharing
3640 (closes: #471437).
3641 * Patch from Red Hat / Fedora:
3642 - CVE-2008-1483: Don't use X11 forwarding port which can't be bound on
3643 all address families, preventing hijacking of X11 forwarding by
3644 unprivileged users when both IPv4 and IPv6 are configured (closes:
3645 #463011).
3646 * Use printf rather than echo -en (a bashism) in openssh-server.config and
3647 openssh-server.preinst.
3648 * debconf template translations:
3649 - Update Finnish (thanks, Esko Arajärvi; closes: #468563).
3650
3651 -- Colin Watson <cjwatson@debian.org> Sat, 22 Mar 2008 12:37:00 +0000
3652
3653openssh (1:4.7p1-4) unstable; urgency=low
3654
3655 [ Caleb Case ]
3656 * Fix configure detection of getseuserbyname and
3657 get_default_context_with_level (closes: #465614, LP: #188136).
3658
3659 [ Colin Watson ]
3660 * Include the autogenerated debian/copyright in the source package.
3661 * Move /etc/pam.d/ssh to /etc/pam.d/sshd, allowing us to stop defining
3662 SSHD_PAM_SERVICE (closes: #255870).
3663
3664 -- Colin Watson <cjwatson@debian.org> Wed, 13 Feb 2008 18:18:52 +0000
3665
3666openssh (1:4.7p1-3) unstable; urgency=low
3667
3668 * Improve grammar of ssh-askpass-gnome description.
3669 * Backport from upstream:
3670 - Use the correct packet maximum sizes for remote port and agent
3671 forwarding. Prevents the server from killing the connection if too
3672 much data is queued and an excessively large packet gets sent
3673 (https://bugzilla.mindrot.org/show_bug.cgi?id=1360).
3674 * Allow passing temporary daemon parameters on the init script's command
3675 line, e.g. '/etc/init.d/ssh start "-o PermitRootLogin=yes"' (thanks,
3676 Marc Haber; closes: #458547).
3677
3678 -- Colin Watson <cjwatson@debian.org> Fri, 01 Feb 2008 21:59:59 +0000
3679
3680openssh (1:4.7p1-2) unstable; urgency=low
3681
3682 * Adjust many relative links in faq.html to point to
3683 http://www.openssh.com/ (thanks, Dan Jacobson; mentioned in #459807).
3684 * Pass --with-mantype=doc to configure rather than build-depending on
3685 groff (closes: #460121).
3686 * Add armel to architecture list for libselinux1-dev build-dependency
3687 (closes: #460136).
3688 * Drop source-compatibility with Debian 3.0:
3689 - Remove support for building with GNOME 1. This allows simplification
3690 of our GNOME build-dependencies (see #460136).
3691 - Remove hacks to support the old PAM configuration scheme.
3692 - Remove compatibility for building without po-debconf.
3693 * Build-depend on libgtk2.0-dev rather than libgnomeui-dev. As far as I
3694 can see, the GTK2 version of ssh-askpass-gnome has never required
3695 libgnomeui-dev.
3696
3697 -- Colin Watson <cjwatson@debian.org> Fri, 11 Jan 2008 00:14:10 +0000
3698
3699openssh (1:4.7p1-1) unstable; urgency=low
3700
3701 * New upstream release (closes: #453367).
3702 - CVE-2007-4752: Prevent ssh(1) from using a trusted X11 cookie if
3703 creation of an untrusted cookie fails; found and fixed by Jan Pechanec
3704 (closes: #444738).
3705 - sshd(8) in new installations defaults to SSH Protocol 2 only. Existing
3706 installations are unchanged.
3707 - The SSH channel window size has been increased, and both ssh(1)
3708 sshd(8) now send window updates more aggressively. These improves
3709 performance on high-BDP (Bandwidth Delay Product) networks.
3710 - ssh(1) and sshd(8) now preserve MAC contexts between packets, which
3711 saves 2 hash calls per packet and results in 12-16% speedup for
3712 arcfour256/hmac-md5.
3713 - A new MAC algorithm has been added, UMAC-64 (RFC4418) as
3714 "umac-64@openssh.com". UMAC-64 has been measured to be approximately
3715 20% faster than HMAC-MD5.
3716 - Failure to establish a ssh(1) TunnelForward is now treated as a fatal
3717 error when the ExitOnForwardFailure option is set.
3718 - ssh(1) returns a sensible exit status if the control master goes away
3719 without passing the full exit status.
3720 - When using a ProxyCommand in ssh(1), set the outgoing hostname with
3721 gethostname(2), allowing hostbased authentication to work.
3722 - Make scp(1) skip FIFOs rather than hanging (closes: #246774).
3723 - Encode non-printing characters in scp(1) filenames. These could cause
3724 copies to be aborted with a "protocol error".
3725 - Handle SIGINT in sshd(8) privilege separation child process to ensure
3726 that wtmp and lastlog records are correctly updated.
3727 - Report GSSAPI mechanism in errors, for libraries that support multiple
3728 mechanisms.
3729 - Improve documentation for ssh-add(1)'s -d option.
3730 - Rearrange and tidy GSSAPI code, removing server-only code being linked
3731 into the client.
3732 - Delay execution of ssh(1)'s LocalCommand until after all forwardings
3733 have been established.
3734 - In scp(1), do not truncate non-regular files.
3735 - Improve exit message from ControlMaster clients.
3736 - Prevent sftp-server(8) from reading until it runs out of buffer space,
3737 whereupon it would exit with a fatal error (closes: #365541).
3738 - pam_end() was not being called if authentication failed
3739 (closes: #405041).
3740 - Manual page datestamps updated (closes: #433181).
3741 * Install the OpenSSH FAQ in /usr/share/doc/openssh-client.
3742 - Includes documentation on copying files with colons using scp
3743 (closes: #303453).
3744 * Create /var/run/sshd on start even if /etc/ssh/sshd_not_to_be_run exists
3745 (closes: #453285).
3746 * Fix "overriden" typo in ssh(1) (thanks, A. Costa; closes: #390699).
3747 * Refactor debian/rules configure and make invocations to make development
3748 easier.
3749 * Remove the hideously old /etc/ssh/primes on upgrade (closes: #123013).
3750 * Update moduli(5) to revision 1.11 from OpenBSD CVS.
3751 * Document the non-default options we set as standard in ssh_config(5) and
3752 sshd_config(5) (closes: #327886, #345628).
3753 * Recode LICENCE to UTF-8 when concatenating it to debian/copyright.
3754 * Override desktop-file-but-no-dh_desktop-call lintian warning; the
3755 .desktop file is intentionally not installed (see 1:3.8.1p1-10).
3756 * Update copyright dates for Kerberos patch in debian/copyright.head.
3757 * Policy version 3.7.3: no changes required.
3758
3759 -- Colin Watson <cjwatson@debian.org> Mon, 24 Dec 2007 16:43:02 +0000
3760
3761openssh (1:4.6p1-7) unstable; urgency=low
3762
3763 * Don't build PIE executables on m68k (closes: #451192).
3764 * Use autotools-dev's recommended configure --build and --host options.
3765 * Adjust README.Debian to suggest mailing debian-ssh@lists.debian.org
3766 rather than Matthew.
3767 * Check whether deluser exists in postrm (closes: #454085).
3768
3769 -- Colin Watson <cjwatson@debian.org> Mon, 03 Dec 2007 11:11:02 +0000
3770
3771openssh (1:4.6p1-6) unstable; urgency=low
3772
3773 * Remove blank line between head comment and first template in
3774 debian/openssh-server.templates.master; apparently it confuses some
3775 versions of debconf.
3776 * Install authorized_keys(5) as a symlink to sshd(8) (thanks, Tomas
3777 Pospisek; closes: #441817).
3778 * Discard error output from dpkg-query in preinsts, in case the ssh
3779 metapackage is not installed.
3780 * Fix sshd/inittab advice in README.Debian to account for rc.d movement
3781 (closes: #450632).
3782 * Suppress error from debian/rules if lsb-release is not installed.
3783 * Don't ignore errors from 'make -C contrib clean'.
3784 * Adjust categories in ssh-askpass-gnome.desktop to comply with the
3785 Desktop Menu Specification.
3786 * debconf template translations:
3787 - Add Slovak (thanks, Ivan Masár; closes: #441690).
3788 - Update Brazilian Portuguese (thanks, Eder L. Marques;
3789 closes: #447145).
3790
3791 -- Colin Watson <cjwatson@debian.org> Mon, 12 Nov 2007 11:47:28 +0000
3792
3793openssh (1:4.6p1-5) unstable; urgency=low
3794
3795 * Identify ssh as a metapackage rather than a transitional package. It's
3796 still useful as a quick way to install both the client and the server.
3797 * ssh-copy-id now checks the exit status of ssh-add -L (thanks, Adeodato
3798 Simó; closes: #221675).
3799 * ssh-copy-id no longer prints the output of expr (thanks, Peter
3800 Eisentraut; closes: #291534).
3801 * ssh-copy-id defaults to ~/.ssh/id_rsa.pub rather than
3802 ~/.ssh/identity.pub, in line with ssh-keygen (thanks, Greg Norris;
3803 closes: #234627).
3804 * Build-depend on libselinux1-dev on lpia.
3805 * openssh-client Suggests: keychain.
3806 * debconf template translations:
3807 - Update Catalan (thanks, Jordà Polo; closes: #431970).
3808
3809 -- Colin Watson <cjwatson@debian.org> Mon, 30 Jul 2007 09:34:38 +0100
3810
3811openssh (1:4.6p1-4) unstable; urgency=low
3812
3813 * Don't build PIE executables on hppa, as they crash.
3814
3815 -- Colin Watson <cjwatson@debian.org> Thu, 05 Jul 2007 11:06:54 +0100
3816
3817openssh (1:4.6p1-3) unstable; urgency=low
3818
3819 * Only build PIE executables on Linux and NetBSD (closes: #430455).
3820 * Fix broken switch fallthrough when SELinux is running in permissive mode
3821 (closes: #430838).
3822 * Document that HashKnownHosts may break tab-completion (closes: #430154).
3823
3824 -- Colin Watson <cjwatson@debian.org> Fri, 29 Jun 2007 07:15:38 +0100
3825
3826openssh (1:4.6p1-2) unstable; urgency=low
3827
3828 * Fix ordering of SYSLOG_LEVEL_QUIET and SYSLOG_LEVEL_FATAL.
3829 * Clarify that 'ssh -q -q' still prints errors caused by bad arguments
3830 (i.e. before the logging system is initialised).
3831 * Suppress "Connection to <host> closed" and "Connection to master closed"
3832 messages at loglevel SILENT (thanks, Jaap Eldering; closes: #409788).
3833 * Suppress "Pseudo-terminal will not be allocated because stdin is not a
3834 terminal" message at loglevels QUIET and SILENT (closes: #366814).
3835 * Document the SILENT loglevel in sftp-server(8), ssh_config(5), and
3836 sshd_config(5).
3837 * Add try-restart action to init script.
3838 * Add /etc/network/if-up.d/openssh-server to restart sshd when new
3839 interfaces appear (LP: #103436).
3840 * Backport from upstream:
3841 - Move C/R -> kbdint special case to after the defaults have been
3842 loaded, which makes ChallengeResponse default to yes again. This was
3843 broken by the Match changes and not fixed properly subsequently
3844 (closes: #428968).
3845 - Silence spurious error messages from hang-on-exit fix
3846 (http://bugzilla.mindrot.org/show_bug.cgi?id=1306, closes: #429531).
3847
3848 -- Colin Watson <cjwatson@debian.org> Wed, 20 Jun 2007 11:52:44 +0100
3849
3850openssh (1:4.6p1-1) unstable; urgency=low
3851
3852 * New upstream release (closes: #395507, #397961, #420035). Important
3853 changes not previously backported to 4.3p2:
3854 - 4.4/4.4p1 (http://www.openssh.com/txt/release-4.4):
3855 + On portable OpenSSH, fix a GSSAPI authentication abort that could be
3856 used to determine the validity of usernames on some platforms.
3857 + Implemented conditional configuration in sshd_config(5) using the
3858 "Match" directive. This allows some configuration options to be
3859 selectively overridden if specific criteria (based on user, group,
3860 hostname and/or address) are met. So far a useful subset of
3861 post-authentication options are supported and more are expected to
3862 be added in future releases.
3863 + Add support for Diffie-Hellman group exchange key agreement with a
3864 final hash of SHA256.
3865 + Added a "ForceCommand" directive to sshd_config(5). Similar to the
3866 command="..." option accepted in ~/.ssh/authorized_keys, this forces
3867 the execution of the specified command regardless of what the user
3868 requested. This is very useful in conjunction with the new "Match"
3869 option.
3870 + Add a "PermitOpen" directive to sshd_config(5). This mirrors the
3871 permitopen="..." authorized_keys option, allowing fine-grained
3872 control over the port-forwardings that a user is allowed to
3873 establish.
3874 + Add optional logging of transactions to sftp-server(8).
3875 + ssh(1) will now record port numbers for hosts stored in
3876 ~/.ssh/known_hosts when a non-standard port has been requested
3877 (closes: #50612).
3878 + Add an "ExitOnForwardFailure" option to cause ssh(1) to exit (with a
3879 non-zero exit code) when requested port forwardings could not be
3880 established.
3881 + Extend sshd_config(5) "SubSystem" declarations to allow the
3882 specification of command-line arguments.
3883 + Replacement of all integer overflow susceptible invocations of
3884 malloc(3) and realloc(3) with overflow-checking equivalents.
3885 + Many manpage fixes and improvements.
3886 + Add optional support for OpenSSL hardware accelerators (engines),
3887 enabled using the --with-ssl-engine configure option.
3888 + Tokens in configuration files may be double-quoted in order to
3889 contain spaces (closes: #319639).
3890 + Move a debug() call out of a SIGCHLD handler, fixing a hang when the
3891 session exits very quickly (closes: #307890).
3892 + Fix some incorrect buffer allocation calculations (closes: #410599).
3893 + ssh-add doesn't ask for a passphrase if key file permissions are too
3894 liberal (closes: #103677).
3895 + Likewise, ssh doesn't ask either (closes: #99675).
3896 - 4.6/4.6p1 (http://www.openssh.com/txt/release-4.6):
3897 + sshd now allows the enabling and disabling of authentication methods
3898 on a per user, group, host and network basis via the Match directive
3899 in sshd_config.
3900 + Fixed an inconsistent check for a terminal when displaying scp
3901 progress meter (closes: #257524).
3902 + Fix "hang on exit" when background processes are running at the time
3903 of exit on a ttyful/login session (closes: #88337).
3904 * Update to current GSSAPI patch from
3905 http://www.sxw.org.uk/computing/patches/openssh-4.6p1-gsskex-20070312.patch;
3906 install ChangeLog.gssapi.
3907 * Build the .deb --with-ssl-engine (closes: #408027, LP: #119295).
3908 * Use LSB functions in init scripts, and add an LSB-style header (partly
3909 from Ubuntu and partly thanks to Christian Perrier; closes: #389038).
3910 * Move init script start links to S16, move rc1 stop link to K84, and
3911 remove rc0 and rc6 stop links altogether (the last part from Ubuntu;
3912 closes: #122188).
3913 * Emit a slightly more informative message from the init script if
3914 /dev/null has somehow become not a character device (closes: #369964).
3915 * Belatedly build-depend on zlib1g-dev (>= 1:1.2.3-1) (closes: #333447).
3916 * Merge from Ubuntu:
3917 - Build position-independent executables (only for debs, not for udebs)
3918 to take advantage of address space layout randomisation.
3919 - If building on Ubuntu, add /sbin, /usr/sbin, and /usr/local/sbin to
3920 the default path.
3921 * Use ${binary:Version} rather than ${Source-Version} in openssh-server ->
3922 openssh-client dependency.
3923
3924 -- Colin Watson <cjwatson@debian.org> Wed, 13 Jun 2007 00:28:26 +0100
3925
3926openssh (1:4.3p2-11) unstable; urgency=low
3927
3928 * It's been four and a half years now since I took over as "temporary"
3929 maintainer, so the Maintainer field is getting a bit inaccurate. Set
3930 Maintainer to debian-ssh@lists.debian.org and leave Matthew and myself
3931 as Uploaders.
3932 * Use dpkg-query to fetch conffile md5sums rather than parsing
3933 /var/lib/dpkg/status directly.
3934 * openssh-client Suggests: libpam-ssh (closes: #427840).
3935 * Use 'start-stop-daemon --oknodo' so that openssh-server's init script
3936 exits successfully if sshd is already running (closes: #426858).
3937
3938 * Apply results of debconf templates and package descriptions review by
3939 debian-l10n-english (closes: #420107, #420742).
3940 * debconf template translations:
3941 - Update Dutch (thanks, Machteld de Kok; closes: #419260).
3942 - Update Norwegian Bokmål (thanks, Bjørn Steensrud; closes: #420630).
3943 - Update Galician (thanks, Jacobo Tarrio; closes: #420635).
3944 - Update Spanish (thanks, Javier Fernández-Sanguino Peña;
3945 closes: #420651).
3946 - Update Swedish (thanks, Daniel Nylander; closes: #420663).
3947 - Add Bulgarian (thanks, Damyan Ivanov; closes: #420703).
3948 - Add Tamil (thanks, Tirumurti Vasudevan; closes: #420739).
3949 - Update German (thanks, Helge Kreutzmann; closes: #420743).
3950 - Update Japanese (thanks, Kenshi Muto; closes: #420946).
3951 - Add Basque (thanks, Piarres Beobide; closes: #421238).
3952 - Update Italian (thanks, Luca Monducci; closes: #421348).
3953 - Update Czech (thanks, Miroslav Kure; closes: #421484).
3954 - Update Romanian (thanks, Igor Stirbu; closes: #421760).
3955 - Update Russian (thanks, Yuriy Talakan' and Sergey Alyoshin;
3956 closes: #420862).
3957 - Update Dutch (thanks, Bart Cornelis; closes: #422767).
3958 - Update Portuguese (thanks, Ricardo Silva; closes: #423112).
3959 - Update French (thanks, Christian Perrier).
3960 - Add Korean (thanks, Sunjae Park; closes: #424008).
3961 - Update Vietnamese (thanks, Clytie Siddall; closes: #426991).
3962
3963 -- Colin Watson <cjwatson@debian.org> Sun, 10 Jun 2007 08:59:42 +0100
3964
3965openssh (1:4.3p2-10) unstable; urgency=low
3966
3967 * Multiply openssh-client-udeb's Installer-Menu-Item by 100.
3968 * Increase MAX_SESSIONS to 64.
3969
3970 -- Colin Watson <cjwatson@debian.org> Tue, 10 Apr 2007 19:17:20 +0100
3971
3972openssh (1:4.3p2-9) unstable; urgency=high
3973
3974 [ Russ Allbery ]
3975 * Fix GSSAPIKeyExchange configuration file handling logic in ssh-krb5
3976 (closes: #404863).
3977 * Fix uncommenting of GSSAPI options by ssh-krb5 (closes: #407766).
3978
3979 [ Colin Watson ]
3980 * debconf template translations:
3981 - Add Norwegian Bokmål (thanks, Bjørn Steensrud; closes: #412330).
3982
3983 -- Colin Watson <cjwatson@debian.org> Mon, 5 Mar 2007 16:13:50 +0000
3984
3985openssh (1:4.3p2-8) unstable; urgency=medium
3986
3987 [ Vincent Untz ]
3988 * Give the ssh-askpass-gnome window a default icon; remove unnecessary
3989 icon extension from .desktop file (closes:
3990 https://launchpad.net/bugs/27152).
3991
3992 [ Colin Watson ]
3993 * Drop versioning on ssh/ssh-krb5 Replaces, as otherwise it isn't
3994 sufficient to replace conffiles (closes: #402804).
3995 * Make GSSAPICleanupCreds a compatibility alias for
3996 GSSAPICleanupCredentials. Mark GSSUseSessionCCache and
3997 GSSAPIUseSessionCredCache as known-but-unsupported options, and migrate
3998 away from them on upgrade.
3999 * It turns out that the people who told me that removing a conffile in the
4000 preinst was sufficient to have dpkg replace it without prompting when
4001 moving a conffile between packages were very much mistaken. As far as I
4002 can tell, the only way to do this reliably is to write out the desired
4003 new text of the conffile in the preinst. This is gross, and requires
4004 shipping the text of all conffiles in the preinst too, but there's
4005 nothing for it. Fortunately this nonsense is only required for smooth
4006 upgrades from sarge.
4007 * debconf template translations:
4008 - Add Romanian (thanks, Stan Ioan-Eugen; closes: #403528).
4009
4010 -- Colin Watson <cjwatson@debian.org> Sat, 23 Dec 2006 18:38:33 +0000
4011
4012openssh (1:4.3p2-7) unstable; urgency=medium
4013
4014 [ Colin Watson ]
4015 * Ignore errors from usermod when changing sshd's shell, since it will
4016 fail if the sshd user is not local (closes: #398436).
4017 * Remove version control tags from /etc/ssh/moduli and /etc/ssh/ssh_config
4018 to avoid unnecessary conffile resolution steps for administrators
4019 (thanks, Jari Aalto; closes: #335259).
4020 * Fix quoting error in configure.ac and regenerate configure (thanks, Ben
4021 Pfaff; closes: #391248).
4022 * When installing openssh-client or openssh-server from scratch, remove
4023 any unchanged conffiles from the pre-split ssh package to work around a
4024 bug in sarge's dpkg (thanks, Justin Pryzby and others; closes: #335276).
4025
4026 [ Russ Allbery ]
4027 * Create transitional ssh-krb5 package which enables GSSAPI configuration
4028 in sshd_config (closes: #390986).
4029 * Default client to attempting GSSAPI authentication.
4030 * Remove obsolete GSSAPINoMICAuthentication from sshd_config if it's
4031 found.
4032 * Add ssh -K option, the converse of -k, to enable GSSAPI credential
4033 delegation (closes: #401483).
4034
4035 -- Colin Watson <cjwatson@debian.org> Wed, 6 Dec 2006 23:00:49 +0000
4036
4037openssh (1:4.3p2-6) unstable; urgency=low
4038
4039 * Acknowledge NMU (thanks, Manoj; closes: #394795).
4040 * Backport from 4.5p1:
4041 - Fix a bug in the sshd privilege separation monitor that weakened its
4042 verification of successful authentication. This bug is not known to be
4043 exploitable in the absence of additional vulnerabilities.
4044 * openssh-server Suggests: molly-guard (closes: #395473).
4045 * debconf template translations:
4046 - Update German (thanks, Helge Kreutzmann; closes: #395947).
4047
4048 -- Colin Watson <cjwatson@debian.org> Wed, 15 Nov 2006 00:07:32 +0000
4049
4050openssh (1:4.3p2-5.1) unstable; urgency=low
4051
4052 * NMU to update SELinux patch, bringing it in line with current selinux
4053 releases. The patch for this NMU is simply the Bug#394795 patch,
4054 and no other changes. (closes: #394795)
4055
4056 -- Manoj Srivastava <srivasta@debian.org> Mon, 23 Oct 2006 14:11:24 -0500
4057
4058openssh (1:4.3p2-5) unstable; urgency=low
4059
4060 * Remove ssh/insecure_telnetd check altogether (closes: #391081).
4061 * debconf template translations:
4062 - Update Danish (thanks, Claus Hindsgaul; closes: #390612).
4063
4064 -- Colin Watson <cjwatson@debian.org> Thu, 5 Oct 2006 09:04:19 +0100
4065
4066openssh (1:4.3p2-4) unstable; urgency=high
4067
4068 * Backport from 4.4p1 (since I don't have an updated version of the GSSAPI
4069 patch yet):
4070 - CVE-2006-4924: Fix a pre-authentication denial of service found by
4071 Tavis Ormandy, that would cause sshd(8) to spin until the login grace
4072 time expired (closes: #389995).
4073 - CVE-2006-5051: Fix an unsafe signal hander reported by Mark Dowd. The
4074 signal handler was vulnerable to a race condition that could be
4075 exploited to perform a pre-authentication denial of service. On
4076 portable OpenSSH, this vulnerability could theoretically lead to
4077 pre-authentication remote code execution if GSSAPI authentication is
4078 enabled, but the likelihood of successful exploitation appears remote.
4079
4080 * Read /etc/default/locale as well as /etc/environment (thanks, Raphaël
4081 Hertzog; closes: #369395).
4082 * Remove no-longer-used ssh/insecure_rshd debconf template.
4083 * Make ssh/insecure_telnetd Type: error (closes: #388946).
4084
4085 * debconf template translations:
4086 - Update Portuguese (thanks, Rui Branco; closes: #381942).
4087 - Update Spanish (thanks, Javier Fernández-Sanguino Peña;
4088 closes: #382966).
4089
4090 -- Colin Watson <cjwatson@debian.org> Fri, 29 Sep 2006 16:28:24 +0100
4091
4092openssh (1:4.3p2-3) unstable; urgency=low
4093
4094 * Document KeepAlive->TCPKeepAlive renaming in sshd_config(5) (closes:
4095 https://launchpad.net/bugs/50702).
4096 * Change sshd user's shell to /usr/sbin/nologin (closes: #366541).
4097 Introduces dependency on passwd for usermod.
4098 * debconf template translations:
4099 - Update French (thanks, Denis Barbier; closes: #368503).
4100 - Update Dutch (thanks, Bart Cornelis; closes: #375100).
4101 - Update Japanese (thanks, Kenshi Muto; closes: #379950).
4102
4103 -- Colin Watson <cjwatson@debian.org> Thu, 27 Jul 2006 00:12:36 +0100
4104
4105openssh (1:4.3p2-2) unstable; urgency=low
4106
4107 * Include commented-out pam_access example in /etc/pam.d/ssh.
4108 * On '/etc/init.d/ssh restart', create /var/run/sshd before checking the
4109 server configuration, as otherwise 'sshd -t' will complain about the
4110 lack of /var/run/sshd (closes: https://launchpad.net/bugs/45234).
4111 * debconf template translations:
4112 - Update Russian (thanks, Yuriy Talakan'; closes: #367143).
4113 - Update Czech (thanks, Miroslav Kure; closes: #367161).
4114 - Update Italian (thanks, Luca Monducci; closes: #367186).
4115 - Update Galician (thanks, Jacobo Tarrio; closes: #367318).
4116 - Update Swedish (thanks, Daniel Nylander; closes: #367971).
4117
4118 -- Colin Watson <cjwatson@debian.org> Fri, 19 May 2006 09:14:27 +0100
4119
4120openssh (1:4.3p2-1) unstable; urgency=low
4121
4122 * New upstream release (closes: #361032).
4123 - CVE-2006-0225: scp (as does rcp, on which it is based) invoked a
4124 subshell to perform local to local, and remote to remote copy
4125 operations. This subshell exposed filenames to shell expansion twice;
4126 allowing a local attacker to create filenames containing shell
4127 metacharacters that, if matched by a wildcard, could lead to execution
4128 of attacker-specified commands with the privilege of the user running
4129 scp (closes: #349645).
4130 - Add support for tunneling arbitrary network packets over a connection
4131 between an OpenSSH client and server via tun(4) virtual network
4132 interfaces. This allows the use of OpenSSH (4.3+) to create a true VPN
4133 between the client and server providing real network connectivity at
4134 layer 2 or 3. This feature is experimental.
4135 - Reduce default key length for new DSA keys generated by ssh-keygen
4136 back to 1024 bits. DSA is not specified for longer lengths and does
4137 not fully benefit from simply making keys longer. As per FIPS 186-2
4138 Change Notice 1, ssh-keygen will refuse to generate a new DSA key
4139 smaller or larger than 1024 bits.
4140 - Fixed X forwarding failing to start when the X11 client is executed in
4141 background at the time of session exit.
4142 - Change ssh-keygen to generate a protocol 2 RSA key when invoked
4143 without arguments (closes: #114894).
4144 - Fix timing variance for valid vs. invalid accounts when attempting
4145 Kerberos authentication.
4146 - Ensure that ssh always returns code 255 on internal error
4147 (closes: #259865).
4148 - Cleanup wtmp files on SIGTERM when not using privsep.
4149 - Set SO_REUSEADDR on X11 listeners to avoid problems caused by
4150 lingering sockets from previous session (X11 applications can
4151 sometimes not connect to 127.0.0.1:60xx) (closes:
4152 https://launchpad.net/bugs/25528).
4153 - Ensure that fds 0, 1 and 2 are always attached in all programs, by
4154 duping /dev/null to them if necessary.
4155 - Xauth list invocation had bogus "." argument.
4156 - Remove internal assumptions on key exchange hash algorithm and output
4157 length, preparing OpenSSH for KEX methods with alternate hashes.
4158 - Ignore junk sent by a server before it sends the "SSH-" banner.
4159 - Many manual page improvements.
4160 - Lots of cleanups, including fixes to memory leaks on error paths and
4161 possible crashes.
4162 * Update to current GSSAPI patch from
4163 http://www.sxw.org.uk/computing/patches/openssh-4.3p2-gsskex-20060223.patch
4164 (closes: #352042).
4165 * debian/rules: Resynchronise CFLAGS with that generated by configure.
4166 * Restore pam_nologin to /etc/pam.d/ssh; sshd no longer checks this itself
4167 when PAM is enabled, but relies on PAM to do it.
4168 * Rename KeepAlive to TCPKeepAlive in default sshd_config
4169 (closes: #349896).
4170 * Rephrase ssh/new_config and ssh/encrypted_host_key_but_no_keygen debconf
4171 templates to make boolean short descriptions end with a question mark
4172 and to avoid use of the first person.
4173 * Ship README.tun.
4174 * Policy version 3.7.2: no changes required.
4175 * debconf template translations:
4176 - Update Italian (thanks, Luca Monducci; closes: #360348).
4177 - Add Galician (thanks, Jacobo Tarrio; closes: #361220).
4178
4179 -- Colin Watson <cjwatson@debian.org> Fri, 12 May 2006 12:48:24 +0100
4180
4181openssh (1:4.2p1-8) unstable; urgency=low
4182
4183 [ Frans Pop ]
4184 * Use udeb support introduced in debhelper 4.2.0 (available in sarge)
4185 rather than constructing udebs by steam.
4186 * Require debhelper 5.0.22, which generates correct shared library
4187 dependencies for udebs (closes: #360068). This build-dependency can be
4188 ignored if building on sarge.
4189
4190 [ Colin Watson ]
4191 * Switch to debhelper compatibility level 4, since we now require
4192 debhelper 4 even on sarge anyway for udeb support.
4193
4194 -- Colin Watson <cjwatson@debian.org> Fri, 31 Mar 2006 09:44:55 +0100
4195
4196openssh (1:4.2p1-7) unstable; urgency=low
4197
4198 * I accidentally applied the default $PATH change in 1:4.2p1-6 to the udeb
4199 rather than the deb. Fixed.
4200
4201 -- Colin Watson <cjwatson@debian.org> Wed, 1 Mar 2006 16:19:00 +0000
4202
4203openssh (1:4.2p1-6) unstable; urgency=low
4204
4205 * Sync default values of $PATH from shadow 1:4.0.12-6, adding /usr/bin/X11
4206 to the normal and superuser paths and /usr/games to the normal path.
4207 * When the client receives a signal, don't fatal() with "Killed by signal
4208 %d." (which produces unhelpful noise on stderr and causes confusion for
4209 users of some applications that wrap ssh); instead, generate a debug
4210 message and exit with the traditional status (closes: #313371).
4211 * debconf template translations:
4212 - Add Swedish (thanks, Daniel Nylander; closes: #333133).
4213 - Update Spanish (thanks, Javier Fernández-Sanguino Peña;
4214 closes: #341371).
4215 - Correct erroneously-changed Last-Translator headers in Greek and
4216 Spanish translations.
4217
4218 -- Colin Watson <cjwatson@debian.org> Mon, 20 Feb 2006 16:50:55 +0000
4219
4220openssh (1:4.2p1-5) unstable; urgency=low
4221
4222 * Add a CVE name to the 1:4.0p1-1 changelog entry.
4223 * Build-depend on libselinux1-dev on armeb.
4224 * Only send GSSAPI proposal if GSSAPIAuthentication is enabled.
4225 * Build-depend on libssl-dev (>= 0.9.8-1) to cope with surprise OpenSSL
4226 transition, since otherwise who knows what the buildds will do. If
4227 you're building openssh yourself, you can safely ignore this and use an
4228 older libssl-dev.
4229
4230 -- Colin Watson <cjwatson@debian.org> Fri, 7 Oct 2005 12:23:42 +0100
4231
4232openssh (1:4.2p1-4) unstable; urgency=low
4233
4234 * Initialise token to GSS_C_EMPTY_BUFFER in ssh_gssapi_check_mechanism
4235 (closes: #328606).
4236
4237 -- Colin Watson <cjwatson@debian.org> Fri, 16 Sep 2005 12:50:16 +0100
4238
4239openssh (1:4.2p1-3) unstable; urgency=low
4240
4241 * Add prototype for ssh_gssapi_server_mechanisms (closes: #328372).
4242 * Interoperate with ssh-krb5 << 3.8.1p1-1 servers, which used a slightly
4243 different version of the gssapi authentication method (thanks, Aaron M.
4244 Ucko; closes: #328388).
4245 * Explicitly tell po2debconf to use the 'popular' output encoding, so that
4246 the woody-compatibility hack works even with po-debconf 0.9.0.
4247
4248 -- Colin Watson <cjwatson@debian.org> Thu, 15 Sep 2005 09:28:21 +0100
4249
4250openssh (1:4.2p1-2) unstable; urgency=low
4251
4252 * Annotate 1:4.2p1-1 changelog with CVE references.
4253 * Add remaining pieces of Kerberos support (closes: #152657, #275472):
4254 - Add GSSAPI key exchange support from
4255 http://www.sxw.org.uk/computing/patches/openssh.html (thanks, Stephen
4256 Frost).
4257 - Build-depend on libkrb5-dev and configure --with-kerberos5=/usr.
4258 - openssh-client and openssh-server replace ssh-krb5.
4259 - Update commented-out Kerberos/GSSAPI options in default sshd_config.
4260 - Fix HAVE_GSSAPI_KRB5_H/HAVE_GSSAPI_GSSAPI_KRB5_H typos in
4261 gss-serv-krb5.c.
4262
4263 -- Colin Watson <cjwatson@debian.org> Wed, 14 Sep 2005 18:28:49 +0100
4264
4265openssh (1:4.2p1-1) unstable; urgency=low
4266
4267 * New upstream release.
4268 - SECURITY (CAN-2005-2797): Fix a bug introduced in OpenSSH 4.0 that
4269 caused GatewayPorts to be incorrectly activated for dynamic ("-D")
4270 port forwardings when no listen address was explicitly specified
4271 (closes: #326065).
4272 - SECURITY (CAN-2005-2798): Fix improper delegation of GSSAPI
4273 credentials. This code is only built in openssh-krb5, not openssh, but
4274 I mention the CVE reference here anyway for completeness.
4275 - Add a new compression method ("Compression delayed") that delays zlib
4276 compression until after authentication, eliminating the risk of zlib
4277 vulnerabilities being exploited by unauthenticated users. Note that
4278 users of OpenSSH versions earlier than 3.5 will need to disable
4279 compression on the client or set "Compression yes" (losing this
4280 security benefit) on the server.
4281 - Increase the default size of new RSA/DSA keys generated by ssh-keygen
4282 from 1024 to 2048 bits (closes: #181162).
4283 - Many bugfixes and improvements to connection multiplexing.
4284 - Don't pretend to accept $HOME (closes: #208648).
4285 * debian/rules: Resynchronise CFLAGS with that generated by configure.
4286 * openssh-client and openssh-server conflict with pre-split ssh to avoid
4287 problems when ssh is left un-upgraded (closes: #324695).
4288 * Set X11Forwarding to yes in the default sshd_config (new installs only).
4289 At least when X11UseLocalhost is turned on, which is the default, the
4290 security risks of using X11 forwarding are risks to the client, not to
4291 the server (closes: #320104).
4292
4293 -- Colin Watson <cjwatson@debian.org> Wed, 14 Sep 2005 15:16:14 +0100
4294
4295openssh (1:4.1p1-7) unstable; urgency=low
4296
4297 * Do the IDEA host key check on a temporary file to avoid altering
4298 /etc/ssh/ssh_host_key itself (closes: #312312).
4299 * Work around the ssh-askpass alternative somehow ending up in manual mode
4300 pointing to the obsolete /usr/lib/ssh/gnome-ssh-askpass.
4301 * Add GNU/kFreeBSD support (thanks, Aurelien Jarno; closes: #318113).
4302 * Fix XSIish uses of 'test' in openssh-server.preinst.
4303 * Policy version 3.6.2: no changes required.
4304
4305 -- Colin Watson <cjwatson@debian.org> Fri, 2 Sep 2005 16:18:11 +0100
4306
4307openssh (1:4.1p1-6) unstable; urgency=low
4308
4309 * Fix one-character typo that meant the binaries in openssh-client and
4310 openssh-server got recompiled with the wrong options during
4311 'debian/rules install' (closes: #317088, #317238, #317241).
4312
4313 -- Colin Watson <cjwatson@debian.org> Thu, 7 Jul 2005 10:56:16 +0100
4314
4315openssh (1:4.1p1-5) unstable; urgency=low
4316
4317 * Build-depend on libselinux1-dev on ppc64 too (closes: #314625).
4318 * Drop priority of ssh to extra to match the override file.
4319 * Make /usr/share/doc/openssh-server and /usr/share/doc/ssh symlinks to
4320 /usr/share/doc/openssh-client (closes: #314745).
4321 * Ship README.dns (closes: #284874).
4322 * Disable btmp logging, since Debian's /var/log/btmp has inappropriate
4323 permissions (closes: #314956).
4324 * Allow ~/.ssh/config to be group-writable, provided that the group in
4325 question contains only the file's owner (closes: #314347).
4326 * debconf template translations:
4327 - Update Brazilian Portuguese (thanks, André Luís Lopes;
4328 closes: #315477).
4329 - Add Vietnamese (thanks, Clytie Siddall; closes: #316636).
4330
4331 -- Colin Watson <cjwatson@debian.org> Sun, 3 Jul 2005 17:08:08 +0100
4332
4333openssh (1:4.1p1-4) unstable; urgency=low
4334
4335 * openssh-client and openssh-server conflict with ssh-krb5, as ssh-krb5
4336 only conflicts with ssh (closes: #312475).
4337 * SELinux support (thanks, Manoj Srivastava; closes: #308555):
4338 - Added SELinux capability, and turned it on be default. Added
4339 restorecon calls in preinst and postinst (should not matter if the
4340 machine is not SELinux aware). By and large, the changes made should
4341 have no effect unless the rules file calls --with-selinux; and even
4342 then there should be no performance hit for machines not actively
4343 running SELinux.
4344 - Modified the preinst and postinst to call restorecon to set the
4345 security context for the generated public key files.
4346 - Added a comment to /etc/pam.d/ssh to indicate that an SELinux system
4347 may want to also include pam_selinux.so.
4348 * Re-enable ssh-askpass-gnome on the Hurd, now that its build-dependencies
4349 are available.
4350 * Restore /usr/lib/sftp-server temporarily, as a symlink to
4351 /usr/lib/openssh/sftp-server (closes: #312891).
4352 * Switch to debhelper compatibility level 3, since 2 is deprecated.
4353 * debconf template translations:
4354 - Update German (thanks, Jens Seidel; closes: #313949).
4355
4356 -- Colin Watson <cjwatson@debian.org> Fri, 17 Jun 2005 14:20:20 +0100
4357
4358openssh (1:4.1p1-3) unstable; urgency=low
4359
4360 * Upload to unstable.
4361
4362 -- Colin Watson <cjwatson@debian.org> Mon, 6 Jun 2005 22:28:33 +0100
4363
4364openssh (1:4.1p1-2) experimental; urgency=low
4365
4366 * Drop debconf support for allowing SSH protocol 1, which is discouraged
4367 and has not been the default since openssh 1:3.0.1p1-1. Users who need
4368 this should edit sshd_config instead (closes: #147212).
4369 * Since ssh-keysign isn't used by default (you need to set
4370 EnableSSHKeysign to "yes" in /etc/ssh/ssh_config), having a debconf
4371 question to ask whether it should be setuid is overkill, and the
4372 question text had got out of date anyway. Remove this question, ship
4373 ssh-keysign setuid in openssh-client.deb, and set a statoverride if the
4374 debconf question was previously set to false.
4375 * Add lintian overrides for the above (setuid-binary,
4376 no-debconf-templates).
4377 * Fix picky lintian errors about slogin symlinks.
4378 * Fix DEB_HOST_ARCH_OS/DEB_HOST_GNU_SYSTEM compatibility handling.
4379 * Apply Linux 2.2 workaround (see #239999) only on Linux.
4380
4381 -- Colin Watson <cjwatson@debian.org> Thu, 2 Jun 2005 00:55:58 +0100
4382
4383openssh (1:4.1p1-1) experimental; urgency=low
4384
4385 * New upstream release.
4386 - Normalise socket addresses returned by get_remote_hostname(), fixing
4387 4-in-6 mapping issues with AllowUsers et al (closes: #192234).
4388 * Take upstream's hint and disable the unsupported USE_POSIX_THREADS
4389 (closes: #295757, #308868, and possibly others; may open other bugs).
4390 Use PAM password authentication to avoid #278394. In future I may
4391 provide two sets of binaries built with and without this option, since
4392 it seems I can't win.
4393 * Disable ChallengeResponseAuthentication in new installations, returning
4394 to PasswordAuthentication by default, since it now supports PAM and
4395 apparently works better with a non-threaded sshd (closes: #247521).
4396 * openssh-server Suggests: rssh (closes: #233012).
4397 * Change libexecdir to /usr/lib/openssh, and fix up various alternatives
4398 and configuration files to match (closes: #87900, #151321).
4399 * Fix up very old sshd_config files that refer to /usr/libexec/sftp-server
4400 (closes: #141979).
4401
4402 -- Colin Watson <cjwatson@debian.org> Tue, 31 May 2005 01:33:33 +0100
4403
4404openssh (1:4.0p1-1) experimental; urgency=low
4405
4406 * New upstream release.
4407 - Port-forwarding specifications now take optional bind addresses, and
4408 the server allows client-specified bind addresses for remote port
4409 forwardings when configured with "GatewayPorts clientspecified"
4410 (closes: #87253, #192206).
4411 - ssh and ssh-keyscan now support hashing of known_hosts files for
4412 improved privacy (CAN-2005-2666). ssh-keygen has new options for
4413 managing known_hosts files, which understand hashing.
4414 - sftp supports command history and editing support using libedit
4415 (closes: #287013).
4416 - Have scp and sftp wait for the spawned ssh to exit before they exit
4417 themselves, allowing ssh to restore terminal modes (closes: #257130).
4418 - Improved the handling of bad data in authorized_keys files,
4419 eliminating fatal errors on corrupt or very large keys; e.g. linefeeds
4420 in keys only produce errors in auth.log now (closes: #220726).
4421 - Add "command mode" to ssh connection multiplexing (closes: #303452).
4422 - Mention $HOME/.hushlogin in sshd(8) FILES section (closes: #163933).
4423 * Make gnome-ssh-askpass stay above other windows (thanks, Liyang HU;
4424 closes: #296487).
4425 * Remove obsolete and unnecessary ssh/forward_warning debconf note.
4426 * Hurd build fixes (although sshd still doesn't work):
4427 - Restore X forwarding fix from #102991, lost somewhere along the way.
4428 - Link with -lcrypt.
4429 - Link with -lpthread rather than -pthread.
4430 - Don't build ssh-askpass-gnome on the Hurd, until GNOME is available to
4431 satisfy build-dependencies.
4432 * Drop workaround for #242462 on amd64; it's been fixed properly upstream.
4433 * Enable HashKnownHosts by default. This only affects new entries; use
4434 'ssh-keygen -H' to convert an entire known_hosts file to hashed format.
4435 * Note in ssh_config(5) that the SetupTimeOut option is Debian-specific
4436 (closes: #307069).
4437 * debconf template translations:
4438 - Update Czech (thanks, Miroslav Kure; closes: #298744).
4439 - Update Finnish (thanks, Matti Pöllä; closes: #303787).
4440 - Synchronise Spanish with sarge branch (thanks, Javier
4441 Fernández-Sanguino Peña; closes: #298536).
4442 - Add Ukrainian (thanks, Eugeniy Meshcheryakov; closes: #301852).
4443
4444 -- Colin Watson <cjwatson@debian.org> Thu, 26 May 2005 11:23:18 +0100
4445
4446openssh (1:3.9p1-3) experimental; urgency=low
4447
4448 * Explain how to run sshd from inittab in README.Debian (closes: #147360).
4449 * Add debian/watch file.
4450
4451 -- Colin Watson <cjwatson@debian.org> Fri, 18 Feb 2005 00:20:16 +0000
4452
4453openssh (1:3.9p1-2) experimental; urgency=low
4454
4455 * Remove pam_nologin from /etc/pam.d/ssh, as sshd's built-in support
4456 appears to be sufficient and more useful (closes: #162996).
4457 * Depend on debconf | debconf-2.0.
4458 * Drop LoginGraceTime back to the upstream default of two minutes on new
4459 installs (closes: #289573).
4460 * debconf template translations from Ubuntu bug #1232:
4461 - Update Greek (thanks, Logiotatidis George).
4462 - Update Spanish (thanks, Santiago Erquicia).
4463
4464 -- Colin Watson <cjwatson@debian.org> Sat, 15 Jan 2005 12:37:54 +0000
4465
4466openssh (1:3.9p1-1) experimental; urgency=low
4467
4468 * New upstream release.
4469 - PAM password authentication implemented again (closes: #238699,
4470 #242119).
4471 - Implemented the ability to pass selected environment variables between
4472 the client and the server.
4473 - Fix ssh-keyscan breakage when remote server doesn't speak SSH protocol
4474 (closes: #228828).
4475 - Fix res_query detection (closes: #242462).
4476 - 'ssh -c' documentation improved (closes: #265627).
4477 * Pass LANG and LC_* environment variables from the client by default, and
4478 accept them to the server by default in new installs, although not on
4479 upgrade (closes: #264024).
4480 * Build ssh in binary-indep, not binary-arch (thanks, LaMont Jones).
4481 * Expand on openssh-client package description (closes: #273831).
4482
4483 -- Colin Watson <cjwatson@debian.org> Tue, 4 Jan 2005 14:18:31 +0000
4484
4485openssh (1:3.8.1p1-14) experimental; urgency=low
4486
4487 * We use DH_COMPAT=2, so build-depend on debhelper (>= 2).
4488 * Fix timing information leak allowing discovery of invalid usernames in
4489 PAM keyboard-interactive authentication (backported from a patch by
4490 Darren Tucker; closes: #281595).
4491 * Make sure that there's a delay in PAM keyboard-interactive
4492 authentication when PermitRootLogin is not set to yes and the correct
4493 root password is entered (closes: #248747).
4494
4495 -- Colin Watson <cjwatson@debian.org> Sun, 28 Nov 2004 18:09:37 +0000
4496
4497openssh (1:3.8.1p1-13) experimental; urgency=low
4498
4499 * Enable threading for PAM, on Sam Hartman's advice (closes: #278394).
4500 * debconf template translations:
4501 - Update Dutch (thanks, cobaco; closes: #278715).
4502 * Correct README.Debian's ForwardX11Trusted description (closes: #280190).
4503
4504 -- Colin Watson <cjwatson@debian.org> Fri, 12 Nov 2004 12:03:13 +0000
4505
4506openssh (1:3.8.1p1-12) experimental; urgency=low
4507
4508 * Preserve /etc/ssh/sshd_config ownership/permissions (closes: #276754).
4509 * Shorten the version string from the form "OpenSSH_3.8.1p1 Debian
4510 1:3.8.1p1-8.sarge.1" to "OpenSSH_3.8.1p1 Debian-8.sarge.1", as some SSH
4511 implementations apparently have problems with the long version string.
4512 This is of course a bug in those implementations, but since the extent
4513 of the problem is unknown it's best to play safe (closes: #275731).
4514 * debconf template translations:
4515 - Add Finnish (thanks, Matti Pöllä; closes: #265339).
4516 - Update Danish (thanks, Morten Brix Pedersen; closes: #275895).
4517 - Update French (thanks, Denis Barbier; closes: #276703).
4518 - Update Japanese (thanks, Kenshi Muto; closes: #277438).
4519
4520 -- Colin Watson <cjwatson@debian.org> Sun, 24 Oct 2004 19:21:17 +0100
4521
4522openssh (1:3.8.1p1-11) experimental; urgency=high
4523
4524 * Move sshd_config(5) to openssh-server, where it belongs.
4525 * If PasswordAuthentication is disabled, then offer to disable
4526 ChallengeResponseAuthentication too. The current PAM code will attempt
4527 password-style authentication if ChallengeResponseAuthentication is
4528 enabled (closes: #250369).
4529 * This will ask a question of anyone who installed fresh with 1:3.8p1-2 or
4530 later and then upgraded. Sorry about that ... for this reason, the
4531 default answer is to leave ChallengeResponseAuthentication enabled.
4532
4533 -- Colin Watson <cjwatson@debian.org> Wed, 6 Oct 2004 14:28:20 +0100
4534
4535openssh (1:3.8.1p1-10) experimental; urgency=low
4536
4537 * Don't install the ssh-askpass-gnome .desktop file by default; I've had
4538 too many GNOME people tell me it's the wrong thing to be doing. I've
4539 left it in /usr/share/doc/ssh-askpass-gnome/examples/ for now.
4540
4541 -- Colin Watson <cjwatson@debian.org> Wed, 25 Aug 2004 18:18:14 +0100
4542
4543openssh (1:3.8.1p1-9) experimental; urgency=low
4544
4545 * Split the ssh binary package into openssh-client and openssh-server
4546 (closes: #39741). openssh-server depends on openssh-client for some
4547 common functionality; it didn't seem worth creating yet another package
4548 for this. openssh-client is priority standard, openssh-server optional.
4549 * New transitional ssh package, priority optional, depending on
4550 openssh-client and openssh-server. May be removed once nothing depends
4551 on it.
4552 * When upgrading from ssh to openssh-{client,server}, it's very difficult
4553 for the maintainer scripts to find out what version we're upgrading from
4554 without dodgy dpkg hackery. I've therefore taken the opportunity to move
4555 a couple of debconf notes into NEWS files, namely ssh/ssh2_keys_merged
4556 and ssh/user_environment_tell.
4557 * Add a heuristic to try to make sure the sshd_config upgrade to >= 3.7
4558 happens even though we don't know what version we're upgrading from.
4559 * Remove /etc/ssh/sshd_not_to_be_run on purge of openssh-server. For now
4560 (until sarge+2) it's still honoured to avoid breaking existing
4561 configurations, but the right approach is now to remove the
4562 openssh-server package if you don't want to run the server. Add a NEWS
4563 item to that effect.
4564
4565 -- Colin Watson <cjwatson@debian.org> Mon, 2 Aug 2004 20:48:54 +0100
4566
4567openssh (1:3.8.1p1-8.sarge.4) unstable; urgency=high
4568
4569 * Fix timing information leak allowing discovery of invalid usernames in
4570 PAM keyboard-interactive authentication (backported from a patch by
4571 Darren Tucker; closes: #281595).
4572 * Make sure that there's a delay in PAM keyboard-interactive
4573 authentication when PermitRootLogin is not set to yes and the correct
4574 root password is entered (closes: #248747).
4575
4576 -- Colin Watson <cjwatson@debian.org> Sun, 28 Nov 2004 12:37:16 +0000
4577
4578openssh (1:3.8.1p1-8.sarge.3) unstable; urgency=low
4579
4580 * Enable threading for PAM, on Sam Hartman's advice (closes: #278394).
4581 * debconf template translations:
4582 - Update Dutch (thanks, cobaco; closes: #278715).
4583 * Correct README.Debian's ForwardX11Trusted description (closes: #280190).
4584
4585 -- Colin Watson <cjwatson@debian.org> Fri, 12 Nov 2004 10:31:12 +0000
4586
4587openssh (1:3.8.1p1-8.sarge.2) unstable; urgency=low
4588
4589 * Preserve /etc/ssh/sshd_config ownership/permissions (closes: #276754).
4590 * Shorten the version string from the form "OpenSSH_3.8.1p1 Debian
4591 1:3.8.1p1-8.sarge.1" to "OpenSSH_3.8.1p1 Debian-8.sarge.1", as some SSH
4592 implementations apparently have problems with the long version string.
4593 This is of course a bug in those implementations, but since the extent
4594 of the problem is unknown it's best to play safe (closes: #275731).
4595 * debconf template translations:
4596 - Add Finnish (thanks, Matti Pöllä; closes: #265339).
4597 - Update Danish (thanks, Morten Brix Pedersen; closes: #275895).
4598 - Update French (thanks, Denis Barbier; closes: #276703).
4599 - Update Japanese (thanks, Kenshi Muto; closes: #277438).
4600
4601 -- Colin Watson <cjwatson@debian.org> Sun, 24 Oct 2004 17:57:14 +0100
4602
4603openssh (1:3.8.1p1-8.sarge.1) unstable; urgency=high
4604
4605 * If PasswordAuthentication is disabled, then offer to disable
4606 ChallengeResponseAuthentication too. The current PAM code will attempt
4607 password-style authentication if ChallengeResponseAuthentication is
4608 enabled (closes: #250369).
4609 * This will ask a question of anyone who installed fresh with 1:3.8p1-2 or
4610 later and then upgraded. Sorry about that ... for this reason, the
4611 default answer is to leave ChallengeResponseAuthentication enabled.
4612
4613 -- Colin Watson <cjwatson@debian.org> Wed, 6 Oct 2004 14:21:55 +0100
4614
4615openssh (1:3.8.1p1-8) unstable; urgency=high
4616
4617 * Matthew Vernon:
4618 - Add a GPL exception to the licensing terms of the Debian patch
4619 (closes: #211644).
4620
4621 -- Colin Watson <cjwatson@debian.org> Thu, 29 Jul 2004 13:28:47 +0100
4622
4623openssh (1:3.8.1p1-7) unstable; urgency=low
4624
4625 * Re-enable shadow password support in openssh-server-udeb, at Bastian
4626 Blank's request (closes: #260800).
4627
4628 -- Colin Watson <cjwatson@debian.org> Thu, 22 Jul 2004 10:56:06 +0100
4629
4630openssh (1:3.8.1p1-6) unstable; urgency=low
4631
4632 * Implement hack in
4633 http://lists.debian.org/debian-boot/2004/07/msg01207.html to get
4634 openssh-client-udeb to show up as a retrievable debian-installer
4635 component.
4636 * Generate host keys in postinst only if the relevant HostKey directives
4637 are found in sshd_config (closes: #87946).
4638
4639 -- Colin Watson <cjwatson@debian.org> Wed, 21 Jul 2004 15:14:46 +0100
4640
4641openssh (1:3.8.1p1-5) unstable; urgency=medium
4642
4643 * Update German debconf template translation (thanks, Helge Kreutzmann;
4644 closes: #252226).
4645 * Remove Suggests: dnsutils, as it was only needed for
4646 make-ssh-known-hosts (#93265), which has been replaced by ssh-keyscan.
4647 * Disable shadow password support in openssh-server-udeb.
4648 * Fix non-portable shell constructs in maintainer scripts, Makefile, and
4649 ssh-copy-id (thanks, David Weinehall; closes: #258517).
4650 * Apply patch from Darren Tucker to make the PAM authentication SIGCHLD
4651 handler kill the PAM thread if its waitpid() call returns 0, as well as
4652 the previous check for -1 (closes: #252676).
4653 * Add scp and sftp to openssh-client-udeb. It might not be very 'u' any
4654 more; oh well.
4655
4656 -- Colin Watson <cjwatson@debian.org> Sat, 10 Jul 2004 13:57:27 +0100
4657
4658openssh (1:3.8.1p1-4) unstable; urgency=medium
4659
4660 * Kill off PAM thread if privsep slave dies (closes: #248125).
4661
4662 -- Colin Watson <cjwatson@debian.org> Fri, 28 May 2004 17:58:45 -0300
4663
4664openssh (1:3.8.1p1-3) unstable; urgency=low
4665
4666 * Add ssh-keygen to openssh-server-udeb.
4667
4668 -- Colin Watson <cjwatson@debian.org> Thu, 20 May 2004 16:31:52 +0100
4669
4670openssh (1:3.8.1p1-2) unstable; urgency=low
4671
4672 * Add Catalan debconf template translation (thanks, Aleix Badia i Bosch;
4673 closes: #248748).
4674 * openssh-client-udeb and openssh-server-udeb depend on libnss-files-udeb
4675 (not yet uploaded).
4676 * Restore ssh-askpass-gnome binary, lost by mistake.
4677 * Don't link against libnsl in udeb builds.
4678
4679 -- Colin Watson <cjwatson@debian.org> Thu, 20 May 2004 11:15:58 +0100
4680
4681openssh (1:3.8.1p1-1) unstable; urgency=low
4682
4683 * New upstream release.
4684 - Use a longer buffer for tty names in utmp (closes: #247538).
4685 * Make sure there's a newline at the end of sshd_config before adding
4686 'UsePAM yes' (closes: #244829).
4687 * Generate a new .orig.tar.gz without RFC.nroff, and remove
4688 /usr/share/doc/ssh/RFC.gz (closes: #211640). It isn't DFSG-free and only
4689 documents the obsolete SSH1 protocol, not to mention that it was never a
4690 real RFC but only an Internet-Draft. It's available from
4691 http://www.free.lp.se/bamse/draft-ylonen-ssh-protocol-00.txt if you want
4692 it for some reason.
4693 * Add openssh-client-udeb and openssh-server-udeb binary packages for use
4694 in debian-installer. They still need libnss_files to be supplied in udeb
4695 form by glibc.
4696 * Work around lack of res_query weak alias in libresolv on amd64 (see
4697 #242462, awaiting real fix upstream).
4698 * Fix grammar in sshd(8) (closes: #238753).
4699 * Add .desktop file and icon for ssh-askpass-gnome (closes: #232333).
4700 * Update Polish debconf template translation (thanks, Emil Nowak;
4701 closes: #242808).
4702 * Add Turkish debconf template translation (thanks, Recai Oktaş;
4703 closes: #246068).
4704
4705 -- Colin Watson <cjwatson@debian.org> Tue, 11 May 2004 23:38:10 +0100
4706
4707openssh (1:3.8p1-3) unstable; urgency=low
4708
4709 * Remove deprecated ReverseMappingCheck option from newly generated
4710 sshd_config files (closes: #239987).
4711 * Build everything apart from contrib in a subdirectory, to allow for
4712 multiple builds.
4713 * Some older kernels are missing setresuid() and setresgid(), so don't try
4714 to use them. setreuid() and setregid() will do well enough for our
4715 purposes (closes: #239999).
4716
4717 -- Colin Watson <cjwatson@debian.org> Mon, 5 Apr 2004 21:23:43 +0100
4718
4719openssh (1:3.8p1-2) unstable; urgency=medium
4720
4721 * Disable PasswordAuthentication for new installations (closes: #236810).
4722 * Turn off the new ForwardX11Trusted by default, returning to the
4723 semantics of 3.7 and earlier, since it seems immature and causes far too
4724 many problems with existing setups. See README.Debian for details
4725 (closes: #237021).
4726
4727 -- Colin Watson <cjwatson@debian.org> Wed, 10 Mar 2004 10:33:07 +0000
4728
4729openssh (1:3.8p1-1) unstable; urgency=low
4730
4731 * New upstream release (closes: #232281):
4732 - New PAM implementation based on that in FreeBSD. This runs PAM session
4733 modules before dropping privileges (closes: #132681, #150968).
4734 - Since PAM session modules are run as root, we can turn pam_limits back
4735 on by default, and it no longer spits out "Operation not permitted" to
4736 syslog (closes: #171673).
4737 - Password expiry works again (closes: #153235).
4738 - 'ssh -q' suppresses login banner (closes: #134589).
4739 - sshd doesn't lie to PAM about invalid usernames (closes: #157078).
4740 - ssh-add prints key comment on each prompt (closes: #181869).
4741 - Punctuation formatting fixed in man pages (closes: #191131).
4742 - EnableSSHKeysign documented in ssh_config(5) (closes: #224457).
4743 * Add 'UsePAM yes' to /etc/ssh/sshd_config on upgrade from versions older
4744 than this, to maintain the standard Debian sshd configuration.
4745 * Comment out PAMAuthenticationViaKbdInt and RhostsAuthentication in
4746 sshd_config on upgrade. Neither option is supported any more.
4747 * Privilege separation and PAM are now properly supported together, so
4748 remove both debconf questions related to them and simply set it
4749 unconditionally in newly generated sshd_config files (closes: #228838).
4750 * ServerAliveInterval implemented upstream, so ProtocolKeepAlives is now a
4751 compatibility alias. The semantics differ slightly, though; see
4752 ssh_config(5) for details.
4753 * Implement SSH1 support for ServerAliveInterval using SSH_MSG_IGNORE. As
4754 documented in ssh_config(5), it's not as good as the SSH2 version.
4755 * Remove -fno-builtin-log, -DHAVE_MMAP_ANON_SHARED, and
4756 -D__FILE_OFFSET_BITS=64 compiler options, which are no longer necessary.
4757 * Update config.guess and config.sub from autotools-dev 20040105.1.
4758 * Darren Tucker:
4759 - Reset signal status when starting pam auth thread, prevent hanging
4760 during PAM keyboard-interactive authentications.
4761 - Fix a non-security-critical segfault in PAM authentication.
4762 * Add debconf template translations:
4763 - Greek (thanks, Konstantinos Margaritis; closes: #232843).
4764 - Italian (thanks, Renato Gini; closes: #234777).
4765
4766 -- Colin Watson <cjwatson@debian.org> Sat, 6 Mar 2004 18:43:44 +0000
4767
4768openssh (1:3.6.1p2-12) unstable; urgency=low
4769
4770 * Update Spanish debconf template translation (thanks, Javier
4771 Fernández-Sanguino Peña; closes: #228242).
4772 * Add debconf template translations:
4773 - Czech (thanks, Miroslav Kure; closes: #230110).
4774 - Simplified Chinese (thanks, Hiei Xu; closes: #230726).
4775
4776 -- Colin Watson <cjwatson@debian.org> Wed, 11 Feb 2004 09:37:57 +0000
4777
4778openssh (1:3.6.1p2-11) unstable; urgency=low
4779
4780 * Comment out pam_limits in default configuration, for now at least
4781 (closes: #198254).
4782 * Use invoke-rc.d (if it exists) to run the init script.
4783 * Backport format string bug fix in sshconnect.c (closes: #225238).
4784 * ssh-copy-id exits if ssh fails (closes: #215252).
4785
4786 -- Colin Watson <cjwatson@debian.org> Sun, 4 Jan 2004 18:59:21 +0000
4787
4788openssh (1:3.6.1p2-10) unstable; urgency=low
4789
4790 * Use --retry in init script when restarting rather than sleeping, to make
4791 sure the old process is dead (thanks, Herbert Xu; closes: #212117).
4792 Depend on dpkg (>= 1.9.0) for start-stop-daemon's --retry option.
4793 * Update debconf template translations:
4794 - Brazilian Portuguese (thanks, Andre Luis Lopes; closes: #219844).
4795 - Danish (thanks, Morten Brix Pedersen; closes: #217964).
4796 - Japanese (thanks, Kenshi Muto; closes: #212497).
4797 - Russian (thanks, Ilgiz Kalmetev).
4798 - Spanish (thanks, Carlos Valdivia Yagüe; closes: #211832).
4799 * Add Dutch debconf template translation (thanks, cobaco;
4800 closes: #215372).
4801 * Update config.guess and config.sub from autotools-dev 20031007.1
4802 (closes: #217696).
4803 * Implement New World Order for PAM configuration, including
4804 /etc/pam.d/common-* from /etc/pam.d/ssh (closes: #212959).
4805 - To backport this release to woody, you need to set DEB_BUILD_SSH_WOODY
4806 in your environment. See README.Debian.
4807 * Add more commentary to /etc/pam.d/ssh.
4808
4809 -- Colin Watson <cjwatson@debian.org> Sun, 16 Nov 2003 01:14:16 +0000
4810
4811openssh (1:3.6.1p2-9) unstable; urgency=high
4812
4813 * Merge even more buffer allocation fixes from upstream (CAN-2003-0682;
4814 closes: #211434).
4815
4816 -- Colin Watson <cjwatson@debian.org> Fri, 19 Sep 2003 10:25:25 +0100
4817
4818openssh (1:3.6.1p2-8) unstable; urgency=high
4819
4820 * Merge more buffer allocation fixes from new upstream version 3.7.1p1
4821 (closes: #211324).
4822
4823 -- Colin Watson <cjwatson@debian.org> Wed, 17 Sep 2003 03:07:19 +0100
4824
4825openssh (1:3.6.1p2-7) unstable; urgency=high
4826
4827 * Update debconf template translations:
4828 - French (thanks, Christian Perrier; closes: #208801).
4829 - Japanese (thanks, Kenshi Muto; closes: #210380).
4830 * Some small improvements to the English templates courtesy of Christian
4831 Perrier. I've manually unfuzzied a few translations where it was
4832 obvious, on Christian's advice, but the others will have to be updated.
4833 * Document how to generate an RSA1 host key (closes: #141703).
4834 * Incorporate NMU fix for early buffer expansion vulnerability,
4835 CAN-2003-0693 (closes: #211205). Thanks to Michael Stone.
4836
4837 -- Colin Watson <cjwatson@debian.org> Tue, 16 Sep 2003 14:32:28 +0100
4838
4839openssh (1:3.6.1p2-6.0) unstable; urgency=high
4840
4841 * SECURITY: fix for CAN-2003-0693, buffer allocation error
4842
4843 -- Michael Stone <mstone@debian.org> Tue, 16 Sep 2003 08:27:07 -0400
4844
4845openssh (1:3.6.1p2-6) unstable; urgency=medium
4846
4847 * Use a more CVS-friendly means of setting SSH_VERSION.
4848 * Update Brazilian Portuguese debconf template translation (thanks, Andre
4849 Luis Lopes; closes: #208036).
4850 * Don't run 'sshd -t' in init script if the server isn't to be run
4851 (closes: #197576).
4852 * Fix login delay, spurious auth.log entry, and PermitRootLogin
4853 information leakage due to PAM issues with upstream's recent security
4854 update (thanks, Darren Tucker; closes: #99168, #192207, #193546).
4855 * Policy version 3.6.1: recode this changelog to UTF-8.
4856
4857 -- Colin Watson <cjwatson@debian.org> Wed, 3 Sep 2003 19:14:02 +0100
4858
4859openssh (1:3.6.1p2-5) unstable; urgency=low
4860
4861 * Disable cmsg_type check for file descriptor passing when running on
4862 Linux 2.0 (closes: #150976). Remove comments about non-functional
4863 privilege separation on 2.0 from ssh/privsep_ask and ssh/privsep_tell
4864 debconf questions and from README.Debian, since it should all now work.
4865 * Fix "defails" typo in generated sshd_config (closes: #206484).
4866 * Backport upstream patch to strip trailing whitespace (including
4867 newlines) from configuration directives (closes: #192079).
4868
4869 -- Colin Watson <cjwatson@debian.org> Wed, 27 Aug 2003 02:19:57 +0100
4870
4871openssh (1:3.6.1p2-4) unstable; urgency=low
4872
4873 * getent can get just one key; no need to use grep (thanks, James Troup).
4874 * Move /usr/local/bin to the front of the default path, following
4875 /etc/login.defs (closes: #201150).
4876 * Remove specifics of problematic countries from package description
4877 (closes: #197040).
4878 * Update Spanish debconf template translation (thanks, Carlos Valdivia
4879 Yagüe; closes: #198456).
4880 * Backport upstream patch to pass monitor signals through to child
4881 (closes: #164797).
4882
4883 -- Colin Watson <cjwatson@debian.org> Sun, 27 Jul 2003 17:31:15 +0100
4884
4885openssh (1:3.6.1p2-3) unstable; urgency=low
4886
4887 * Update French debconf template translation (thanks, Christian Perrier;
4888 closes: #194323).
4889 * Version the adduser dependency for --no-create-home (closes: #195756).
4890 * Add a version of moduli(5), namely revision 1.7 of
4891 http://www.openbsd.org/cgi-bin/cvsweb/src/share/man/man5/moduli.5 with
4892 '/etc/moduli' changed to '/etc/ssh/moduli' throughout (closes: #196061).
4893
4894 -- Colin Watson <cjwatson@debian.org> Mon, 9 Jun 2003 02:51:35 +0100
4895
4896openssh (1:3.6.1p2-2) unstable; urgency=low
4897
4898 * Force /etc/default/ssh to be non-executable, since dpkg apparently
4899 doesn't deal with permissions changes on conffiles (closes: #192966).
4900 * Use debconf 0.5's seen flag rather than the deprecated isdefault.
4901 * Add GPL location to copyright file.
4902 * Remove debian/postinst.old.
4903 * Switch to po-debconf, with some careful manual use of po2debconf to
4904 ensure that the source package continues to build smoothly on woody
4905 (closes: #183986).
4906 * Update debconf template translations:
4907 - Brazilian Portugese (thanks, Andre Luis Lopes; see #183986).
4908 - Japanese (thanks, Tomohiro KUBOTA; closes: #192429).
4909 * Compile with -fno-builtin-log for now, otherwise gcc-3.3 complains
4910 "log.h:59: warning: conflicting types for built-in function `log'". The
4911 OpenSSH log() function has been renamed in upstream CVS.
4912
4913 -- Colin Watson <cjwatson@debian.org> Mon, 19 May 2003 01:52:38 +0100
4914
4915openssh (1:3.6.1p2-1) unstable; urgency=medium
4916
4917 * New upstream release, including fix for PAM user-discovery security hole
4918 (closes: #191681).
4919 * Fix ChallengeResponseAuthentication default in generated sshd_config
4920 (closes: #106037).
4921 * Put newlines after full stops in man page documentation for
4922 ProtocolKeepAlives and SetupTimeOut.
4923 * Policy version 3.5.9: support DEB_BUILD_OPTIONS=noopt, build
4924 gnome-ssh-askpass with -g and -Wall flags.
4925 * Really ask ssh/new_config debconf question before trying to fetch its
4926 value (closes: #188721).
4927 * On purge, remove only the files we know about in /etc/ssh rather than
4928 the whole thing, and remove the directory if that leaves it empty
4929 (closes: #176679).
4930 * ssh has depended on debconf for some time now with no complaints, so:
4931 - Simplify the postinst by relying on debconf being present. (The absent
4932 case was buggy anyway.)
4933 - Get rid of "if you have not installed debconf" text in README.Debian,
4934 and generally update the "/usr/bin/ssh not SUID" entry.
4935 * More README.Debian work:
4936 - Reorganize into "UPGRADE ISSUES" and "OTHER ISSUES", in an effort to
4937 make it easier for people to find the former. The upgrade issues
4938 should probably be sorted by version somehow.
4939 - Document X11UseLocalhost under "X11 Forwarding" (closes: #150913).
4940 * Fix setting of IP flags for interactive sessions (upstream bug #541).
4941
4942 -- Colin Watson <cjwatson@debian.org> Mon, 5 May 2003 17:47:40 +0100
4943
4944openssh (1:3.6.1p1-1) unstable; urgency=low
4945
4946 * New upstream release (thanks, Laurence J. Lane).
4947 * debian/control: ssh-askpass-gnome is now Section: gnome, following the
4948 override file.
4949
4950 -- Colin Watson <cjwatson@debian.org> Wed, 2 Apr 2003 00:51:02 +0100
4951
4952openssh (1:3.6p1-1) unstable; urgency=low
4953
4954 * New upstream release.
4955 - Workaround applied upstream for a bug in the interaction of glibc's
4956 getaddrinfo() with the Linux 2.2 kernel (closes: #155814).
4957 - As such, it should now be safe to remove --with-ipv4-default, so
4958 starting sshd with -6 is no longer necessary (closes: #79861 and lots
4959 of other merged bugs).
4960 - ssh-copy-id prints usage when run without arguments (closes: #71376).
4961 - scp exits 1 if ssh fails (closes: #138400).
4962 - sshd writes to utmp's ut_addr_v6 field in IPv6 mode (closes: #167867).
4963 - 'ssh-add -c' causes ssh-agent to ask the user each time a key is used
4964 (closes: #109795).
4965 * Install /etc/default/ssh non-executable (closes: #185537).
4966
4967 -- Colin Watson <cjwatson@debian.org> Mon, 31 Mar 2003 23:00:59 +0100
4968
4969openssh (1:3.5p1-5) unstable; urgency=low
4970
4971 * Add /etc/default/ssh (closes: #161049).
4972 * Run the init script under 'set -e' (closes: #175010).
4973 * Change the default superuser path to include /sbin, /usr/sbin, and
4974 /usr/local/sbin (closes: #128235, #151267). Using login.defs would be
4975 nice, but that belongs to another package. Without a defined API to
4976 retrieve its settings, parsing it is off-limits.
4977 * Build ssh-askpass-gnome with GNOME 2. The source package should still
4978 support building on stable with GNOME 1, using the alternate
4979 libgnome-dev build-dependency (thanks, Colin Walters; closes: #167582).
4980
4981 -- Colin Watson <cjwatson@debian.org> Sun, 9 Mar 2003 20:12:10 +0000
4982
4983openssh (1:3.5p1-4) unstable; urgency=low
4984
4985 * Point rlogin and rcp alternatives at slogin and scp respectively rather
4986 than ssh (closes: #121103, #151666). Fix alternative removal to match;
4987 previously it was completely wrong anyway.
4988 * Find out whether /etc/ssh/sshd_not_to_be_run exists and set the debconf
4989 question's default using that information, rather than using debconf as
4990 a registry. Other solutions may be better in the long run, but this is
4991 at least correct (thanks, Matthew Woodcraft; closes: #84725).
4992 * Stop using pam_lastlog, as it doesn't currently work well as a session
4993 module when privilege separation is enabled; it can usually read
4994 /var/log/lastlog but can't write to it. Instead, just use sshd's
4995 built-in support, already enabled by default (closes: #151297, #169938).
4996 * Use 'ssh-keygen -q' rather than redirecting output to /dev/null.
4997 * Add a "this may take some time" warning when creating host keys on
4998 installation (part of #110094).
4999 * When restarting via the init script, check for sshd_not_to_be_run after
5000 stopping sshd (idea from Tomas Pospisek; closes: #149850).
5001 * Append /usr/sbin:/sbin to the init script's $PATH, just in case of
5002 strangeness (closes: #115138).
5003 * Fix a dpkg-statoverride call to redirect stdout to /dev/null, not
5004 stderr.
5005 * Correct copyright file typo: "orignal" -> "original" (closes: #176490).
5006 * Rebuild with libssl0.9.7 (closes: #176983).
5007 * We're up to policy version 3.5.6. DEB_BUILD_OPTIONS stuff still needs to
5008 be looked at.
5009
5010 -- Colin Watson <cjwatson@debian.org> Sat, 18 Jan 2003 01:37:23 +0000
5011
5012openssh (1:3.5p1-3) unstable; urgency=low
5013
5014 * Happy new year!
5015 * Use getent rather than id to find out whether the sshd user exists
5016 (closes: #150974).
5017 * Remove some duplication from the postinst's ssh-keysign setuid code.
5018 * Replace db_text with db_input throughout debian/config. (db_text has
5019 been a compatibility wrapper since debconf 0.1.5.)
5020 * Warn about PermitUserEnvironment on upgrade (closes: #167895).
5021 * Use 'make install-nokeys', and disable unused debhelper commands,
5022 thereby forward-porting the last pieces of Zack Weinberg's patch
5023 (closes: #68341).
5024 * Move the man page for gnome-ssh-askpass from the ssh package to
5025 ssh-askpass-gnome (closes: #174449).
5026 * Build with -DLOGIN_NO_ENDOPT, since Debian's /bin/login doesn't accept
5027 '--' to terminate the list of options (closes: #171554).
5028 * Add Jonathan Amery's ssh-argv0 script (closes: #111341).
5029 * Update Danish debconf template (thanks, Morten Brix Pedersen;
5030 closes: #174757).
5031 * Document setgid ssh-agent's effect on certain environment variables in
5032 README.Debian (closes: #167974).
5033 * Document interoperability problems between scp and ssh.com's server in
5034 README.Debian, and suggest some workarounds (closes: #174662).
5035
5036 -- Colin Watson <cjwatson@debian.org> Wed, 1 Jan 2003 14:18:30 +0000
5037
5038openssh (1:3.5p1-2) unstable; urgency=low
5039
5040 * Mention in the ssh package description that it provides both ssh and
5041 sshd (closes: #99680).
5042 * Create a system group for ssh-agent, not a user group (closes: #167669).
5043
5044 -- Colin Watson <cjwatson@debian.org> Mon, 4 Nov 2002 13:43:53 +0000
5045
5046openssh (1:3.5p1-1) unstable; urgency=low
5047
5048 * New upstream release.
5049 - Fixes typo in ssh-add usage (closes: #152239).
5050 - Fixes 'PermitRootLogin forced-commands-only' (closes: #166184).
5051 - ~/.ssh/environment and environment= options in ~/.ssh/authorized_keys
5052 are deprecated for security reasons and will eventually go away. For
5053 now they can be re-enabled by setting 'PermitUserEnvironment yes' in
5054 sshd_config.
5055 - ssh-agent is installed setgid to prevent ptrace() attacks. The group
5056 actually doesn't matter, as it drops privileges immediately, but to
5057 avoid confusion the postinst creates a new 'ssh' group for it.
5058 * Obsolete patches:
5059 - Solar Designer's privsep+compression patch for Linux 2.2 (see
5060 1:3.3p1-0.0woody1).
5061 - Hostbased auth ssh-keysign backport (see 1:3.4p1-4).
5062
5063 * Remove duplicated phrase in ssh_config(5) (closes: #152404).
5064 * Source the debconf confmodule at the top of the postrm rather than at
5065 the bottom, to avoid making future non-idempotency problems worse (see
5066 #151035).
5067 * Debconf templates:
5068 - Add Polish (thanks, Grzegorz Kusnierz).
5069 - Update French (thanks, Denis Barbier; closes: #132509).
5070 - Update Spanish (thanks, Carlos Valdivia Yagüe; closes: #164716).
5071 * Write a man page for gnome-ssh-askpass, and link it to ssh-askpass.1 if
5072 this is the selected ssh-askpass alternative (closes: #67775).
5073
5074 -- Colin Watson <cjwatson@debian.org> Sat, 26 Oct 2002 19:41:51 +0100
5075
5076openssh (1:3.4p1-4) unstable; urgency=low
5077
5078 * Allow ssh-krb5 in ssh-askpass-gnome's dependencies (closes: #129532).
5079 * Restore Russia to list of countries where encryption is problematic (see
5080 #148951 and http://www.average.org/freecrypto/).
5081 * Drop ssh-askpass-gnome's priority to optional, per the override file.
5082 * Drop the PAM special case for hurd-i386 (closes: #99157).
5083 * s/dile/idle/ in ssh_config(5) (closes: #118331).
5084 * Note in README.Debian that you need xauth from xbase-clients on the
5085 server for X11 forwarding (closes: #140269).
5086 * Use correct path to upstream README in copyright file (closes: #146037).
5087 * Document the units for ProtocolKeepAlives (closes: #159479).
5088 * Backport upstream patch to fix hostbased auth (closes: #117114).
5089 * Add -g to CFLAGS.
5090
5091 -- Colin Watson <cjwatson@debian.org> Sun, 13 Oct 2002 18:58:53 +0100
5092
5093openssh (1:3.4p1-3) unstable; urgency=low
5094
5095 * Add myself to Uploaders: and begin acting as temporary maintainer, at
5096 Matthew's request. (Normal service will resume in some months' time.)
5097 * Add sharutils to Build-Depends (closes: #138465).
5098 * Stop creating the /usr/doc/ssh symlink.
5099
5100 * Fix some debconf template typos (closes: #160358).
5101 * Split debconf templates into one file per language.
5102 * Add debconf template translations:
5103 - Brazilian Portuguese (thanks, Andre Luis Lopes; closes: #106173).
5104 - Danish (thanks, Claus Hindsgaul; closes: #126607).
5105 - Japanese (thanks, Tomohiro KUBOTA; closes: #137427).
5106 - Russian (thanks, Ilgiz Kalmetev; closes: #136610).
5107 - Spanish (thanks, Carlos Valdivia Yagüe; closes: #129041).
5108 * Update debconf template translations:
5109 - French (thanks, Igor Genibel; closes: #151361).
5110 - German (thanks, Axel Noetzold; closes: #147069).
5111 * Some of these translations are fuzzy. Please send updates.
5112
5113 -- Colin Watson <cjwatson@debian.org> Sun, 13 Oct 2002 14:09:57 +0100
5114
5115openssh (1:3.4p1-2) unstable; urgency=high
5116
5117 * Get a security-fixed version into unstable
5118 * Also tidy README.Debian up a little
5119
5120 -- Matthew Vernon <matthew@debian.org> Fri, 28 Jun 2002 17:20:59 +0100
5121
5122openssh (1:3.4p1-1) testing; urgency=high
5123
5124 * Extend my tendrils back into this package (Closes: #150915, #151098)
5125 * thanks to the security team for their work
5126 * no thanks to ISS/Theo de Raadt for their handling of these bugs
5127 * save old sshd_configs to sshd_config.dpkg-old when auto-generating a
5128 new one
5129 * tell/ask the user about PriviledgeSeparation
5130 * /etc/init.d/ssh run will now create the chroot empty dir if necessary
5131 * Remove our previous statoverride on /usr/bin/ssh (only for people
5132 upgrading from a version where we'd put one in ourselves!)
5133 * Stop slandering Russia, since someone asked so nicely (Closes: #148951)
5134 * Reduce the sleep time in /etc/init.d/ssh during a restart
5135
5136 -- Matthew Vernon <matthew@debian.org> Fri, 28 Jun 2002 15:52:10 +0100
5137
5138openssh (1:3.4p1-0.0woody1) testing-security; urgency=high
5139
5140 * NMU by the security team.
5141 * New upstream version
5142
5143 -- Michael Stone <mstone@debian.org> Wed, 26 Jun 2002 15:40:38 -0400
5144
5145openssh (1:3.3p1-0.0woody4) testing-security; urgency=high
5146
5147 * NMU by the security team.
5148 * fix error when /etc/ssh/sshd_config exists on new install
5149 * check that user doesn't exist before running adduser
5150 * use openssl internal random unconditionally
5151
5152 -- Michael Stone <mstone@debian.org> Tue, 25 Jun 2002 19:44:39 -0400
5153
5154openssh (1:3.3p1-0.0woody3) testing-security; urgency=high
5155
5156 * NMU by the security team.
5157 * use correct home directory when sshd user is created
5158
5159 -- Michael Stone <mstone@debian.org> Tue, 25 Jun 2002 08:59:50 -0400
5160
5161openssh (1:3.3p1-0.0woody2) testing-security; urgency=high
5162
5163 * NMU by the security team.
5164 * Fix rsa1 key creation (Closes: #150949)
5165 * don't fail if sshd user removal fails
5166 * depends: on adduser (Closes: #150907)
5167
5168 -- Michael Stone <mstone@debian.org> Tue, 25 Jun 2002 08:59:50 -0400
5169
5170openssh (1:3.3p1-0.0woody1) testing-security; urgency=high
5171
5172 * NMU by the security team.
5173 * New upstream version.
5174 - Enable privilege separation by default.
5175 * Include patch from Solar Designer for privilege separation and
5176 compression on 2.2.x kernels.
5177 * Remove --disable-suid-ssh from configure.
5178 * Support setuid ssh-keysign binary instead of setuid ssh client.
5179 * Check sshd configuration before restarting.
5180
5181 -- Daniel Jacobowitz <dan@debian.org> Mon, 24 Jun 2002 13:43:44 -0400
5182
5183openssh (1:3.0.2p1-9) unstable; urgency=high
5184
5185 * Thanks to those who NMUd
5186 * The only change in this version is to debian/control - I've removed
5187 the bit that says you can't export it from the US - it would look
5188 pretty daft to say this about a package in main! Also, it's now OK
5189 to use crypto in France, so I've edited that comment slightly
5190 * Correct a path in README.Debian too (Closes: #138634)
5191
5192 -- Matthew Vernon <matthew@debian.org> Sun, 4 Apr 2002 09:52:59 +0100
5193
5194openssh (1:3.0.2p1-8.3) unstable; urgency=medium
5195
5196 * NMU
5197 * Really set urgency to medium this time (oops)
5198 * Fix priority to standard per override while I'm at it
5199
5200 -- Aaron M. Ucko <ucko@debian.org> Sun, 24 Mar 2002 09:00:08 -0500
5201
5202openssh (1:3.0.2p1-8.2) unstable; urgency=low
5203
5204 * NMU with maintainer's permission
5205 * Prepare for upcoming ssh-nonfree transitional packages per
5206 <http://lists.debian.org/debian-ssh/2002/debian-ssh-200203/msg00008.html>
5207 * Urgency medium because it would really be good to get this into woody
5208 before it releases
5209 * Fix sections to match override file
5210 * Reissued due to clash with non-US -> main move
5211
5212 -- Aaron M. Ucko <ucko@debian.org> Sat, 23 Mar 2002 21:21:52 -0500
5213
5214openssh (1:3.0.2p1-8.1) unstable; urgency=low
5215
5216 * NMU
5217 * Move from non-US to mani
5218
5219 -- LaMont Jones <lamont@debian.org> Thu, 21 Mar 2002 09:33:50 -0700
5220
5221openssh (1:3.0.2p1-8) unstable; urgency=critical
5222
5223 * Security fix - patch from upstream (Closes: #137209, #137210)
5224 * Undo the changes in the unreleased -7, since they appear to break
5225 things here. Accordingly, the code change is minimal, and I'm
5226 happy to get it into testing ASAP
5227
5228 -- Matthew Vernon <matthew@debian.org> Thu, 7 Mar 2002 14:25:23 +0000
5229
5230openssh (1:3.0.2p1-7) unstable; urgency=high
5231
5232 * Build to support IPv6 and IPv4 by default again
5233
5234 -- Matthew Vernon <matthew@debian.org> Sat, 2 Mar 2002 00:25:05 +0000
5235
5236openssh (1:3.0.2p1-6) unstable; urgency=high
5237
5238 * Correct error in the clean target (Closes: #130868)
5239
5240 -- Matthew Vernon <matthew@debian.org> Sat, 26 Jan 2002 00:32:00 +0000
5241
5242openssh (1:3.0.2p1-5) unstable; urgency=medium
5243
5244 * Include the Debian version in our identification, to make it easier to
5245 audit networks for patched versions in future
5246
5247 -- Matthew Vernon <matthew@debian.org> Mon, 21 Jan 2002 17:16:10 +0000
5248
5249openssh (1:3.0.2p1-4) unstable; urgency=medium
5250
5251 * If we're asked to not run sshd, stop any running sshd's first
5252 (Closes: #129327)
5253
5254 -- Matthew Vernon <matthew@debian.org> Wed, 16 Jan 2002 21:24:16 +0000
5255
5256openssh (1:3.0.2p1-3) unstable; urgency=high
5257
5258 * Fix /etc/pam.d/ssh to not set $MAIL (Closes: #128913)
5259 * Remove extra debconf suggestion (Closes: #128094)
5260 * Mmm. speedy bug-fixing :-)
5261
5262 -- Matthew Vernon <matthew@debian.org> Sat, 12 Jan 2002 17:23:58 +0000
5263
5264openssh (1:3.0.2p1-2) unstable; urgency=high
5265
5266 * Fix postinst to not automatically overwrite sshd_config (!)
5267 (Closes: #127842, #127867)
5268 * Add section in README.Debian about the PermitRootLogin setting
5269
5270 -- Matthew Vernon <matthew@debian.org> Sat, 5 Jan 2003 05:26:30 +0000
5271
5272openssh (1:3.0.2p1-1) unstable; urgency=high
5273
5274 * Incorporate fix from Colin's NMU
5275 * New upstream version (fixes the bug Wichert fixed) (Closes: #124035)
5276 * Capitalise IETF (Closes: #125379)
5277 * Refer to the correct sftp-server location (Closes: #126854, #126224)
5278 * Do what we're asked re SetUID ssh (Closes: #124065, #124154, #123247)
5279 * Ask people upgrading from potato if they want a new conffile
5280 (Closes: #125642)
5281 * Fix a typo in postinst (Closes: #122192, #122410, #123440)
5282 * Frob the default config a little (Closes: #122284, #125827, #125696,
5283 #123854)
5284 * Make /etc/init.d/ssh be more clear about ssh not running (Closes:
5285 #123552)
5286 * Fix typo in templates file (Closes: #123411)
5287
5288 -- Matthew Vernon <matthew@debian.org> Fri, 4 Jan 2002 16:01:52 +0000
5289
5290openssh (1:3.0.1p1-1.2) unstable; urgency=high
5291
5292 * Non-maintainer upload
5293 * Prevent local users from passing environment variables to the login
5294 process when UseLogin is enabled
5295
5296 -- Wichert Akkerman <wakkerma@debian.org> Mon, 3 Dec 2001 19:34:45 +0100
5297
5298openssh (1:3.0.1p1-1.1) unstable; urgency=low
5299
5300 * Non-maintainer upload, at Matthew's request.
5301 * Remove sa_restorer assignment to fix compilation on alpha, hppa, and
5302 ia64 (closes: #122086).
5303
5304 -- Colin Watson <cjwatson@debian.org> Sun, 2 Dec 2001 18:54:16 +0000
5305
5306openssh (1:3.0.1p1-1) unstable; urgency=high
5307
5308 * New upstream version (Closes: #113646, #113513, #114707, #118564)
5309 * Building with a libc that works (!) (Closes: #115228)
5310 * Patches forward-ported are -1/-2 options for scp, the improvement to
5311 'waiting for forwarded connections to terminate...'
5312 * Fix /etc/init.d/ssh to stop sshd properly (Closes: #115228)
5313 * /etc/ssh/sshd_config is no longer a conffile but generated in the postinst
5314 * Remove suidregister leftover from postrm
5315 * Mention key we are making in the postinst
5316 * Default to not enable SSH protocol 1 support, since protocol 2 is
5317 much safer anyway.
5318 * New version of the vpn-fixes patch, from Ian Jackson
5319 * New handling of -q, and added new -qq option; thanks to Jon Amery
5320 * Experimental smartcard support not enabled, since I have no way of
5321 testing it.
5322
5323 -- Matthew Vernon <matthew@debian.org> Thu, 28 Nov 2001 17:43:01 +0000
5324
5325openssh (1:2.9p2-6) unstable; urgency=low
5326
5327 * check for correct file in /etc/init.d/ssh (Closes: #110876)
5328 * correct location of version 2 keys in ssh.1 (Closes: #110439)
5329 * call update-alternatives --quiet (Closes: #103314)
5330 * hack ssh-copy-id to chmod go-w (Closes: #95551)
5331 * TEMPORARY fix to provide largefile support using a -D in the cflags
5332 line. long-term, upstream will patch the autoconf stuff
5333 (Closes: #106809, #111849)
5334 * remove /etc/rc references in ssh-keygen.1 (Closes: #68350)
5335 * scp.1 patch from Adam McKenna to document -r properly (Closes: #76054)
5336 * Check for files containing a newline character (Closes: #111692)
5337
5338 -- Matthew Vernon <matthew@debian.org> Thu, 13 Sep 2001 16:47:36 +0100
5339
5340openssh (1:2.9p2-5) unstable; urgency=high
5341
5342 * Thanks to all the bug-fixers who helped!
5343 * remove sa_restorer assignment (Closes: #102837)
5344 * patch from Peter Benie to DTRT wrt X forwarding if the server refuses
5345 us access (Closes: #48297)
5346 * patch from upstream CVS to fix port forwarding (Closes: #107132)
5347 * patch from Jonathan Amery to document ssh-keygen behaviour
5348 (Closes:#106643, #107512)
5349 * patch to postinst from Jonathan Amery (Closes: #106411)
5350 * patch to manpage from Jonathan Amery (Closes: #107364)
5351 * patch from Matthew Vernon to make -q emit fatal errors as that is the
5352 documented behaviour (Closes: #64347)
5353 * patch from Ian Jackson to cause us to destroy a file when we scp it
5354 onto itself, rather than dumping bits of our memory into it, which was
5355 a security hole (see #51955)
5356 * patch from Jonathan Amery to document lack of Kerberos support
5357 (Closes: #103726)
5358 * patch from Matthew Vernon to make the 'waiting for connections to
5359 terminate' message more helpful (Closes: #50308)
5360
5361 -- Matthew Vernon <matthew@debian.org> Thu, 23 Aug 2001 02:14:09 +0100
5362
5363openssh (1:2.9p2-4) unstable; urgency=high
5364
5365 * Today's build of ssh is strawberry flavoured
5366 * Patch from mhp to reduce length of time sshd is stopped for (Closes: #106176)
5367 * Tidy up debconf template (Closes: #106152)
5368 * If called non-setuid, then setgid()'s failure should not be fatal (see
5369 #105854)
5370
5371 -- Matthew Vernon <matthew@debian.org> Sun, 22 Jul 2001 14:19:43 +0100
5372
5373openssh (1:2.9p2-3) unstable; urgency=low
5374
5375 * Patch from yours truly to add -1 and -2 options to scp (Closes: #106061)
5376 * Improve the IdentityFile section in the man page (Closes: #106038)
5377
5378 -- Matthew Vernon <matthew@debian.org> Sat, 21 Jul 2001 14:47:27 +0100
5379
5380openssh (1:2.9p2-2) unstable; urgency=low
5381
5382 * Document the protocol version 2 and IPV6 changes (Closes: #105845, #105868)
5383 * Make PrintLastLog 'no' by default (Closes: #105893)
5384
5385 -- Matthew Vernon <matthew@debian.org> Thu, 19 Jul 2001 18:36:41 +0100
5386
5387openssh (1:2.9p2-1) unstable; urgency=low
5388
5389 * new (several..) upstream version (Closes: #96726, #81856, #96335)
5390 * Hopefully, this will close some other bugs too
5391
5392 -- Matthew Vernon <matthew@debian.org> Tue, 17 Jul 2001 19:41:58 +0100
5393
5394openssh (1:2.5.2p2-3) unstable; urgency=low
5395
5396 * Taking Over this package
5397 * Patches from Robert Bihlmeyer for the Hurd (Closes: #102991)
5398 * Put PermitRootLogin back to yes (Closes: #67334, #67371, #78274)
5399 * Don't fiddle with conf-files any more (Closes: #69501)
5400
5401 -- Matthew Vernon <matthew@debian.org> Tue, 03 Jul 2001 02:58:13 +0100
5402
5403openssh (1:2.5.2p2-2.2) unstable; urgency=low
5404
5405 * NMU
5406 * Include Hurd compatibility patches from Robert Bihlmeyer (Closes: #76033)
5407 * Patch from Richard Kettlewell for protocolkeepalives (Closes: #99273)
5408 * Patch from Matthew Vernon for BannerTimeOut, batchmode, and
5409 documentation for protocolkeepalives. Makes ssh more generally useful
5410 for scripting uses (Closes: #82877, #99275)
5411 * Set a umask, so ourpidfile isn't world-writable (closes: #100012,
5412 #98286, #97391)
5413
5414 -- Matthew Vernon <matthew@debian.org> Thu, 28 Jun 2001 23:15:42 +0100
5415
5416openssh (1:2.5.2p2-2.1) unstable; urgency=low
5417
5418 * NMU
5419 * Remove duplicate Build-Depends for libssl096-dev and change it to
5420 depend on libssl-dev instaed. Also adding in virtual | real package
5421 style build-deps. (Closes: #93793, #75228)
5422 * Removing add-log entry (Closes: #79266)
5423 * This was a pam bug from a while back (Closes: #86908, #88457, #86843)
5424 * pam build-dep already exists (Closes: #93683)
5425 * libgnome-dev build-dep already exists (Closes: #93694)
5426 * No longer in non-free (Closes: #85401)
5427 * Adding in fr debconf translations (Closes: #83783)
5428 * Already suggests xbase-clients (Closes: #79741)
5429 * No need to suggest libpam-pwdb anymore (Closes: #81658)
5430 * Providing rsh-client (Closes: #79437)
5431 * hurd patch was already applied (Closes: #76033)
5432 * default set to no (Closes: #73682)
5433 * Adding in a suggests for dnsutils (Closes: #93265)
5434 * postinst bugs fixed (Closes: #88057, #88066, #88196, #88405, #88612)
5435 (Closes: #88774, #88196, #89556, #90123, #90228, #90833, #87814, #85465)
5436 * Adding in debconf dependency
5437
5438 -- Ivan E. Moore II <rkrusty@debian.org> Mon, 16 Apr 2001 14:11:04 +0100
5439
5440openssh (1:2.5.2p2-2) unstable; urgency=high
5441
5442 * disable the OpenSSL version check in entropy.c
5443 (closes: #93581, #93588, #93590, #93614, #93619, #93635, #93648)
5444
5445 -- Philip Hands <phil@uk.alcove.com> Wed, 11 Apr 2001 20:30:04 +0100
5446
5447openssh (1:2.5.2p2-1) unstable; urgency=low
5448
5449 * New upstream release
5450 * removed make-ssh-known-hosts, since ssh-keyscan does that job (closes: #86069, #87748)
5451 * fix double space indent in german templates (closes: #89493)
5452 * make postinst check for ssh_host_rsa_key
5453 * get rid of the last of the misguided debian/rules NMU debris :-/
5454
5455 -- Philip Hands <phil@hands.com> Sat, 24 Mar 2001 20:59:33 +0000
5456
5457openssh (1:2.5.1p2-2) unstable; urgency=low
5458
5459 * rebuild with new debhelper (closes: #89558, #89536, #90225)
5460 * fix broken dpkg-statoverride test in postinst
5461 (closes: #89612, #90474, #90460, #89605)
5462 * NMU bug fixed but not closed in last upload (closes: #88206)
5463
5464 -- Philip Hands <phil@hands.com> Fri, 23 Mar 2001 16:11:33 +0000
5465
5466openssh (1:2.5.1p2-1) unstable; urgency=high
5467
5468 * New upstream release
5469 * fix typo in postinst (closes: #88110)
5470 * revert to setting PAM service name in debian/rules, backing out last
5471 NMU, which also (closes: #88101)
5472 * restore the pam lastlog/motd lines, lost during the NMUs, and sshd_config
5473 * restore printlastlog option patch
5474 * revert to using debhelper, which had been partially disabled in NMUs
5475
5476 -- Philip Hands <phil@hands.com> Tue, 13 Mar 2001 01:41:34 +0000
5477
5478openssh (1:2.5.1p1-1.8) unstable; urgency=high
5479
5480 * And now the old pam-bug s/sshd/ssh in ssh.c is also fixed
5481
5482 -- Christian Kurz <shorty@debian.org> Thu, 1 Mar 2001 19:48:01 +0100
5483
5484openssh (1:2.5.1p1-1.7) unstable; urgency=high
5485
5486 * And now we mark the correct binary as setuid, when a user requested
5487 to install it setuid.
5488
5489 -- Christian Kurz <shorty@debian.org> Thu, 1 Mar 2001 07:19:56 +0100
5490
5491openssh (1:2.5.1p1-1.6) unstable; urgency=high
5492
5493 * Fixes postinst to handle overrides that are already there. Damn, I
5494 should have noticed the bug earlier.
5495
5496 -- Christian Kurz <shorty@debian.org> Wed, 28 Feb 2001 22:35:00 +0100
5497
5498openssh (1:2.5.1p1-1.5) unstable; urgency=high
5499
5500 * Rebuild ssh with pam-support.
5501
5502 -- Christian Kurz <shorty@debian.org> Mon, 26 Feb 2001 21:55:51 +0100
5503
5504openssh (1:2.5.1p1-1.4) unstable; urgency=low
5505
5506 * Added Build-Depends on libssl096-dev.
5507 * Fixed sshd_config file to disallow root logins again.
5508
5509 -- Christian Kurz <shorty@debian.org> Sun, 25 Feb 2001 20:03:55 +0100
5510
5511openssh (1:2.5.1p1-1.3) unstable; urgency=low
5512
5513 * Fixed missing manpages for sftp.1 and ssh-keyscan.1
5514 * Made package policy 3.5.2 compliant.
5515
5516 -- Christian Kurz <shorty@debian.org> Sun, 25 Feb 2001 15:46:26 +0100
5517
5518openssh (1:2.5.1p1-1.2) unstable; urgency=low
5519
5520 * Added Conflict with sftp, since we now provide our own sftp-client.
5521 * Added a fix for our broken dpkg-statoverride call in the
5522 2.3.0p1-13.
5523 * Fixed some config pathes in the comments of sshd_config.
5524 * Removed ssh-key-exchange-vulnerability-patch since it's not needed
5525 anymore because upstream included the fix.
5526
5527 -- Christian Kurz <shorty@debian.org> Sun, 25 Feb 2001 13:46:58 +0100
5528
5529openssh (1:2.5.1p1-1.1) unstable; urgency=high
5530
5531 * Another NMU to get the new upstream version 2.5.1p1 into
5532 unstable. (Closes: #87123)
5533 * Corrected postinst to mark ssh as setuid. (Closes: #86391, #85766)
5534 * Key Exchange patch is already included by upstream. (Closes: #86015)
5535 * Upgrading should be possible now. (Closes: #85525, #85523)
5536 * Added --disable-suid-ssh as compile option, so ssh won't get installed
5537 suid per default.
5538 * Fixed postinst to run dpkg-statoverride only, when dpkg-statoverride
5539 is available and the mode of the binary should be 4755. And also added
5540 suggestion for a newer dpkg.
5541 (Closes: #85734, #85741, #86876)
5542 * sftp and ssh-keyscan will also be included from now on. (Closes: #79994)
5543 * scp now understands spaces in filenames (Closes: #53783, #58958,
5544 #66723)
5545 * ssh-keygen now supports showing DSA fingerprints. (Closes: #68623)
5546 * ssh doesn' t show motd anymore when switch -t is used. (Closes #69035)
5547 * ssh supports the usage of other dsa keys via the ssh command line
5548 options. (Closes: #81250)
5549 * Documentation in sshd_config fixed. (Closes: #81088)
5550 * primes file included by upstream and included now. (Closes: #82101)
5551 * scp now allows dots in the username. (Closes: #82477)
5552 * Spelling error in ssh-copy-id.1 corrected by upstream. (Closes: #78124)
5553
5554 -- Christian Kurz <shorty@debian.org> Sun, 25 Feb 2001 10:06:08 +0100
5555
5556openssh (1:2.3.0p1-1.13) unstable; urgency=low
5557
5558 * Config should now also be fixed with this hopefully last NMU.
5559
5560 -- Christian Kurz <shorty@debian.org> Sat, 10 Feb 2001 22:56:36 +0100
5561
5562openssh (1:2.3.0p1-1.12) unstable; urgency=high
5563
5564 * Added suggest for xbase-clients to control-file. (Closes #85227)
5565 * Applied patch from Markus Friedl to fix a vulnerability in
5566 the rsa keyexchange.
5567 * Fixed position of horizontal line. (Closes: #83613)
5568 * Fixed hopefully the grep problem in the config-file. (Closes: #78802)
5569 * Converted package from suidregister to dpkg-statoverride.
5570
5571 -- Christian Kurz <shorty@debian.org> Fri, 9 Feb 2001 19:43:55 +0100
5572
5573openssh (1:2.3.0p1-1.11) unstable; urgency=medium
5574
5575 * Fixed some typos in the german translation of the debconf
5576 template.
5577
5578 -- Christian Kurz <shorty@debian.org> Wed, 24 Jan 2001 18:22:38 +0100
5579
5580openssh (1:2.3.0p1-1.10) unstable; urgency=medium
5581
5582 * Fixed double printing of motd. (Closes: #82618)
5583
5584 -- Christian Kurz <shorty@debian.org> Tue, 23 Jan 2001 21:03:43 +0100
5585
5586openssh (1:2.3.0p1-1.9) unstable; urgency=high
5587
5588 * And the next NMU which includes the patch from Andrew Bartlett
5589 and Markus Friedl to fix the root privileges handling of openssh.
5590 (Closes: #82657)
5591
5592 -- Christian Kurz <shorty@debian.org> Wed, 17 Jan 2001 22:20:54 +0100
5593
5594openssh (1:2.3.0p1-1.8) unstable; urgency=high
5595
5596 * Applied fix from Ryan Murray to allow building on other architectures
5597 since the hurd patch was wrong. (Closes: #82471)
5598
5599 -- Christian Kurz <shorty@debian.org> Tue, 16 Jan 2001 22:45:51 +0100
5600
5601openssh (1:2.3.0p1-1.7) unstable; urgency=medium
5602
5603 * Fixed another typo on sshd_config
5604
5605 -- Christian Kurz <shorty@debian.org> Sun, 14 Jan 2001 19:01:31 +0100
5606
5607openssh (1:2.3.0p1-1.6) unstable; urgency=high
5608
5609 * Added Build-Dependency on groff (Closes: #81886)
5610 * Added Build-Depencency on debhelper (Closes: #82072)
5611 * Fixed entry for known_hosts in sshd_config (Closes: #82096)
5612
5613 -- Christian Kurz <shorty@debian.org> Thu, 11 Jan 2001 23:08:16 +0100
5614
5615openssh (1:2.3.0p1-1.5) unstable; urgency=high
5616
5617 * Fixed now also the problem with sshd used as default ipv4 and
5618 didn't use IPv6. This should be now fixed.
5619
5620 -- Christian Kurz <shorty@debian.org> Thu, 11 Jan 2001 21:25:55 +0100
5621
5622openssh (1:2.3.0p1-1.4) unstable; urgency=high
5623
5624 * Fixed buggy entry in postinst.
5625
5626 -- Christian Kurz <shorty@debian.org> Wed, 10 Jan 2001 23:12:16 +0100
5627
5628openssh (1:2.3.0p1-1.3) unstable; urgency=high
5629
5630 * After finishing the rewrite of the rules-file I had to notice that
5631 the manpage installation was broken. This should now work again.
5632
5633 -- Christian Kurz <shorty@debian.org> Wed, 10 Jan 2001 22:11:59 +0100
5634
5635openssh (1:2.3.0p1-1.2) unstable; urgency=high
5636
5637 * Fixed the screwed up build-dependency.
5638 * Removed --with-ipv4-default to support ipv6.
5639 * Changed makefile to use /etc/pam.d/ssh instead of /etc/pam.d/sshd.
5640 * Fixed location to sftp-server in config.
5641 * Since debian still relies on /etc/pam.d/ssh instead of moving to
5642 /etc/pam.d/sshd, I had to hack ssh.h to get ssh to use this name.
5643 * Fixed path to host key in sshd_config.
5644
5645 -- Christian Kurz <shorty@debian.org> Wed, 10 Jan 2001 08:23:47 +0100
5646
5647openssh (1:2.3.0p1-1.1) unstable; urgency=medium
5648
5649 * NMU with permission of Phil Hands.
5650 * New upstream release
5651 * Update Build-Depends to point to new libssl096.
5652 * This upstream release doesn't leak any information depending
5653 on the setting of PermitRootLogin (Closes: #59933)
5654 * New upstream release contains fix against forcing a client to
5655 do X/agent forwarding (Closes: #76788)
5656 * Changed template to contain correct path to the documentation
5657 (Closes: #67245)
5658 * Added --with-4in6 switch as compile option into debian/rules.
5659 * Added --with-ipv4-default as compile option into debian/rules.
5660 (Closes: #75037)
5661 * Changed default path to also contain /usr/local/bin and
5662 /usr/X11R6/bin (Closes: #62472,#54567,#62810)
5663 * Changed path to sftp-server in sshd_config to match the
5664 our package (Closes: #68347)
5665 * Replaced OpenBSDh with OpenBSD in the init-script.
5666 * Changed location to original source in copyright.head
5667 * Changed behaviour of init-script when invoked with the option
5668 restart (Closes: #68706,#72560)
5669 * Added a note about -L option of scp to README.Debian
5670 * ssh won't print now the motd if invoked with -t option
5671 (Closes: #59933)
5672 * RFC.nroff.gz get's now converted into RFC.gz. (Closes: #63867)
5673 * Added a note about tcp-wrapper support to README.Debian
5674 (Closes: #72807,#22190)
5675 * Removed two unneeded options from building process.
5676 * Added sshd.pam into debian dir and install it.
5677 * Commented out unnecessary call to dh_installinfo.
5678 * Added a line to sshd.pam so that limits will be paid attention
5679 to (Closes: #66904)
5680 * Restart Option has a Timeout of 10 seconds (Closes: 51264)
5681 * scp won't override files anymore (Closes: 51955)
5682 * Removed pam_lastlog module, so that the lastlog is now printed
5683 only once (Closes: #71742, #68335, #69592, #71495, #77781)
5684 * If password is expired, openssh now forces the user to change it.
5685 (Closes: #51747)
5686 * scp should now have no more problems with shell-init-files that
5687 produces ouput (Closes: #56280,#59873)
5688 * ssh now prints the motd correctly (Closes: #66926)
5689 * ssh upgrade should disable ssh daemon only if users has choosen
5690 to do so (Closes: #67478)
5691 * ssh can now be installed suid (Closes: #70879)
5692 * Modified debian/rules to support hurd.
5693
5694 -- Christian Kurz <shorty@debian.org> Wed, 27 Dec 2000 20:06:57 +0100
5695
5696openssh (1:2.2.0p1-1.1) unstable; urgency=medium
5697
5698 * Non-Maintainer Upload
5699 * Check for new returns in the new libc
5700 (closes: #72803, #74393, #72797, #71307, #71702)
5701 * Link against libssl095a (closes: #66304)
5702 * Correct check for PermitRootLogin (closes: #69448)
5703
5704 -- Ryan Murray <rmurray@debian.org> Wed, 18 Oct 2000 00:48:18 -0700
5705
5706openssh (1:2.2.0p1-1) unstable; urgency=low
5707
5708 * New upstream release
5709
5710 -- Philip Hands <phil@hands.com> Mon, 11 Sep 2000 14:49:43 +0100
5711
5712openssh (1:2.1.1p4-3) unstable; urgency=low
5713
5714 * add rsh alternatives
5715 * add -S option to scp (using Tommi Virtanen's patch) (closes: #63097)
5716 * do the IPV4_DEFAULT thing properly this time
5717
5718 -- Philip Hands <phil@hands.com> Fri, 11 Aug 2000 18:14:37 +0100
5719
5720openssh (1:2.1.1p4-2) unstable; urgency=low
5721
5722 * reinstate manpage .out patch from 1:1.2.3
5723 * fix typo in postinst
5724 * only compile ssh with IPV4_DEFAULT
5725 * apply James Troup's patch to add a -o option to scp and updated manpage
5726
5727 -- Philip Hands <phil@hands.com> Sun, 30 Jul 2000 00:12:49 +0100
5728
5729openssh (1:2.1.1p4-1) unstable; urgency=low
5730
5731 * New upstream release
5732
5733 -- Philip Hands <phil@hands.com> Sat, 29 Jul 2000 14:46:16 +0100
5734
5735openssh (1:1.2.3-10) unstable; urgency=low
5736
5737 * add version to libpam-modules dependency, because old versions of
5738 pam_motd make it impossible to log in.
5739
5740 -- Philip Hands <phil@hands.com> Sat, 29 Jul 2000 13:28:22 +0100
5741
5742openssh (1:1.2.3-9) frozen unstable; urgency=low
5743
5744 * force location of /usr/bin/X11/xauth
5745 (closes: #64424, #66437, #66859) *RC*
5746 * typos in config (closes: #66779, #66780)
5747 * sshd_not_to_be_run could be assumed to be true, in error, if the config
5748 script died in an unusual way --- I've reversed this (closes: #66335)
5749 * Apply Zack Weinberg <zack@wolery.cumb.org>'s patch to ssh-askpass-ptk
5750 (closes: #65981)
5751 * change default for PermitRootLogin to "no" (closes: #66406)
5752
5753 -- Philip Hands <phil@hands.com> Tue, 11 Jul 2000 20:51:18 +0100
5754
5755openssh (1:1.2.3-8) frozen unstable; urgency=low
5756
5757 * get rid of Provides: rsh-server (this will mean that rstartd
5758 will need to change it's depends to deal with #63948, which I'm
5759 reopening) (closes: #66257)
5760 Given that this is also a trivial change, and is a reversal of a
5761 change that was mistakenly made after the freeze, I think this should
5762 also go into frozen.
5763
5764 -- Philip Hands <phil@hands.com> Wed, 28 Jun 2000 03:26:30 +0100
5765
5766openssh (1:1.2.3-7) frozen unstable; urgency=low
5767
5768 * check if debconf is installed before calling db_stop in postinst.
5769 This is required to allow ssh to be installed when debconf is not
5770 wanted, which probably makes it an RC upload (hopefully the last of
5771 too many).
5772
5773 -- Philip Hands <phil@hands.com> Wed, 28 Jun 2000 03:19:47 +0100
5774
5775openssh (1:1.2.3-6) frozen unstable; urgency=low
5776
5777 * fixed depressing little bug involving a line wrap looking like
5778 a blank line in the templates file *RC*
5779 (closes: #66090, #66078, #66083, #66182)
5780
5781 -- Philip Hands <phil@hands.com> Mon, 26 Jun 2000 00:45:05 +0100
5782
5783openssh (1:1.2.3-5) frozen unstable; urgency=low
5784
5785 * add code to prevent UseLogin exploit, although I think our PAM
5786 conditional code breaks UseLogin in a way that protects us from this
5787 exploit anyway. ;-) (closes: #65495) *RC*
5788 * Apply Zack Weinberg <zack@wolery.cumb.org>'s patch to fix keyboard
5789 grab vulnerability in ssh-askpass-gnome (closes: #64795) *RC*
5790 * stop redirection of sshd's file descriptors (introduced in 1:1.2.3-3)
5791 and use db_stop in the postinst to solve that problem instead
5792 (closes: #65104)
5793 * add Provides: rsh-server to ssh (closes: #63948)
5794 * provide config option not to run sshd
5795
5796 -- Philip Hands <phil@hands.com> Mon, 12 Jun 2000 23:05:11 +0100
5797
5798openssh (1:1.2.3-4) frozen unstable; urgency=low
5799
5800 * fixes #63436 which is *RC*
5801 * add 10 second pause in init.d restart (closes: #63844)
5802 * get rid of noenv in PAM mail line (closes: #63856)
5803 * fix host key path in make-ssh-known-hosts (closes: #63713)
5804 * change wording of SUID template (closes: #62788, #63436)
5805
5806 -- Philip Hands <phil@hands.com> Sat, 27 May 2000 11:18:06 +0100
5807
5808openssh (1:1.2.3-3) frozen unstable; urgency=low
5809
5810 * redirect sshd's file descriptors to /dev/null in init to
5811 prevent debconf from locking up during installation
5812 ** grave bug just submited by me **
5813
5814 -- Philip Hands <phil@hands.com> Thu, 20 Apr 2000 17:10:59 +0100
5815
5816openssh (1:1.2.3-2) frozen unstable; urgency=low
5817
5818 * allow user to select SUID status of /usr/bin/ssh (closes: 62462) ** RC **
5819 * suggest debconf
5820 * conflict with debconf{,-tiny} (<<0.2.17) so I can clean up the preinst
5821
5822 -- Philip Hands <phil@hands.com> Wed, 19 Apr 2000 17:49:15 +0100
5823
5824openssh (1:1.2.3-1) frozen unstable; urgency=low
5825
5826 * New upstream release
5827 * patch sshd to create extra xauth key required for localhost
5828 (closes: #49944) *** RC ***
5829 * FallbacktoRsh now defaults to ``no'' to match impression
5830 given in sshd_config
5831 * stop setting suid bit on ssh (closes: #58711, #58558)
5832 This breaks Rhosts authentication (which nobody uses) and allows
5833 the LD_PRELOAD trick to get socks working, so seems like a net benefit.
5834
5835 -- Philip Hands <phil@hands.com> Thu, 13 Apr 2000 20:01:54 +0100
5836
5837openssh (1:1.2.2-1.4) frozen unstable; urgency=low
5838
5839 * Recompile for frozen, contains fix for RC bug.
5840
5841 -- Tommi Virtanen <tv@debian.org> Tue, 29 Feb 2000 22:14:58 +0200
5842
5843openssh (1:1.2.2-1.3) unstable; urgency=low
5844
5845 * Integrated man page addition for PrintLastLog.
5846 This bug was filed on "openssh", and I ended up
5847 creating my own patch for this (closes: #59054)
5848 * Improved error message when ssh_exchange_identification
5849 gets EOF (closes: #58904)
5850 * Fixed typo (your -> you're) in debian/preinst.
5851 * Added else-clauses to config to make this upgradepath possible:
5852 oldssh -> openssh preinst fails due to upgrade_to_openssh=false
5853 -> ssh-nonfree -> openssh. Without these, debconf remembered
5854 the old answer, config didn't force asking it, and preinst always
5855 aborted (closes: #56596, #57782)
5856 * Moved setting upgrade_to_openssh isdefault flag to the place
5857 where preinst would abort. This means no double question to most
5858 users, people who currently suffer from "can't upgrade" may need
5859 to run apt-get install ssh twice. Did not do the same for
5860 use_old_init_script, as the situation is a bit different, and
5861 less common (closes: #54010, #56224)
5862 * Check for existance of ssh-keygen before attempting to use it in
5863 preinst, added warning for non-existant ssh-keygen in config. This
5864 happens when the old ssh is removed (say, due to ssh-nonfree getting
5865 installed).
5866
5867 -- Tommi Virtanen <tv@debian.org> Sun, 27 Feb 2000 21:36:43 +0200
5868
5869openssh (1:1.2.2-1.2) frozen unstable; urgency=low
5870
5871 * Non-maintainer upload.
5872 * Added configuration option PrintLastLog, default off due to PAM
5873 (closes: #54007, #55042)
5874 * ssh-askpass-{gnome,ptk} now provide ssh-askpass, making ssh's
5875 Suggests: line more accurate. Also closing related bugs fixed
5876 earlier, when default ssh-askpass moved to /usr/bin.
5877 (closes: #52403, #54741, #50607, #52298, #50967, #51661)
5878 * Patched to call vhangup, with autoconf detection and all
5879 (closes: #55379)
5880 * Added --with-ipv4-default workaround to a glibc bug causing
5881 slow DNS lookups, as per UPGRADING. Use -6 to really use
5882 IPv6 addresses. (closes: #57891, #58744, #58713, #57970)
5883 * Added noenv to PAM pam_mail line. Thanks to Ben Collins.
5884 (closes: #58429)
5885 * Added the UPGRADING file to the package.
5886 * Added frozen to the changelog line and recompiled before
5887 package was installed into the archive.
5888
5889 -- Tommi Virtanen <tv@debian.org> Fri, 25 Feb 2000 22:08:57 +0200
5890
5891openssh (1:1.2.2-1.1) frozen unstable; urgency=low
5892
5893 * Non-maintainer upload.
5894 * Integrated scp pipe buffer patch from Ben Collins
5895 <benc@debian.org>, should now work even if reading
5896 a pipe gives less than fstat st_blksize bytes.
5897 Should now work on Alpha and Sparc Linux (closes: #53697, #52071)
5898 * Made ssh depend on libssl09 (>= 0.9.4-3) (closes: #51393)
5899 * Integrated patch from Ben Collins <benc@debian.org>
5900 to do full shadow account locking and expiration
5901 checking (closes: #58165, #51747)
5902
5903 -- Tommi Virtanen <tv@debian.org> Tue, 22 Feb 2000 20:46:12 +0200
5904
5905openssh (1:1.2.2-1) frozen unstable; urgency=medium
5906
5907 * New upstream release (closes: #56870, #56346)
5908 * built against new libesd (closes: #56805)
5909 * add Colin Watson <cjw44@cam.ac.uk> =NULL patch
5910 (closes: #49902, #54894)
5911 * use socketpairs as suggested by Andrew Tridgell to eliminate rsync
5912 (and other) lockups
5913 * patch SSHD_PAM_SERVICE back into auth-pam.c, again :-/
5914 (closes: #49902, #55872, #56959)
5915 * uncoment the * line in ssh_config (closes: #56444)
5916
5917 * #54894 & #49902 are release critical, so this should go in frozen
5918
5919 -- Philip Hands <phil@hands.com> Wed, 9 Feb 2000 04:52:04 +0000
5920
5921openssh (1:1.2.1pre24-1) unstable; urgency=low
5922
5923 * New upstream release
5924
5925 -- Philip Hands <phil@hands.com> Fri, 31 Dec 1999 02:47:24 +0000
5926
5927openssh (1:1.2.1pre23-1) unstable; urgency=low
5928
5929 * New upstream release
5930 * excape ? in /etc/init.d/ssh (closes: #53269)
5931
5932 -- Philip Hands <phil@hands.com> Wed, 29 Dec 1999 16:50:46 +0000
5933
5934openssh (1:1.2pre17-1) unstable; urgency=low
5935
5936 * New upstream release
5937
5938 -- Philip Hands <phil@hands.com> Thu, 9 Dec 1999 16:50:40 +0000
5939
5940openssh (1:1.2pre16-1) unstable; urgency=low
5941
5942 * New upstream release
5943 * upstream release (1.2pre14) (closes: #50299)
5944 * make ssh depend on libwrap0 (>= 7.6-1.1) (closes: #50973, #50776)
5945 * dispose of grep -q broken pipe message in config script (closes: #50855)
5946 * add make-ssh-known-hosts (closes: #50660)
5947 * add -i option to ssh-copy-id (closes: #50657)
5948 * add check for *LK* in password, indicating a locked account
5949
5950 -- Philip Hands <phil@hands.com> Wed, 8 Dec 1999 22:59:38 +0000
5951
5952openssh (1:1.2pre13-1) unstable; urgency=low
5953
5954 * New upstream release
5955 * make sshd.c use SSHD_PAM_SERVICE and define it as "ssh" in debian/rules
5956 * remove duplicate line in /etc/pam.d/ssh (closes: #50310)
5957 * mention ssh -A option in ssh.1 & ssh_config
5958 * enable forwarding to localhost in default ssh_config (closes: #50373)
5959 * tweak preinst to deal with debconf being `unpacked'
5960 * use --with-tcp-wrappers (closes: #49545)
5961
5962 -- Philip Hands <phil@hands.com> Sat, 20 Nov 1999 14:20:04 +0000
5963
5964openssh (1:1.2pre11-2) unstable; urgency=low
5965
5966 * oops, just realised that I forgot to strip out the unpleasant
5967 fiddling mentioned below (which turned not to be a fix anyway)
5968
5969 -- Philip Hands <phil@hands.com> Mon, 15 Nov 1999 01:35:23 +0000
5970
5971openssh (1:1.2pre11-1) unstable; urgency=low
5972
5973 * New upstream release (closes: #49722)
5974 * add 2>/dev/null to dispose of spurious message casused by grep -q
5975 (closes: #49876, #49604)
5976 * fix typo in debian/control (closes: #49841)
5977 * Do some unpleasant fiddling with upgraded keys in the preinst, which
5978 should make the keylength problem go away. (closes: #49676)
5979 * make pam_start in sshd use ``ssh'' as the service name (closes: #49956)
5980 * If /etc/ssh/NOSERVER exist, stop sshd from starting (closes: #47107)
5981 * apply Ben Collins <bcollins@debian.org>'s shadow patch
5982 * disable lastlogin and motd printing if using pam (closes: #49957)
5983 * add ssh-copy-id script and manpage
5984
5985 -- Philip Hands <phil@hands.com> Fri, 12 Nov 1999 01:03:38 +0000
5986
5987openssh (1:1.2pre9-1) unstable; urgency=low
5988
5989 * New upstream release
5990 * apply Chip Salzenberg <chip@valinux.com>'s SO_REUSEADDR patch
5991 to channels.c, to make forwarded ports instantly reusable
5992 * replace Pre-Depend: debconf with some check code in preinst
5993 * make the ssh-add ssh-askpass failure message more helpful
5994 * fix the ssh-agent getopts bug (closes: #49426)
5995 * fixed typo on Suggests: line (closes: #49704, #49571)
5996 * tidy up ssh package description (closes: #49642)
5997 * make ssh suid (closes: #49635)
5998 * in preinst upgrade code, ensure ssh_host_keys is mode 600 (closes: #49606)
5999 * disable agent forwarding by default, for the similar reasons as
6000 X forwarding (closes: #49586)
6001
6002 -- Philip Hands <phil@hands.com> Tue, 9 Nov 1999 09:57:47 +0000
6003
6004openssh (1:1.2pre7-4) unstable; urgency=low
6005
6006 * predepend on debconf (>= 0.2.17) should now allow preinst questions
6007
6008 -- Philip Hands <phil@hands.com> Sat, 6 Nov 1999 10:31:06 +0000
6009
6010openssh (1:1.2pre7-3) unstable; urgency=low
6011
6012 * add ssh-askpass package using Tommi Virtanen's perl-tk script
6013 * add ssh-preconfig package cludge
6014 * add usage hints to ssh-agent.1
6015
6016 -- Philip Hands <phil@hands.com> Fri, 5 Nov 1999 00:38:33 +0000
6017
6018openssh (1:1.2pre7-2) unstable; urgency=low
6019
6020 * use pam patch from Ben Collins <bcollins@debian.org>
6021 * add slogin symlink to Makefile.in
6022 * change /usr/bin/login to LOGIN_PROGRAM define of /bin/login
6023 * sort out debconf usage
6024 * patch from Tommi Virtanen <tv@debian.org>'s makes ssh-add use ssh-askpass
6025
6026 -- Philip Hands <phil@hands.com> Thu, 4 Nov 1999 11:08:54 +0000
6027
6028openssh (1:1.2pre7-1) unstable; urgency=low
6029
6030 * New upstream release
6031
6032 -- Philip Hands <phil@hands.com> Tue, 2 Nov 1999 21:02:37 +0000
6033
6034openssh (1:1.2.0.pre6db1-2) unstable; urgency=low
6035
6036 * change the binary package name to ssh (the non-free branch of ssh has
6037 been renamed to ssh-nonfree)
6038 * make pam file comply with Debian standards
6039 * use an epoch to make sure openssh supercedes ssh-nonfree
6040
6041 -- Philip Hands <phil@hands.com> Sat, 30 Oct 1999 16:26:05 +0100
6042
6043openssh (1.2pre6db1-1) unstable; urgency=low
6044
6045 * New upstream source
6046 * sshd accepts logins now!
6047
6048 -- Dan Brosemer <odin@linuxfreak.com> Fri, 29 Oct 1999 11:13:38 -0500
6049
6050openssh (1.2.0.19991028-1) unstable; urgency=low
6051
6052 * New upstream source
6053 * Added test for -lnsl to configure script
6054
6055 -- Dan Brosemer <odin@linuxfreak.com> Thu, 28 Oct 1999 18:52:09 -0500
6056
6057openssh (1.2.0.19991027-3) unstable; urgency=low
6058
6059 * Initial release
6060
6061 -- Dan Brosemer <odin@linuxfreak.com> Wed, 27 Oct 1999 19:39:46 -0500
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 000000000..fcd68b77e
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,2 @@
1config.log
2debian/openssh-server.sshd.pam
diff --git a/debian/control b/debian/control
new file mode 100644
index 000000000..14506c5c1
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,240 @@
1Source: openssh
2Section: net
3Priority: standard
4Maintainer: Debian OpenSSH Maintainers <debian-ssh@lists.debian.org>
5Build-Depends: autotools-dev,
6 debhelper (>= 9.20160709~),
7 debhelper-compat (= 9),
8 dh-autoreconf,
9 dh-exec,
10 dh-runit (>= 2.8.8),
11 dpkg-dev (>= 1.16.1~),
12 libaudit-dev [linux-any],
13 libedit-dev,
14 libfido2-dev (>= 1.5.0) [linux-any],
15 libgtk-3-dev <!pkg.openssh.nognome>,
16 libkrb5-dev | heimdal-dev,
17 libpam0g-dev | libpam-dev,
18 libselinux1-dev [linux-any],
19 libssl-dev (>= 1.1.0g),
20 libsystemd-dev [linux-any],
21 libwrap0-dev | libwrap-dev,
22 pkg-config,
23 zlib1g-dev (>= 1:1.2.3),
24Standards-Version: 4.1.0
25Uploaders: Colin Watson <cjwatson@debian.org>,
26 Matthew Vernon <matthew@debian.org>,
27Homepage: http://www.openssh.com/
28Vcs-Git: https://salsa.debian.org/ssh-team/openssh.git
29Vcs-Browser: https://salsa.debian.org/ssh-team/openssh
30
31Package: openssh-client
32Architecture: any
33Depends: adduser (>= 3.10),
34 dpkg (>= 1.7.0),
35 passwd,
36 ${misc:Depends},
37 ${shlibs:Depends},
38Recommends: xauth,
39Conflicts: sftp,
40Breaks: openssh-sk-helper
41Replaces: openssh-sk-helper,
42 ssh,
43 ssh-krb5,
44Suggests: keychain,
45 libpam-ssh,
46 monkeysphere,
47 ssh-askpass,
48Provides: rsh-client,
49 ssh-client,
50Multi-Arch: foreign
51Description: secure shell (SSH) client, for secure access to remote machines
52 This is the portable version of OpenSSH, a free implementation of
53 the Secure Shell protocol as specified by the IETF secsh working
54 group.
55 .
56 Ssh (Secure Shell) is a program for logging into a remote machine
57 and for executing commands on a remote machine.
58 It provides secure encrypted communications between two untrusted
59 hosts over an insecure network. X11 connections and arbitrary TCP/IP
60 ports can also be forwarded over the secure channel.
61 It can be used to provide applications with a secure communication
62 channel.
63 .
64 This package provides the ssh, scp and sftp clients, the ssh-agent
65 and ssh-add programs to make public key authentication more convenient,
66 and the ssh-keygen, ssh-keyscan, ssh-copy-id and ssh-argv0 utilities.
67 .
68 In some countries it may be illegal to use any encryption at all
69 without a special permit.
70 .
71 ssh replaces the insecure rsh, rcp and rlogin programs, which are
72 obsolete for most purposes.
73
74Package: openssh-server
75Priority: optional
76Architecture: any
77Pre-Depends: ${misc:Pre-Depends},
78Depends: adduser (>= 3.9),
79 dpkg (>= 1.9.0),
80 libpam-modules (>= 0.72-9),
81 libpam-runtime (>= 0.76-14),
82 lsb-base (>= 4.1+Debian3),
83 openssh-client (= ${binary:Version}),
84 openssh-sftp-server,
85 procps,
86 ucf (>= 0.28),
87 ${misc:Depends},
88 ${shlibs:Depends},
89Recommends: default-logind | logind | libpam-systemd,
90 ncurses-term,
91 xauth,
92 ${openssh-server:Recommends},
93Conflicts: sftp,
94 ssh-socks,
95 ssh2,
96Replaces: openssh-client (<< 1:7.9p1-8),
97 ssh,
98 ssh-krb5,
99Breaks: ${runit:Breaks},
100Suggests: molly-guard,
101 monkeysphere,
102 ssh-askpass,
103 ufw,
104Provides: ssh-server,
105Multi-Arch: foreign
106Description: secure shell (SSH) server, for secure access from remote machines
107 This is the portable version of OpenSSH, a free implementation of
108 the Secure Shell protocol as specified by the IETF secsh working
109 group.
110 .
111 Ssh (Secure Shell) is a program for logging into a remote machine
112 and for executing commands on a remote machine.
113 It provides secure encrypted communications between two untrusted
114 hosts over an insecure network. X11 connections and arbitrary TCP/IP
115 ports can also be forwarded over the secure channel.
116 It can be used to provide applications with a secure communication
117 channel.
118 .
119 This package provides the sshd server.
120 .
121 In some countries it may be illegal to use any encryption at all
122 without a special permit.
123 .
124 sshd replaces the insecure rshd program, which is obsolete for most
125 purposes.
126
127Package: openssh-sftp-server
128Priority: optional
129Architecture: any
130Depends: ${misc:Depends},
131 ${shlibs:Depends},
132Recommends: openssh-server | ssh-server,
133Breaks: openssh-server (<< 1:6.5p1-5),
134Replaces: openssh-server (<< 1:6.5p1-5),
135Enhances: openssh-server,
136 ssh-server,
137Multi-Arch: foreign
138Description: secure shell (SSH) sftp server module, for SFTP access from remote machines
139 This is the portable version of OpenSSH, a free implementation of
140 the Secure Shell protocol as specified by the IETF secsh working
141 group.
142 .
143 Ssh (Secure Shell) is a program for logging into a remote machine
144 and for executing commands on a remote machine.
145 It provides secure encrypted communications between two untrusted
146 hosts over an insecure network. X11 connections and arbitrary TCP/IP
147 ports can also be forwarded over the secure channel.
148 It can be used to provide applications with a secure communication
149 channel.
150 .
151 This package provides the SFTP server module for the SSH server. It
152 is needed if you want to access your SSH server with SFTP. The SFTP
153 server module also works with other SSH daemons like dropbear.
154 .
155 OpenSSH's sftp and sftp-server implement revision 3 of the SSH filexfer
156 protocol described in:
157 .
158 http://www.openssh.com/txt/draft-ietf-secsh-filexfer-02.txt
159 .
160 Newer versions of the draft will not be supported, though some features
161 are individually implemented as extensions.
162
163Package: openssh-tests
164Priority: optional
165Architecture: any
166Depends: openssh-client (= ${binary:Version}),
167 openssh-server (= ${binary:Version}),
168 openssh-sftp-server (= ${binary:Version}),
169 openssl,
170 putty-tools (>= 0.67-2),
171 python3-twisted,
172 ${misc:Depends},
173 ${shlibs:Depends},
174Multi-Arch: foreign
175Description: OpenSSH regression tests
176 This package provides OpenSSH's regression test suite. It is mainly
177 intended for use with the autopkgtest system, though can also be run
178 directly using /usr/lib/openssh/regress/run-tests.
179
180Package: ssh
181Priority: optional
182Architecture: all
183Pre-Depends: dpkg (>= 1.17.5),
184Depends: openssh-client (>= ${binary:Version}),
185 openssh-server (>= ${binary:Version}),
186 ${misc:Depends},
187Multi-Arch: foreign
188Description: secure shell client and server (metapackage)
189 This metapackage is a convenient way to install both the OpenSSH client
190 and the OpenSSH server. It provides nothing in and of itself, so you
191 may remove it if nothing depends on it.
192
193Package: ssh-askpass-gnome
194Build-Profiles: <!pkg.openssh.nognome>
195Section: gnome
196Priority: optional
197Architecture: any
198Depends: openssh-client | ssh (>= 1:1.2pre7-4),
199 ${misc:Depends},
200 ${shlibs:Depends},
201Replaces: ssh (<< 1:3.5p1-3),
202Provides: ssh-askpass,
203Multi-Arch: foreign
204Description: interactive X program to prompt users for a passphrase for ssh-add
205 This has been split out of the main openssh-client package so that
206 openssh-client does not need to depend on GTK+.
207 .
208 You probably want the ssh-askpass package instead, but this is
209 provided to add to your choice and/or confusion.
210
211Package: openssh-client-udeb
212Build-Profiles: <!noudeb>
213Package-Type: udeb
214Section: debian-installer
215Priority: optional
216Architecture: any
217Depends: ${shlibs:Depends},
218XB-Installer-Menu-Item: 99999
219Description: secure shell client for the Debian installer
220 This is the portable version of OpenSSH, a free implementation of
221 the Secure Shell protocol as specified by the IETF secsh working
222 group.
223 .
224 This package provides the ssh client for use in debian-installer.
225
226Package: openssh-server-udeb
227Build-Profiles: <!noudeb>
228Package-Type: udeb
229Section: debian-installer
230Priority: optional
231Architecture: any
232Depends: ${shlibs:Depends},
233Description: secure shell server for the Debian installer
234 This is the portable version of OpenSSH, a free implementation of
235 the Secure Shell protocol as specified by the IETF secsh working
236 group.
237 .
238 This package provides the sshd server for use in debian-installer.
239 Since it is expected to be used in specialized situations (e.g. S/390
240 installs with no console), it does not provide any configuration.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 000000000..ef1bc8e69
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,247 @@
1Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2Upstream-Name: OpenSSH
3Upstream-Contact: openssh-unix-dev@mindrot.org
4Source: http://www.openssh.com/portable.html
5Comment:
6 The overall licence of the OpenSSH upstream code amounts to BSD-3-clause or
7 various less restrictive licences, with the additional restrictions that
8 derived versions must be clearly marked as such and that if derived works
9 are incompatible with the RFC-specified protocol then they must be called
10 by a name other than "ssh" or "Secure Shell".
11
12Files: *
13Copyright:
14 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
15 Markus Friedl
16 Theo de Raadt
17 Niels Provos
18 Dug Song
19 Aaron Campbell
20 Damien Miller
21 Kevin Steves
22 Daniel Kouril
23 Wesley Griffin
24 Per Allansson
25 Nils Nordman
26 Simon Wilkinson
27 Ben Lindstrom
28 Tim Rice
29 Andre Lucas
30 Chris Adams
31 Corinna Vinschen
32 Cray Inc.
33 Denis Parker
34 Gert Doering
35 Jakob Schlyter
36 Jason Downs
37 Juha Yrjölä
38 Michael Stone
39 Networks Associates Technology, Inc.
40 Solar Designer
41 Todd C. Miller
42 Wayne Schroeder
43 William Jones
44 Darren Tucker
45 Sun Microsystems
46 The SCO Group
47 Daniel Walsh
48 Red Hat, Inc
49 Simon Vallet / Genoscope
50 Internet Software Consortium
51 Reyk Floeter
52 Chad Mynhier
53License: OpenSSH
54 Tatu Ylonen's original licence is as follows (excluding some terms about
55 third-party code which are no longer relevant; see the LICENCE file for
56 details):
57 .
58 As far as I am concerned, the code I have written for this software
59 can be used freely for any purpose. Any derived versions of this
60 software must be clearly marked as such, and if the derived work is
61 incompatible with the protocol description in the RFC file, it must be
62 called by a name other than "ssh" or "Secure Shell".
63 .
64 Note that any information and cryptographic algorithms used in this
65 software are publicly available on the Internet and at any major
66 bookstore, scientific library, and patent office worldwide. More
67 information can be found e.g. at "http://www.cs.hut.fi/crypto".
68 .
69 The legal status of this program is some combination of all these
70 permissions and restrictions. Use only at your own responsibility.
71 You will be responsible for any legal consequences yourself; I am not
72 making any claims whether possessing or using this is legal or not in
73 your country, and I am not taking any responsibility on your behalf.
74 .
75 Most remaining components of the software are provided under a standard
76 2-term BSD licence:
77 .
78 Redistribution and use in source and binary forms, with or without
79 modification, are permitted provided that the following conditions
80 are met:
81 1. Redistributions of source code must retain the above copyright
82 notice, this list of conditions and the following disclaimer.
83 2. Redistributions in binary form must reproduce the above copyright
84 notice, this list of conditions and the following disclaimer in the
85 documentation and/or other materials provided with the distribution.
86 .
87 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
88 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
89 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
90 IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
91 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
92 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
93 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
94 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
95 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
96 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
97 .
98 Some code is licensed under an ISC-style license, to the following
99 copyright holders:
100 .
101 Permission to use, copy, modify, and distribute this software for any
102 purpose with or without fee is hereby granted, provided that the above
103 copyright notice and this permission notice appear in all copies.
104 .
105 THE SOFTWARE IS PROVIDED "AS IS" AND TODD C. MILLER DISCLAIMS ALL
106 WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
107 OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL TODD C. MILLER BE LIABLE
108 FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
109 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
110 OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
111 CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
112
113Files: ssh-keyscan.*
114Copyright: 1995, 1996 David Mazieres <dm@lcs.mit.edu>
115License: Mazieres-BSD-style
116 Modification and redistribution in source and binary forms is
117 permitted provided that due credit is given to the author and the
118 OpenBSD project by leaving this copyright notice intact.
119
120Files: rijndael.*
121License: public-domain
122 This code is from a reference implementation of the Rijndael cipher which
123 has been dedicated to the public domain.
124 .
125 @version 3.0 (December 2000)
126 .
127 Optimised ANSI C code for the Rijndael cipher (now AES)
128 .
129 @author Vincent Rijmen <vincent.rijmen@esat.kuleuven.ac.be>
130 @author Antoon Bosselaers <antoon.bosselaers@esat.kuleuven.ac.be>
131 @author Paulo Barreto <paulo.barreto@terra.com.br>
132 .
133 This code is hereby placed in the public domain.
134 .
135 THIS SOFTWARE IS PROVIDED BY THE AUTHORS ''AS IS'' AND ANY EXPRESS
136 OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
137 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
138 ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE
139 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
140 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
141 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
142 BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
143 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
144 OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
145 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
146
147Files: loginrec.c openbsd-compat/* scp.c
148Copyright:
149 1983, 1995-1997 Eric P. Allman
150 1999 Aaron Campbell
151 1993 by Digital Equipment Corporation
152 2000 Andre Lucas
153 1999-2010 Damien Miller
154 1997-2010 Todd C. Miller
155 1995, 1996, 1998, 1999, 2008 Theo de Raadt
156 2003 Constantin S. Svintsoff <kostik@iclub.nsu.ru>
157 1980, 1983, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995 The Regents of the University of California
158License: BSD-3-clause
159 Redistribution and use in source and binary forms, with or without
160 modification, are permitted provided that the following conditions
161 are met:
162 1. Redistributions of source code must retain the above copyright
163 notice, this list of conditions and the following disclaimer.
164 2. Redistributions in binary form must reproduce the above copyright
165 notice, this list of conditions and the following disclaimer in the
166 documentation and/or other materials provided with the distribution.
167 3. Neither the name of the University nor the names of its contributors
168 may be used to endorse or promote products derived from this software
169 without specific prior written permission.
170 .
171 THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
172 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
173 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
174 ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
175 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
176 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
177 OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
178 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
179 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
180 OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
181 SUCH DAMAGE.
182
183Files: md5crypt.*
184Copyright: Poul-Henning Kamp
185License: Beer-ware
186 "THE BEER-WARE LICENSE" (Revision 42):
187 <phk@login.dknet.dk> wrote this file. As long as you retain this
188 notice you can do whatever you want with this stuff. If we meet
189 some day, and you think this stuff is worth it, you can buy me a
190 beer in return. Poul-Henning Kamp
191
192Files: openbsd-compat/bsd-snprintf.c
193Copyright: 1995 Patrick Powell
194License: Powell-BSD-style
195 This code is based on code written by Patrick Powell
196 (papowell@astart.com) It may be used for any purpose as long as this
197 notice remains intact on all source code distributions
198
199Files: openbsd-compat/sigact.*
200Copyright: 1998, 2000 Free Software Foundation, Inc.
201License: Expat-with-advertising-restriction
202 Permission is hereby granted, free of charge, to any person obtaining a
203 copy of this software and associated documentation files (the
204 "Software"), to deal in the Software without restriction, including
205 without limitation the rights to use, copy, modify, merge, publish,
206 distribute, distribute with modifications, sublicense, and/or sell
207 copies of the Software, and to permit persons to whom the Software is
208 furnished to do so, subject to the following conditions:
209 .
210 The above copyright notice and this permission notice shall be included
211 in all copies or substantial portions of the Software.
212 .
213 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
214 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
215 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
216 IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
217 DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
218 OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
219 THE USE OR OTHER DEALINGS IN THE SOFTWARE.
220 .
221 Except as contained in this notice, the name(s) of the above copyright
222 holders shall not be used in advertising or otherwise to promote the
223 sale, use or other dealings in this Software without prior written
224 authorization.
225
226Files: debian/*
227Copyright: Matthew Vernon, Colin Watson
228License: BSD-2-clause
229 Redistribution and use in source and binary forms, with or without
230 modification, are permitted provided that the following conditions
231 are met:
232 1. Redistributions of source code must retain the above copyright
233 notice, this list of conditions and the following disclaimer.
234 2. Redistributions in binary form must reproduce the above copyright
235 notice, this list of conditions and the following disclaimer in the
236 documentation and/or other materials provided with the distribution.
237 .
238 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
239 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
240 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
241 IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
242 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
243 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
244 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
245 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
246 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
247 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/debian/faq.html b/debian/faq.html
new file mode 100644
index 000000000..7f0252891
--- /dev/null
+++ b/debian/faq.html
@@ -0,0 +1,1187 @@
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<title>OpenSSH FAQ</title>
5<link rev= "made" href= "mailto:www@openbsd.org">
6<meta name= "resource-type" content= "document">
7<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
8<meta name= "description" content= "the OpenSSH FAQ page">
9<meta name= "keywords" content= "OpenSSH,SSH,Secure Shell,faq">
10<meta name= "distribution" content= "global">
11<meta name= "copyright" content= "This document copyright 1999-2010 OpenBSD.">
12</head>
13
14<body bgcolor= "#ffffff" text= "#000000" link= "#23238E">
15<a href="http://www.openssh.com/index.html"><img alt="[OpenSSH]" height="30" width="141" src="images/smalltitle.gif" border="0"></a>
16<p>
17
18<h1>OpenSSH FAQ (Frequently asked questions)</h1>
19
20<hr>
21
22<blockquote>
23<h3><a href= "#1.0">1.0 - What Is OpenSSH and Where Can I Get It?</a></h3>
24<ul>
25<li><a href= "#1.1">1.1 - What is OpenSSH and where can I download it?</a>
26<li><a href= "#1.2">1.2 - Why should it be used?</a>
27<li><a href= "#1.3">1.3 - What Operating Systems are supported?</a>
28<li><a href= "#1.4">1.4 - What about copyright, usage and patents?</a>
29<li><a href= "#1.5">1.5 - Where should I ask for help?</a>
30<li><a href= "#1.6">1.6 - I have found a bug. Where do I report it?</a>
31</ul>
32
33<h3><a href= "#2.0">2.0 - General Questions</a></h3>
34<ul>
35<li><a href= "#2.1">2.1 - Why does ssh/scp make connections from low-numbered ports. My firewall blocks these.</a>
36<li><a href= "#2.2">2.2 - Why is the ssh client setuid root?</a>
37<li><a href= "#2.3">2.3 - Why does SSH 2.3 have problems interoperating with OpenSSH 2.1.1?</a>
38<li><a href= "#2.4">2.4 - Why does OpenSSH print: Dispatch protocol error: type 20</a>
39<li><a href= "#2.5">2.5 - Old versions of commercial SSH encrypt host keys with IDEA.</a>
40<li><a href= "#2.6">2.6 - What are these warning messages about key lengths?</a>
41<li><a href= "#2.7">2.7 - X11 and/or agent forwarding does not work.</a>
42<li><a href= "#2.8">2.8 - After upgrading OpenSSH I lost SSH2 support.</a>
43<li><a href= "#2.9">2.9 - sftp/scp fails at connection, but ssh is OK.</a>
44<li><a href= "#2.10">2.10 - Will you add [foo] to scp?</a>
45<li><a href= "#2.11">2.11 - How do I use port forwarding?</a>
46<li><a href= "#2.12">2.12 - My ssh connection freezes or drops out after N minutes of inactivity.</a>
47<li><a href= "#2.13">2.13 - How do I use scp to copy a file with a colon in it?</a>
48<li><a href= "#2.14">2.14 - Why does OpenSSH report its version to clients?</a>
49</ul>
50
51<h3><a href= "#3.0">3.0 - Portable OpenSSH Questions</a></h3>
52<ul>
53<li><a href= "#3.1">3.1 - Spurious PAM authentication messages in logfiles.</a>
54<li><a href= "#3.2">3.2 - Empty passwords not allowed with PAM authentication.</a>
55<li><a href= "#3.3">3.3 - ssh(1) takes a long time to connect or log in</a>
56<li><a href= "#3.4">3.4 - "Can't locate module net-pf-10" messages in log under Linux.</a>
57<li><a href= "#3.5">3.5 - Password authentication doesn't work (eg on Slackware 7.0 or Red Hat Linux 6.x)</a>
58<li><a href= "#3.6">3.6 - Configure or sshd(8) complain about lack of RSA support</a>
59<li><a href= "#3.7">3.7 - "scp: command not found" errors</a>
60<li><a href= "#3.8">3.8 - Unable to read passphrase</a>
61<li><a href= "#3.9">3.9 - 'configure' missing or make fails</a>
62<li><a href= "#3.10">3.10 - Hangs when exiting ssh</a>
63<li><a href= "#3.11">3.11 - Why does ssh hang on exit?</a>
64<li><a href= "#3.12">3.12 - I upgraded to OpenSSH 3.1 and X11 forwarding stopped working.</a>
65<li><a href= "#3.13">3.13 - I upgraded to OpenSSH 3.8 and some X11 programs stopped working.</a>
66<li><a href= "#3.14">3.14 - I copied my public key to authorized_keys but public-key authentication still doesn't work.</a>
67<li><a href= "#3.15">3.15 - OpenSSH versions and PAM behaviour.</a>
68<li><a href= "#3.16">3.16 - Why doesn't "w" or "who" on AIX 5.x show users logged in via ssh?</a>
69</ul>
70
71</blockquote>
72
73<hr>
74
75<h2><u><a name= "1.0">1.0 - What Is OpenSSH and Where Can I Get It?</a></u></h2>
76
77<h2><a name= "1.1">1.1 - What is OpenSSH and where can I download it?</a></h2>
78
79OpenSSH provides end-to-end encrypted replacement of applications such as
80telnet, rlogin, and ftp.
81Unlike these legacy applications, OpenSSH never passes anything
82(including username and password) over the wire in unencrypted form, and
83provides host authentication, to verify that you really are talking to
84the system that you think you are and that no one else can take over
85that session.
86
87<p>
88The OpenSSH suite includes the
89<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=ssh&amp;sektion=1">ssh(1)</a>
90program which replaces rlogin and telnet, and
91<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=scp&amp;sektion=1">scp(1)</a>
92which replaces
93<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=rcp&amp;sektion=1">rcp(1)</a> and
94<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=ftp&amp;sektion=1">ftp(1)</a>.
95OpenSSH has also added
96<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=sftp&amp;sektion=1">sftp(1)</a> and
97<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=sftp-server&amp;sektion=8">sftp-server(8)</a>
98which implement an easier solution for file-transfer. This is based upon the
99<a href="http://www.openssh.com/txt/draft-ietf-secsh-filexfer-02.txt">secsh-filexfer</a> IETF draft.
100
101
102<p><strong>OpenSSH consists of a number of programs.</strong>
103
104<ul>
105<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=sshd&amp;sektion=8">sshd(8)</a> - Server program run on the server machine. This listens for connections from client machines, and whenever it receives a connection, it performs authentication and starts serving the client.
106Its behaviour is controlled by the config file <i><a
107href="http://www.openbsd.org/cgi-bin/man.cgi?query=sshd_config&amp;sektion=5">
108sshd_config(5)</a></i>.
109<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=ssh&amp;sektion=1">ssh(1)</a> - This is the client program used to log into another machine or to execute commands on the other machine. <i>slogin</i> is another name for this program.
110Its behaviour is controlled by the global config file <i><a
111href="http://www.openbsd.org/cgi-bin/man.cgi?query=ssh_config&amp;sektion=5">
112ssh_config(5)</a></i> and individual users' <i>$HOME/.ssh/config</i> files.
113<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=scp&amp;sektion=1">scp(1)</a> - Securely copies files from one machine to another.
114<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=ssh-keygen&amp;sektion=1">ssh-keygen(1)</a> - Used to create Pubkey Authentication (RSA or DSA) keys (host keys and user authentication keys).
115<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=ssh-agent&amp;sektion=1">ssh-agent(1)</a> - Authentication agent. This can be used to hold RSA keys for authentication.
116<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=ssh-add&amp;sektion=1">ssh-add(1)</a> - Used to register new keys with the agent.
117<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=sftp-server&amp;sektion=8">sftp-server(8)</a> - SFTP server subsystem.
118<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=sftp&amp;sektion=1">sftp(1)</a> - Secure file transfer program.
119<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=ssh-keyscan&amp;sektion=1">ssh-keyscan(1)</a> - gather ssh public keys.
120<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=ssh-keysign&amp;sektion=8">ssh-keysign(8)</a> - ssh helper program for hostbased authentication.
121</ul>
122
123<h3>Downloading</h3>
124
125<p>
126The most recent version of OpenSSH is included with the current
127distribution of <a href="http://www.openbsd.org/">OpenBSD</a>, and
128installed as part of a basic install.
129
130<p>
131Today, most other operating systems include some version of OpenSSH
132(often re-badged or privately labeled), so most users can immediately
133use it.
134However, sometimes the included versions are quite old, and missing
135features of the current release of OpenSSH, and you may wish to install
136the current version, or install it on one of the few OSs that lacked it,
137and where the OS publisher does not make a modern version available.
138You may also wish to use OpenSSH on your embedded application.
139
140<p>
141Non-OpenBSD users will want to download, compile and install the
142multi-platform <a href="http://www.openssh.com/portable.html">Portable</a> distribution from a
143<a href="http://www.openssh.com/portable.html#mirrors">mirror</a> near you.
144
145
146<h2><a name= "1.2">1.2 - Why should it be used?</a></h2>
147
148<p>
149OpenSSH is a suite of tools to help secure your network
150connections. Here is a list of features:
151
152
153<ul>
154 <li>Strong authentication. Closes several security holes (e.g., IP, routing, and DNS spoofing).
155 <li>Improved privacy. All communications are automatically and transparently encrypted.
156 <li>Secure X11 sessions. The program automatically sets DISPLAY on the server machine, and forwards any X11 connections over the secure channel.
157 <li>Arbitrary TCP/IP ports can be redirected through the encrypted channel in both directions (e.g., for e-cash transactions).
158 <li>No retraining needed for normal users.
159 <li>Never trusts the network. Minimal trust on the remote side of the connection. Minimal trust on domain name servers. Pure RSA authentication never trusts anything but the private key.
160 <li>Client RSA-authenticates the server machine in the beginning of every connection to prevent trojan horses (by routing or DNS spoofing) and man-in-the-middle attacks, and the server RSA-authenticates the client machine before accepting <i>.rhosts</i> or <i>/etc/hosts.equiv</i> authentication (to prevent DNS, routing, or IP-spoofing).
161 <li>Host authentication key distribution can be centrally by the administration, automatically when the first connection is made to a machine.
162 <li>Any user can create any number of user authentication RSA keys for his/her own use.
163 <li>The server program has its own server RSA key which is automatically regenerated every hour.
164 <li>An authentication agent, running in the user's laptop or local workstation, can be used to hold the user's RSA authentication keys.
165 <li>The software can be installed and used (with restricted functionality) even without root privileges.
166 <li>The client is customizable in system-wide and per-user configuration files.
167 <li>Optional compression of all data with gzip (including forwarded X11 and TCP/IP port data), which may result in significant speedups on slow connections.
168 <li>Complete replacement for rlogin, rsh, and rcp.
169</ul>
170
171<p>
172Currently, almost all communications in computer networks are done
173without encryption. As a consequence, anyone who has access to any
174machine connected to the network can listen in on any communication.
175This is being done by hackers, curious administrators, employers,
176criminals, industrial spies, and governments. Some networks leak off
177enough electromagnetic radiation that data may be captured even from a
178distance.
179
180
181<p>
182When you log in, your password goes in the network in plain
183text. Thus, any listener can then use your account to do any evil he
184likes. Many incidents have been encountered worldwide where crackers
185have started programs on workstations without the owner's knowledge
186just to listen to the network and collect passwords. Programs for
187doing this are available on the Internet, or can be built by a
188competent programmer in a few hours.
189
190
191<p>
192Businesses have trade secrets, patent applications in preparation,
193pricing information, subcontractor information, client data, personnel
194data, financial information, etc. Currently, anyone with access to
195the network (any machine on the network) can listen to anything that
196goes in the network, without any regard to normal access restrictions.
197
198
199<p>
200Many companies are not aware that information can so easily be
201recovered from the network. They trust that their data is safe
202since nobody is supposed to know that there is sensitive information
203in the network, or because so much other data is transferred in the
204network. This is not a safe policy.
205
206
207<h2><a name= "1.3">1.3 - What operating systems are supported?</a></h2>
208
209<p>
210Even though OpenSSH is developed on
211<a href="http://www.openbsd.org/">OpenBSD</a> a wide variety of
212ports to other operating systems exist. The portable version of OpenSSH
213is headed by <a href="mailto:djm@openbsd.org">Damien Miller</a>.
214For a quick overview of the portable version of OpenSSH see
215<a href="http://www.openssh.com/portable.html">OpenSSH Portable Release</a>.
216Currently, the supported operating systems are:
217
218
219<ul>
220 <li>OpenBSD
221 <li>NetBSD
222 <li>FreeBSD
223 <li>AIX
224 <li>HP-UX
225 <li>IRIX
226 <li>Linux
227 <li>NeXT
228 <li>SCO
229 <li>SNI/Reliant Unix
230 <li>Solaris
231 <li>Digital Unix/Tru64/OSF
232 <li>Mac OS X
233 <li>Cygwin
234</ul>
235
236<p>
237A list of vendors that include OpenSSH in their distributions
238is located in the <a href="http://www.openssh.com/users.html">OpenSSH Users page</a>.
239
240<h2><a name= "1.4">1.4 - What about copyrights, usage and patents?</a></h2>
241<p>
242The OpenSSH developers have tried very hard to keep OpenSSH free of any
243patent or copyright problems. To do this, some options had to be
244stripped from OpenSSH. Namely support for patented algorithms.
245
246<p>
247OpenSSH does not support any patented transport algorithms. In SSH1 mode,
248only 3DES and Blowfish are available options. In SSH2 mode, only 3DES,
249Blowfish, CAST128, Arcfour and AES can be selected.
250The patented IDEA algorithm is not supported.
251
252<p>
253OpenSSH provides support for both SSH1 and SSH2 protocols.
254
255<p>
256Since the RSA patent has expired, there are no restrictions on the use
257of RSA algorithm using software, including OpenBSD.
258
259<h2><a name= "1.5">1.5 - Where should I ask for help?</a></h2>
260<p>
261There are many places to turn to for help. In addition to the main
262<a href="http://www.openssh.com/index.html">OpenSSH website</a>,
263there are many mailing lists to try. Before trying any mailing lists,
264please search through all mailing list archives to see if your question
265has already been answered. The OpenSSH Mailing List has been archived and
266put in searchable form and can be found at
267<a href="http://marc.info/?l=openssh-unix-dev&amp;r=1&amp;w=2">marc.info</a>.
268
269<p>
270For more information on subscribing to OpenSSH related mailing lists,
271please see <a href="http://www.openssh.com/list.html">OpenSSH Mailing lists</a>.
272
273<h2><a name= "1.6">1.6 - I have found a bug. Where do I report it?</a></h2>
274<p>
275Information about submitting bug reports can be found at the OpenSSH
276<a href="http://www.openssh.com/report.html">Reporting bugs</a> page.
277<p>
278If you wish to report a security bug, please contact the private developers
279list &lt;<a href="mailto:openssh@openssh.com">openssh@openssh.com</a>&gt;.
280
281<h2><u><a name= "2.0">2.0 - General Questions</a></u></h2>
282
283<h2><a name= "2.1">2.1 - Why does ssh/scp make connections from low-numbered ports.</a></h2>
284<p>
285The OpenSSH client uses low numbered ports for rhosts and rhosts-rsa
286authentication because the server needs to trust the username provided by
287the client. To get around this, you can add the below example to your
288<i>ssh_config</i> or <i>~/.ssh/config</i> file.
289
290
291<blockquote>
292<table border=0 width="800">
293 <tr>
294 <td nowrap bgcolor="#EEEEEE">
295<b>UsePrivilegedPort no</b>
296 </td>
297 </tr>
298</table>
299</blockquote>
300
301<p>
302Or you can specify this option on the command line, using the <b>-o</b>
303option to
304<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=ssh&amp;sektion=1">ssh(1)</a> command.
305
306<blockquote>
307<table border=0 width="800">
308 <tr>
309 <td nowrap bgcolor="#EEEEEE">
310$ <b>ssh -o "UsePrivilegedPort no" host.com</b>
311 </td>
312 </tr>
313</table>
314</blockquote>
315
316<h2><a name= "2.2">2.2 - Why is the ssh client setuid root?</a></h2>
317
318<p>
319In conjunction with the previous question, (<a href="#2.1">2.1</a>)
320OpenSSH needs root authority to be able to bind to low-numbered ports to
321facilitate <i>rhosts authentication</i>.
322A privileged port is also required for rhosts-rsa authentication to older
323SSH releases.
324
325<p>
326Additionally, for both <i>rhosts-rsa authentication</i> (in protocol
327version 1) and <i>hostbased authentication</i> (in protocol version 2)
328the ssh client needs to access the <i>private host key</i> in order to
329authenticate the client machine to the server.
330OpenSSH versions prior to 3.3 required the <code>ssh</code> binary to be
331setuid root to enable this, and you may safely remove it if you don't
332want to use these authentication methods.
333
334<p>
335Starting in OpenSSH 3.3, <code>ssh</code> is not setuid by default. <a
336href="http://www.openbsd.org/cgi-bin/man.cgi?query=ssh-keysign">ssh-keysign</a>,
337is used for access to the private hosts keys, and ssh does not use privileged
338source ports by default. If you wish to use a privileged source port, you must
339manually set the setuid bit on <code>ssh</code>.
340
341<h2><a name= "2.3">2.3 - Why does SSH 2.3 have problems interoperating with OpenSSH 2.1.1?</a></h2>
342
343<p>
344SSH 2.3 and earlier versions contain a flaw in their HMAC implementation.
345Their code was not supplying the full data block output from the digest,
346and instead always provided 128 bits. For longer digests, this caused
347SSH 2.3 to not interoperate with OpenSSH.
348
349<p>
350OpenSSH 2.2.0 detects that SSH 2.3 has this flaw. Recent versions of SSH
351will have this bug fixed. Or you can add the following to
352SSH 2.3 <i>sshd2_config</i>.
353
354
355<blockquote>
356<table border=0 width="800">
357 <tr>
358 <td nowrap bgcolor="#EEEEEE">
359<b>Mac hmac-md5</b>
360 </td>
361 </tr>
362</table>
363</blockquote>
364
365<h2><a name= "2.4">2.4 - Why does OpenSSH print: Dispatch protocol error: type 20</a></h2>
366
367<p>
368Problems in interoperation have been seen because older versions of
369OpenSSH did not support session rekeying. However the commercial SSH 2.3
370tries to negotiate this feature, and you might experience connection
371freezes or see the error message &quot;<b>Dispatch protocol error:
372type 20 </b>&quot;.
373To solve this problem, either upgrade to a recent OpenSSH release or
374disable rekeying by adding the following to your commercial SSH 2.3's
375<i>ssh2_config</i> or <i>sshd2_config</i>.
376
377
378<blockquote>
379<table border=0 width="800">
380 <tr>
381 <td nowrap bgcolor="#EEEEEE">
382<b>RekeyIntervalSeconds 0</b>
383 </td>
384 </tr>
385</table>
386</blockquote>
387
388<h2><a name= "2.5">2.5 - Old versions of commercial SSH encrypt host keys with IDEA.</a></h2>
389
390<p>
391The old versions of SSH used a patented algorithm to encrypt their
392<i>/etc/ssh/ssh_host_key</i>. This problem will manifest as
393<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=sshd&amp;sektion=8">sshd(8)</a>
394not being able to read its host key. To solve this, use the command below
395to convert your ssh_host_key to use 3DES.
396<b>NOTE:</b> Use the
397<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=ssh-keygen&amp;sektion=1">ssh-keygen(1)</a>
398program from the Commercial SSH product, *NOT* OpenSSH for the example
399below.
400
401
402<blockquote>
403<table border=0 width="800">
404 <tr>
405 <td nowrap bgcolor="#EEEEEE">
406# <b>ssh-keygen -u -f /etc/ssh/ssh_host_key</b>
407 </td>
408 </tr>
409</table>
410</blockquote>
411
412<h2><a name= "2.6">2.6 - What are these warning messages about key lengths</a></h2>
413
414<p>
415Commercial SSH's
416<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=ssh-keygen&amp;sektion=1">ssh-keygen(1)</a>
417program contained a bug which caused it to occasionally generate Pubkey
418Authentication (RSA or DSA) keys which had their Most Significant Bit
419(MSB) unset. Such keys were advertised as being full-length, but are
420actually, half the time, smaller than advertised.
421
422<p>
423OpenSSH will print warning messages when it encounters such keys. To rid
424yourself of these message, edit your <i>known_hosts</i> files and replace the
425incorrect key length (usually "1024") with the correct key length
426(usually "1023").
427
428<h2><a name= "2.7">2.7 - X11 and/or agent forwarding does not work.</a></h2>
429
430<p>
431Check your <i>ssh_config</i> and <i>sshd_config</i>. The default
432configuration files disable authentication agent and X11 forwarding. To
433enable it, put the line below in <i>sshd_config</i>:
434
435<blockquote>
436<table border=0 width="800">
437 <tr>
438 <td nowrap bgcolor="#EEEEEE">
439<b>X11Forwarding yes</b>
440 </td>
441 </tr>
442</table>
443</blockquote>
444
445<p>
446and put the following lines in <i>ssh_config</i>:
447
448<blockquote>
449<table border=0 width="800">
450 <tr>
451 <td nowrap bgcolor="#EEEEEE">
452<b>ForwardAgent yes</b><br>
453<b>ForwardX11 yes</b>
454 </td>
455 </tr>
456</table>
457</blockquote>
458
459<p>
460X11 forwarding requires a working <a
461href="http://www.openbsd.org/cgi-bin/man.cgi?query=xauth&amp;sektion=1"
462>xauth(1)</a> binary. On OpenBSD this is in the <i>xbase</i> file
463set but will probably be different on other platforms. For OpenSSH
464Portable, xauth must be either found at configure time or specified
465via <b>XAuthLocation</b> in sshd_config(5) and ssh_config(5).
466
467<p>
468Note on agent interoperability: There are two different and
469incompatible agent forwarding mechanisms within the SSH2 protocol.
470OpenSSH has always used an extension of the original SSH1 agent
471requests, however some commercial products use a different, non-free
472agent forwarding protocol. This means that agent forwarding cannot
473be used between OpenSSH and those products.
474
475<p>
476<b>NOTE:</b> For users of Linux Mandrake 7.2, Mandrake modifies the
477<i>XAUTHORITY</i> environment variable in <i>/etc/skel/.bashrc</i>,
478and thus any bash user's home directory. This variable is set by OpenSSH
479and for either of the above options to work, you need to comment out
480the line:
481
482
483<blockquote>
484<table border=0 width="800">
485 <tr>
486 <td nowrap bgcolor="#EEEEEE">
487<b># export XAUTHORITY=$HOME/.Xauthority</b>
488 </td>
489 </tr>
490</table>
491</blockquote>
492
493<h2><a name= "2.8">2.8 - After upgrading OpenSSH I lost SSH2 support.</a></h2>
494
495<p>
496Between versions changes can be made to <i>sshd_config</i> or
497<i>ssh_config</i>. You should always check on these changes when upgrading
498versions of OpenSSH. After OpenSSH Version 2.3.0 you need to add the
499following to your <i>sshd_config</i>:
500
501
502<blockquote>
503<table border=0 width="800">
504 <tr>
505 <td nowrap bgcolor="#EEEEEE">
506<b>HostKey /etc/ssh_host_dsa_key</b><br>
507<b>HostKey /etc/ssh_host_rsa_key</b>
508 </td>
509 </tr>
510</table>
511</blockquote>
512
513<h2><a name= "2.9">2.9 - sftp/scp fails at connection, but ssh is OK.</a></h2>
514
515<p>
516sftp and/or scp may fail at connection time if you have shell
517initialization (.profile, .bashrc, .cshrc, etc) which produces output
518for non-interactive sessions. This output confuses the sftp/scp client.
519You can verify if your shell is doing this by executing:
520
521<blockquote>
522<table border=0 width="800">
523 <tr>
524 <td nowrap bgcolor="#EEEEEE">
525<b>ssh yourhost /usr/bin/true</b>
526 </td>
527 </tr>
528</table>
529</blockquote>
530
531<p>
532If the above command produces any output, then you need to modify your
533shell initialization.
534
535<h2><a name= "2.10">2.10 - Will you add [foo] to scp?</a></h2>
536
537<p>
538Short Answer: no.
539
540<p>
541Long Answer: scp is not standardized. The closest thing it has to a
542specification is "what rcp does". Since the same command is used on both ends
543of the connection, adding features or options risks breaking interoperability with other
544implementations.
545
546<p>
547New features are more likely in sftp, since the protocol is standardized
548(well, a <a href="http://www.ietf.org/html.charters/OLD/secsh-charter.html">
549draft standard</a>), extensible, and the client and server are decoupled.
550
551<h2><a name= "2.11">2.11 - How do I use port forwarding?</a></h2>
552
553<p>
554If the remote server is running sshd(8), it may be possible to
555``tunnel'' certain services via ssh. This may be desirable, for
556example, to encrypt POP or SMTP connections, even though the software
557does not directly support encrypted communications. Tunnelling uses
558port forwarding to create a connection between the client and server.
559The client software must be able to specify a non-standard port to
560connect to for this to work.
561
562<p>
563The idea is that the user connects to the remote host using ssh,
564and specifies which port on the client's machine should be used to
565forward connections to the remote server. After that it is possible
566to start the service which is to be encrypted (e.g. fetchmail, irc)
567on the client machine, specifying the same local port passed to
568ssh, and the connection will be tunnelled through ssh. By default,
569the system running the forward will only accept connections from
570itself.
571
572<p>
573The options most relevant to tunnelling are the -L and -R options,
574which allow the user to forward connections, the -D option, which
575permits dynamic port forwarding, the -g option, which permits other
576hosts to use port forwards, and the -f option, which instructs ssh
577to put itself in the background after authentication. See the <a
578href="http://www.openbsd.org/cgi-bin/man.cgi?query=ssh&amp;sektion=1"
579>ssh(1)</a> man page for further details.
580
581<p>
582This is an example of tunnelling an IRC session from client machine
583``127.0.0.1'' (localhost) to remote server ``server.example.com'':
584
585<blockquote>
586<table border=0 width="800">
587 <tr>
588 <td nowrap bgcolor="#EEEEEE">
589<b>ssh -f -L 1234:server.example.com:6667 server.example.com sleep 10<br>
590irc -c '#users' -p 1234 pinky 127.0.0.1</b>
591 </td>
592 </tr>
593</table>
594</blockquote>
595
596<p>
597This tunnels a connection to IRC server server.example.com, joining
598channel ``#users'', using the nickname ``pinky''. The local port used
599in this example is 1234. It does not matter which port is used, as
600long as it's greater than 1023 (remember, only root can open sockets on
601privileged ports) and doesn't conflict with any ports already in use.
602The connection is forwarded to port 6667 on the remote server, since
603that's the standard port for IRC services.
604
605<p>
606The remote command ``sleep 10'' was specified to allow an amount
607of time (10 seconds, in the example) to start the service which is to
608be tunnelled. If no connections are made within the time specified,
609ssh will exit. If more time is required, the sleep(1) value can be
610increased appropriately or, alternatively, the example above could
611be added as a function to the user's shell. See ksh(1) and csh(1)
612for more details about user-defined functions.
613
614<p>
615ssh also has an -N option, convenient for use with port forwarding:
616if -N is specified, it is not necessary to specify a remote command
617(``sleep 10'' in the example above). However, use of this option
618causes ssh to wait around for ever (as opposed to exiting after a
619remote command has completed), and the user must take care to manually
620kill(1) the process afterwards.
621
622<h2><a name= "2.12">2.12 - My ssh connection freezes or drops out after N minutes of inactivity.</a></h2>
623
624<p>
625This is usually the result of a packet filter or NAT device
626timing out your TCP connection due to inactivity. You can enable
627<b>ClientAliveInterval</b> in the server's <i><a
628href="http://www.openbsd.org/cgi-bin/man.cgi?query=sshd_config&amp;sektion=5">
629sshd_config</a></i>, or enable <b>ServerAliveInterval</b> in the
630client's <i><a
631href="http://www.openbsd.org/cgi-bin/man.cgi?query=ssh_config&amp;sektion=5">
632ssh_config</a></i> (the latter is available in OpenSSH 3.8 and newer).
633
634<p>
635Enabling either option and setting the interval for less than the time
636it takes to time out your session will ensure that the connection is
637kept "fresh" in the device's connection table.
638
639<h2><a name= "2.13">2.13 - How do I use scp to copy a file with a colon in it?</a></h2>
640
641<b><a
642href="http://www.openbsd.org/cgi-bin/man.cgi?query=scp&amp;sektion=1">
643scp</a></b> will interpret the component before the colon to be a remote
644server name and attempt to connect to it. To prevent this, refer to
645the file by a relative or absolute path, eg:
646
647<blockquote>
648<table border=0 width="800">
649 <tr>
650 <td nowrap bgcolor="#EEEEEE">
651$ scp ./source:file sshserver:
652 </td>
653 </tr>
654</table>
655</blockquote>
656
657<h2><a name= "2.14">2.14 - Why does OpenSSH report its version to clients?</a></h2>
658
659<p>
660OpenSSH, like most SSH implementations, reports its name and version to clients
661when they connect, e.g.
662</p>
663
664<blockquote>
665SSH-2.0-OpenSSH_3.9
666</blockquote>
667
668<p>
669This information is used by clients and servers to enable protocol
670compatibility tweaks to work around changed, buggy or missing features in
671the implementation they are talking to. This protocol feature checking is
672still required at present because versions with incompatibilities are still
673in wide use.
674</p>
675
676<h2><u><a name= "3.0">3.0 - Portable OpenSSH Questions</a></u></h2>
677
678<h2><a name= "3.1">3.1 - Spurious PAM authentication messages in logfiles.</a></h2>
679
680<p>
681The portable version of OpenSSH will generate spurious authentication
682failures at every login, similar to:
683
684
685<blockquote>
686<table border=0 width="800">
687 <tr>
688 <td nowrap bgcolor="#EEEEEE">
689&quot;<b>authentication failure; (uid=0) -&gt; root for sshd service</b>&quot;
690 </td>
691 </tr>
692</table>
693</blockquote>
694
695<p>
696These are generated because OpenSSH first tries to determine whether a
697user needs authentication to login (e.g. empty password). Unfortunately
698PAM likes to log all authentication events, this one included.
699
700<p>
701If it annoys you too much, set &quot;<b>PermitEmptyPasswords no</b>&quot;
702in <i>sshd_config</i>. This will quiet the error message at the expense
703of disabling logins to accounts with no password set.
704This is the default if you use the supplied <i>sshd_config</i> file.
705
706<h2><a name= "3.2">3.2 - Empty passwords not allowed with PAM authentication.</a></h2>
707
708<p>
709To enable empty passwords with a version of OpenSSH built with PAM you
710must add the flag nullok to the end of the password checking module
711in the <i>/etc/pam.d/sshd</i> file. For example:
712
713<blockquote>
714<table border=0 width="800">
715 <tr>
716 <td nowrap bgcolor="#EEEEEE">
717auth required/lib/security/pam_unix.so shadow nodelay nullok
718 </td>
719 </tr>
720</table>
721</blockquote>
722
723<p>
724This must be done in addition to setting &quot;<b>PermitEmptyPasswords
725yes</b>&quot; in the <i>sshd_config</i> file.
726
727<p>
728There is one caveat when using empty passwords with PAM authentication:
729PAM will allow any password when authenticating an account with an empty
730password. This breaks the check that
731<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=sshd&amp;sektion=8">sshd(8)</a>
732uses to determine whether an account has no password set and grant
733users access to the account regardless of the policy specified by
734<b>PermitEmptyPasswords</b>. For this reason, it is recommended that you
735do not add the <b>nullok</b> directive to your PAM configuration file
736unless you specifically wish to allow empty passwords.
737
738
739<h2><a name= "3.3">3.3 - ssh(1) takes a long time to connect or log
740in</a></h2>
741
742<p>
743Large delays (more than 10 seconds) are typically caused by a problem with
744name resolution:
745<ul>
746<li>Some versions of glibc (notably glibc 2.1 shipped with Red Hat 6.1)
747can take a long time to resolve "IPv6 or IPv4" addresses from domain
748names. This can be worked around with by specifying <b>AddressFamily
749inet</b> option in <i>ssh_config</i>.</li>
750
751<li>There may be a DNS lookup problem, either at the client or server.
752You can use the <code>nslookup</code> command to check this on both client
753and server by looking up the other end's name and IP address. In
754addition, on the server look up the name returned by the client's
755IP-name lookup. You can disable most of the server-side lookups by
756setting <b>UseDNS no</b> in <i>sshd_config</i>.</li>
757</ul>
758
759<p>
760Delays less than 10 seconds can have other causes.
761
762<ul>
763
764<li>OpenSSH releases prior to 3.8 had an <i>moduli</i> file with
765moduli that were just smaller than what sshd would look for, and
766as a result, sshd would end up using moduli significantly larger
767than requested, which resulted in a speed penalty. Replacing the
768<i>moduli</i> file will resolve this (note that in most cases this
769file will not be replaced during an upgrade and must be replaced
770manually).</li>
771
772<li>OpenSSH releases prior to 3.8 had a flaw in <code>ssh</code> that
773would cause it to request moduli larger than intended (which when
774combined with the above resulted in significant slowdowns).
775Upgrading the client to 3.8 or higher will resolve this issue.</li>
776
777<li>If either the client or server lack a kernel-based random number
778device (eg Solaris &lt; 9, AIX &lt; 5.2, HP-UX &lt; 11.11) and no
779substitute is available (eg <a href=
780"ftp://ftp.ayamura.org/pub/prngd/">prngd</a>) it's possible that
781one of the programs called by <code>ssh-rand-helper</code> to
782generate entropy is hanging. This can be investigated by running
783it in debug mode:
784
785<blockquote>
786<table border=0 width="800">
787 <tr>
788 <td nowrap bgcolor="#EEEEEE">
789/usr/local/libexec/ssh-rand-helper -vvv
790 </td>
791 </tr>
792</table>
793</blockquote>
794
795Any significant delays should be investigated and rectified, or the
796corresponding commands should be removed from <i>ssh_prng_cmds</i>.
797</li>
798
799</ul>
800
801<h3>How slow is "slow"?</h3>
802Under normal conditions, the speed of SSH logins is dependant on
803CPU speed of client and server. For comparison the following are
804typical connect times for <code>time ssh localhost true</code>
805with a 1024-bit RSA key on otherwise unloaded hosts. OpenSSH and
806OpenSSL were compiled with gcc 3.3.x.
807
808<p>
809<table>
810<tr><th>CPU</th><th>Time (SSHv1)<a href="#3.3fn1">[1]</a></th>
811 <th>Time (SSHv2)</th></tr>
812<tr><td>170MHz SPARC/sun4m</td><td>0.74 sec</td><td>1.25 sec</td></tr>
813<tr><td>236MHz HPPA/8200<a href="#3.3fn2">[2]</a></td><td>0.44 sec</td>
814 <td>0.79 sec</td></tr>
815<tr><td>375MHz PowerPC/604e</td><td>0.38 sec</td><td>0.51 sec</td></tr>
816<tr><td>933MHz VIA Ezra</td><td>0.34 sec</td><td>0.44 sec</td></tr>
817<tr><td>2.1GHz Athlon XP 2600+</td><td>0.14 sec</td><td>0.22 sec</td></tr>
818</table>
819
820<br>
821
822<a name="3.3fn1">[1]</a> The SSHv1 protocol is faster but is
823cryptographically weaker than SSHv2.<br>
824
825<a name="3.3fn2">[2]</a> At the time of writing, gcc generates
826relatively slow code on HPPA for RSA and Diffie-Hellman operations
827(see <a href= "http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7625">gcc
828bug #7625</a> and <a
829href="http://marc.info/?l=openssh-unix-dev&amp;m=102646106016694">
830discussion on openssh-unix-dev</a>).
831
832<h2><a name= "3.4">3.4 - "Can't locate module net-pf-10" messages in log under Linux.</a></h2>
833
834<p>
835The Linux kernel is looking (via modprobe) for protocol family 10 (IPv6).
836Either load the appropriate kernel module, enter the correct alias in
837<i>/etc/modules.conf</i> or disable IPv6 in <i>/etc/modules.conf</i>.
838
839
840<p>
841For some silly reason <i>/etc/modules.conf</i> may also be named
842<i>/etc/conf.modules</i>.
843
844
845<h2><a name= "3.5">3.5 - Password authentication doesn't work (eg on Slackware 7.0 or Red Hat 6.x)</a></h2>
846
847<p>
848If the password is correct password the login is still denied, the
849usual cause is that the system is configured to use MD5-type passwords
850but the
851<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=crypt&amp;sektion=3"
852>crypt(3)</a> function used by sshd doesn't understand them.
853
854<p>
855Affected accounts will have password strings in <i>/etc/passwd</i>
856or <i>/etc/shadow</i> that start with <b>$1$</b>.
857If password authentication fails for new accounts or accounts with
858recently changed passwords, but works for old accounts, this is the
859likely culprit.
860
861<p>
862The underlying cause is that some versions of OpenSSL have a crypt(3)
863function that does not understand MD5 passwords, and the link order of
864sshd means that OpenSSL's crypt(3) is used instead of the system's.
865OpensSSH's configure attempts to correct for this but is not always
866successful.
867
868<p>
869There are several possible solutions:
870
871<ul>
872<li>
873<p>
874Enable sshd's built-in support for MD5 passwords at build time.
875
876<blockquote>
877<table border=0 width="800">
878 <tr>
879 <td nowrap bgcolor="#EEEEEE">
880./configure --with-md5-passwords [options]
881 </td>
882 </tr>
883</table>
884</blockquote>
885
886This is safe even if you have both types of encryption as sshd will
887select the correct algorithm for each account automatically.
888
889<li>
890<p>
891If your system has a separate libcrypt library (eg Slackware 7) then you
892can manually add -lcrypt to the LIBS list so it's used instead of
893OpenSSL's:
894
895<blockquote>
896<table border=0 width="800">
897 <tr>
898 <td nowrap bgcolor="#EEEEEE">
899LIBS=-lcrypt ./configure [options]
900 </td>
901 </tr>
902</table>
903</blockquote>
904
905<li>
906<p>
907If your platforms supports PAM, you may configure sshd to use it
908(see <a href= "#3.15" >section 3.15</a>). This will mean that sshd will
909not verify passwords itself but will defer to the configured PAM modules.
910</ul>
911
912<h2><a name= "3.6">3.6 - Configure or sshd(8) complain about lack of RSA or DSA support</a></h2>
913
914<p>
915Ensure that your OpenSSL libraries have been built to include RSA or DSA
916support either internally or through RSAref.
917
918
919<h2><a name= "3.7">3.7 - "scp: command not found" errors</a></h2>
920
921<p>
922<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=scp&amp;sektion=1">scp(1)</a>
923must be in the default PATH on both the client and the server. You may
924need to use the <b>--with-default-path</b> option to specify a custom
925path to search on the server. This option replaces the default path,
926so you need to specify all the current directories on your path as well
927as where you have installed scp. For example:
928
929<blockquote>
930<table border=0 width="800">
931 <tr>
932 <td nowrap bgcolor="#EEEEEE">
933$ <b>./configure --with-default-path=/bin:/usr/bin:/usr/local/bin:/path/to/scp</b>
934 </td>
935 </tr>
936</table>
937</blockquote>
938
939<p>
940Note that configuration by the server's admin will take precedence over the
941setting of <b>--with-default-path</b>. This includes resetting PATH in
942<i>/etc/profile</i>, PATH in <i>/etc/environment</i> on AIX, or (for 3.7p1 and
943above) setting PATH or SUPATH in <i>/etc/default/login</i> on Solaris or
944Reliant Unix.
945
946<h2><a name= "3.8">3.8 - Unable to read passphrase</a></h2>
947
948<p>
949Some operating systems set <i>/dev/tty</i> with incorrect modes, causing
950the reading of passwords to fail with the following error:
951
952<blockquote>
953<table border=0 width="800">
954 <tr>
955 <td nowrap bgcolor="#EEEEEE">
956You have no controlling tty. Cannot read passphrase.
957 </td>
958 </tr>
959</table>
960</blockquote>
961
962<p>
963The solution to this is to reset the permissions on <i>/dev/tty</i>
964to mode 0666 and report the error as a bug to your OS vendor.
965
966
967<h2><a name= "3.9">3.9 - 'configure' missing or make fails</a></h2>
968
969<p>
970If there is no 'configure' file in the tar.gz file that you downloaded
971or make fails with "missing separator" errors, you have probably
972downloaded the OpenBSD distribution of OpenSSH and are attempting to
973compile it on another platform. Please refer to the information on the
974<a href="http://www.openssh.com/portable.html">portable version</a>.
975
976
977<h2><a name= "3.10">3.10 - Hangs when exiting ssh</a></h2>
978
979<p>
980OpenSSH may hang when exiting. This can occur when there is an active
981background process. This is known to occur on Linux and HP-UX.
982The problem can be verified by doing the following:
983
984<blockquote>
985<table border=0 width="800">
986 <tr>
987 <td nowrap bgcolor="#EEEEEE">
988$ <b>sleep 20 &amp; exit</b>
989 </td>
990 </tr>
991</table>
992</blockquote>
993
994Try to use this instead:
995<blockquote>
996<table border=0 width="800">
997 <tr>
998 <td nowrap bgcolor="#EEEEEE">
999$ <b>sleep 20 &lt; /dev/null &gt; /dev/null 2&gt;&amp;1 &amp;</b>
1000 </td>
1001 </tr>
1002</table>
1003</blockquote>
1004
1005<p>
1006A work around for bash users is to place <b>"shopt -s huponexit"</b>
1007in either /etc/bashrc or ~/.bashrc. Otherwise, consult your shell's
1008man page for an option to enable it to send a HUP signal to active
1009jobs when exiting. See <a
1010href="http://bugzilla.mindrot.org/show_bug.cgi?id=52">bug #52</a>
1011for other workarounds.
1012
1013<h2><a name= "3.11">3.11 - Why does ssh hang on exit?</a></h2>
1014
1015<p>
1016When executing
1017<blockquote>
1018<table border=0 width="800">
1019 <tr>
1020 <td nowrap bgcolor="#EEEEEE">
1021$ <b>ssh host command</b>
1022 </td>
1023 </tr>
1024</table>
1025</blockquote>
1026ssh <b>needs</b> to hang, because it needs to wait:
1027<ul>
1028<li>
1029until it can be sure that <code>command</code> does not need
1030more input.
1031<li>
1032until it can be sure that <code>command</code> does not produce
1033more output.
1034<li>
1035until <code>command</code> exits because sshd needs to tell
1036the exit status from <code>command</code> to ssh.
1037</ul>
1038<p>
1039
1040<h2><a name= "3.12">3.12 - I upgraded to OpenSSH 3.1 and X11
1041forwarding stopped working.</a></h2>
1042
1043Starting with OpenSSH 3.1, the sshd x11 forwarding server listens on
1044localhost by default; see the sshd <b>X11UseLocalhost</b> option to
1045revert to prior behaviour if your older X11 clients do not function
1046with this configuration.<p>
1047
1048In general, X11 clients using X11 R6 should work with the default
1049setting. Some vendors, including HP, ship X11 clients with R6
1050and R5 libs, so some clients will work, and others will not work.
1051This is true for HP-UX 11.X.<p>
1052
1053<h2><a name= "3.13">3.13 - I upgraded to OpenSSH 3.8 and some
1054X11 programs stopped working.</a></h2>
1055
1056<p>
1057As documented in the <a href="http://www.openssh.com/txt/release-3.8">3.8 release notes</a>,
1058<code>ssh</code> will now use untrusted X11 cookies by
1059default. The previous behaviour can be restored by setting
1060<b>ForwardX11Trusted yes</b> in <i>ssh_config</i>.
1061
1062<p>
1063Possible symptoms include:<br>
1064<code>BadWindow (invalid Window parameter)<br>
1065BadAccess (attempt to access private resource denied)<br>
1066X Error of failed request: BadAtom (invalid Atom parameter)<br>
1067Major opcode of failed request: 20 (X_GetProperty)<br></code>
1068
1069<h2><a name= "3.14">3.14 - I copied my public key to authorized_keys
1070but public-key authentication still doesn't work.</a></h2>
1071
1072<p>
1073Typically this is caused by the file permissions on $HOME, $HOME/.ssh or
1074$HOME/.ssh/authorized_keys being more permissive than sshd allows by default.
1075
1076<p>
1077In this case, it can be solved by executing the following on the server.
1078<blockquote>
1079<table border=0 width="800">
1080<tr>
1081 <td nowrap bgcolor="#EEEEEE">
1082$ <b>chmod go-w $HOME $HOME/.ssh</b><br>
1083$ <b>chmod 600 $HOME/.ssh/authorized_keys</b><br>
1084$ <b>chown `whoami` $HOME/.ssh/authorized_keys</b><br>
1085 </td>
1086</tr>
1087</table>
1088</blockquote>
1089
1090<p>
1091If this is not possible for some reason, an alternative is to set
1092<b>StrictModes no</b> in <i>sshd_config</i>, however this is not
1093recommended.
1094
1095<h2><a name= "3.15">3.15 - OpenSSH versions and PAM behaviour.</a></h2>
1096
1097Portable OpenSSH has a configure-time option to enable sshd's use of the
1098<a href="http://www.opengroup.org/onlinepubs/008329799/">PAM</a>
1099(Pluggable Authentication Modules) interface.
1100
1101<blockquote>
1102<table border=0 width="800">
1103 <tr>
1104 <td nowrap bgcolor="#EEEEEE">
1105./configure --with-pam [options]
1106 </td>
1107 </tr>
1108</table>
1109</blockquote>
1110
1111To use PAM at all, this option must be provided at build time.
1112The run-time behaviour when PAM is built in varies with the version of
1113Portable OpenSSH, and on later versions it must also be enabled by setting
1114<b>UsePAM</b> to <b>yes</b> in <i>sshd_config</i>.
1115
1116<p>
1117The behaviour of the relevant authentications options when PAM support is built
1118in is summarised by the following table.
1119
1120<p>
1121<table border="1">
1122 <tr> <th>Version</th> <th>UsePAM</th> <th>PasswordAuthentication</th> <th>ChallengeResponseAuthentication</th> </tr>
1123 <tr>
1124 <td>&lt;=3.6.1p2</td>
1125 <td>Not applicable</td>
1126 <td>Uses PAM</td>
1127 <td>Uses PAM if <b>PAMAuthenticationViaKbdInt</b> is enabled</td>
1128 </tr>
1129 <tr>
1130 <td>3.7p1 - 3.7.1p1</td>
1131 <td>Defaults to <b>yes</b></td>
1132 <td>Does not use PAM</td>
1133 <td>Uses PAM if <b>UsePAM</b> is enabled</td>
1134 </tr>
1135 <tr>
1136 <td>3.7.1p2 - 3.8.1p1</td>
1137 <td>Defaults to <b>no</b></td>
1138 <td>Does not use PAM <a href="#3.15fn1">[1]</a></td>
1139 <td>Uses PAM if <b>UsePAM</b> is enabled</td>
1140 </tr>
1141 <tr>
1142 <td>3.9p1</td>
1143 <td>Defaults to <b>no</b></td>
1144 <td>Uses PAM if <b>UsePAM</b> is enabled</td>
1145 <td>Uses PAM if <b>UsePAM</b> is enabled</td>
1146 </tr>
1147</table>
1148<p>
1149
1150<a name= "3.15fn1">[1]</a> Some vendors, notably Redhat/Fedora, have
1151backported the PasswordAuthentication from 3.9p1 to their 3.8x based
1152packages. If you're using a vendor-supplied package then consult their
1153documentation.
1154
1155<p>
1156OpenSSH Portable's PAM interface still has problems with a few modules,
1157however we hope that this number will reduce in the future. As at the
11583.9p1 release, the known problems are:
1159
1160<ul>
1161 <li>Modules relying on module-private data (eg pam_dhkeys, pam_krb5, AFS)
1162 may fail to correctly establish credentials (bug <a
1163 href="http://bugzilla.mindrot.org/show_bug.cgi?id=688">#688</a>) when
1164 authenticating via <b>ChallengeResponseAuthentication</b>.
1165 <b>PasswordAuthentication</b> with 3.9p1 and above should work.
1166</ul>
1167
1168You can also check <a
1169href="http://bugzilla.mindrot.org/buglist.cgi?product=Portable+OpenSSH&amp;bug_status=RESOLVED&amp;bug_status=NEW&amp;bug_status=ACCEPTED&amp;component=PAM+support"
1170>bugzilla for current PAM issues</a>.
1171
1172<h2><a name= "3.16">3.16 - Why doesn't "w" or "who" on AIX 5.x show users
1173logged in via ssh?</a></h2>
1174
1175Between AIX 4.3.3 and AIX 5.x, the format of the wtmp struct changed. This
1176means that sshd binaries built on AIX 4.x will not correctly write wtmp
1177entries when run on AIX 5.x. This can be fixed by simply recompiling
1178sshd on an AIX 5.x system and using that.
1179
1180<hr>
1181<a href="http://www.openssh.com/index.html"><img height=24 width=24 src="back.gif" border=0 alt=OpenSSH></a>
1182<a href="mailto:www@openbsd.org">www@openbsd.org</a>
1183<br>
1184<small>$OpenBSD: faq.html,v 1.113 2012/04/21 12:12:22 dtucker Exp $</small>
1185
1186</body>
1187</html>
diff --git a/debian/gnome-ssh-askpass.1 b/debian/gnome-ssh-askpass.1
new file mode 100644
index 000000000..b74c410a8
--- /dev/null
+++ b/debian/gnome-ssh-askpass.1
@@ -0,0 +1,51 @@
1.TH GNOME-SSH-ASKPASS 1
2.SH NAME
3gnome\-ssh\-askpass \- prompts a user for a passphrase using GNOME
4.SH SYNOPSIS
5.B gnome\-ssh\-askpass
6.SH DESCRIPTION
7.B gnome\-ssh\-askpass
8is a GNOME-based passphrase dialog for use with OpenSSH.
9It is intended to be called by the
10.BR ssh\-add (1)
11program and not invoked directly.
12It allows
13.BR ssh\-add (1)
14to obtain a passphrase from a user, even if not connected to a terminal
15(assuming that an X display is available).
16This happens automatically in the case where
17.B ssh\-add
18is invoked from one's
19.B ~/.xsession
20or as one of the GNOME startup programs, for example.
21.PP
22In order to be called automatically by
23.BR ssh\-add ,
24.B gnome\-ssh\-askpass
25should be installed as
26.IR /usr/bin/ssh\-askpass .
27.SH "ENVIRONMENT VARIABLES"
28The following environment variables are recognized:
29.TP
30.I GNOME_SSH_ASKPASS_GRAB_SERVER
31Causes
32.B gnome\-ssh\-askpass
33to grab the X server before asking for a passphrase.
34.TP
35.I GNOME_SSH_ASKPASS_GRAB_POINTER
36Causes
37.B gnome\-ssh\-askpass
38to grab the mouse pointer using
39.IR gdk_pointer_grab ()
40before asking for a passphrase.
41.PP
42Regardless of whether either of these environment variables is set,
43.B gnome\-ssh\-askpass
44will grab the keyboard using
45.IR gdk_keyboard_grab ().
46.SH AUTHOR
47This manual page was written by Colin Watson <cjwatson@debian.org>
48for the Debian system (but may be used by others).
49It was based on that for
50.B x11\-ssh\-askpass
51by Philip Hands.
diff --git a/debian/keygen-test/Makefile b/debian/keygen-test/Makefile
new file mode 100644
index 000000000..666ed8227
--- /dev/null
+++ b/debian/keygen-test/Makefile
@@ -0,0 +1,12 @@
1test: getpid.so
2 chmod +x keygen-test
3 ./keygen-test
4
5getpid.o: getpid.c
6 gcc -fPIC -c $< -o $@
7
8getpid.so: getpid.o
9 gcc -shared -o $@ $<
10
11clean:
12 rm -f getpid.o getpid.so key1 key1.pub key2 key2.pub
diff --git a/debian/keygen-test/getpid.c b/debian/keygen-test/getpid.c
new file mode 100644
index 000000000..c9e35b87e
--- /dev/null
+++ b/debian/keygen-test/getpid.c
@@ -0,0 +1,39 @@
1/*
2 * Compile:
3
4gcc -fPIC -c getpid.c -o getpid.o
5gcc -shared -o getpid.so getpid.o
6
7 * Use:
8
9FORCE_PID=1234 LD_PRELOAD=./getpid.so bash
10
11#
12# Copyright (C) 2001-2008 Kees Cook
13# kees@outflux.net, http://outflux.net/
14#
15# This program is free software; you can redistribute it and/or
16# modify it under the terms of the GNU General Public License
17# as published by the Free Software Foundation; either version 2
18# of the License, or (at your option) any later version.
19#
20# This program is distributed in the hope that it will be useful,
21# but WITHOUT ANY WARRANTY; without even the implied warranty of
22# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23# GNU General Public License for more details.
24#
25# You should have received a copy of the GNU General Public License
26# along with this program; if not, write to the Free Software
27# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
28# http://www.gnu.org/copyleft/gpl.html
29
30*/
31
32#include <sys/types.h>
33#include <unistd.h>
34#include <stdlib.h>
35
36pid_t getpid(void)
37{
38 return atoi(getenv("FORCE_PID"));
39}
diff --git a/debian/keygen-test/keygen-test b/debian/keygen-test/keygen-test
new file mode 100755
index 000000000..2abe815ef
--- /dev/null
+++ b/debian/keygen-test/keygen-test
@@ -0,0 +1,12 @@
1#! /bin/sh
2
3rm -f key1 key1.pub key2 key2.pub
4LD_PRELOAD="$(pwd)/getpid.so" FORCE_PID=1234 \
5 ../build-deb/ssh-keygen -N '' -f key1 >/dev/null
6LD_PRELOAD="$(pwd)/getpid.so" FORCE_PID=1234 \
7 ../build-deb/ssh-keygen -N '' -f key2 >/dev/null
8if cmp -s key1 key2; then
9 echo "Generated two identical keys!" >&2
10 exit 1
11fi
12exit 0
diff --git a/debian/openssh-client-udeb.install b/debian/openssh-client-udeb.install
new file mode 100644
index 000000000..b3891f02d
--- /dev/null
+++ b/debian/openssh-client-udeb.install
@@ -0,0 +1,3 @@
1scp usr/bin
2sftp usr/bin
3ssh usr/bin
diff --git a/debian/openssh-client.apport b/debian/openssh-client.apport
new file mode 100644
index 000000000..e10ca2f0c
--- /dev/null
+++ b/debian/openssh-client.apport
@@ -0,0 +1,35 @@
1'''apport hook for openssh-client
2
3(c) 2010 Canonical Ltd.
4Author: Chuck Short <chuck.short@canonical.com>
5
6This program is free software; you can redistribute it and/or modify it
7under the terms of the GNU General Public License as published by the
8Free Software Foundation; either version 2 of the License, or (at your
9option) any later version. See http://www.gnu.org/copyleft/gpl.html for
10the full text of the license.
11'''
12
13from apport.hookutils import (
14 attach_conffiles,
15 attach_related_packages,
16 command_output,
17)
18
19
20def add_info(report, ui):
21 response = ui.yesno("The contents of your /etc/ssh/ssh_config file "
22 "may help developers diagnose your bug more "
23 "quickly. However, it may contain sensitive "
24 "information. Do you want to include it in your "
25 "bug report?")
26
27 if response == None: # user cancelled
28 raise StopIteration
29
30 elif response:
31 attach_conffiles(report, 'openssh-client')
32
33 attach_related_packages(report,
34 ['ssh-askpass', 'libpam-ssh', 'keychain', 'ssh-askpass-gnome'])
35 report['SSHClientVersion'] = command_output(['/usr/bin/ssh', '-V'])
diff --git a/debian/openssh-client.dirs b/debian/openssh-client.dirs
new file mode 100644
index 000000000..c39cb7630
--- /dev/null
+++ b/debian/openssh-client.dirs
@@ -0,0 +1 @@
etc/ssh/ssh_config.d
diff --git a/debian/openssh-client.docs b/debian/openssh-client.docs
new file mode 100644
index 000000000..11aa99402
--- /dev/null
+++ b/debian/openssh-client.docs
@@ -0,0 +1,5 @@
1OVERVIEW
2README
3README.dns
4README.tun
5debian/faq.html
diff --git a/debian/openssh-client.install b/debian/openssh-client.install
new file mode 100755
index 000000000..96c8deae7
--- /dev/null
+++ b/debian/openssh-client.install
@@ -0,0 +1,36 @@
1#! /usr/bin/dh-exec
2
3etc/ssh/ssh_config
4usr/bin/scp
5usr/bin/sftp
6usr/bin/ssh
7usr/bin/ssh-add
8usr/bin/ssh-agent
9usr/bin/ssh-keygen
10usr/bin/ssh-keyscan
11usr/lib/openssh/ssh-keysign
12usr/lib/openssh/ssh-pkcs11-helper
13usr/lib/openssh/ssh-sk-helper
14usr/share/man/man1/scp.1
15usr/share/man/man1/sftp.1
16usr/share/man/man1/ssh-add.1
17usr/share/man/man1/ssh-agent.1
18usr/share/man/man1/ssh-keygen.1
19usr/share/man/man1/ssh-keyscan.1
20usr/share/man/man1/ssh.1
21usr/share/man/man5/ssh_config.5
22usr/share/man/man8/ssh-keysign.8
23usr/share/man/man8/ssh-pkcs11-helper.8
24usr/share/man/man8/ssh-sk-helper.8
25
26contrib/ssh-copy-id usr/bin
27debian/ssh-argv0 usr/bin
28
29debian/agent-launch usr/lib/openssh
30
31# dh_apport would be neater, but at the time of writing it isn't in unstable
32# yet.
33debian/openssh-client.apport => usr/share/apport/package-hooks/openssh-client.py
34
35# systemd user unit (only used under sessions)
36debian/systemd/ssh-agent.service usr/lib/systemd/user
diff --git a/debian/openssh-client.links b/debian/openssh-client.links
new file mode 100644
index 000000000..1d94c74e8
--- /dev/null
+++ b/debian/openssh-client.links
@@ -0,0 +1,4 @@
1usr/bin/ssh usr/bin/slogin
2usr/share/man/man1/ssh.1 usr/share/man/man1/slogin.1
3# enable systemd user unit for graphical sessions that use systemd
4usr/lib/systemd/user/ssh-agent.service usr/lib/systemd/user/graphical-session-pre.target.wants/ssh-agent.service
diff --git a/debian/openssh-client.lintian-overrides b/debian/openssh-client.lintian-overrides
new file mode 100644
index 000000000..486567744
--- /dev/null
+++ b/debian/openssh-client.lintian-overrides
@@ -0,0 +1 @@
openssh-client: setuid-binary usr/lib/openssh/ssh-keysign 4755 root/root
diff --git a/debian/openssh-client.maintscript b/debian/openssh-client.maintscript
new file mode 100644
index 000000000..e39db9ac5
--- /dev/null
+++ b/debian/openssh-client.maintscript
@@ -0,0 +1 @@
rm_conffile /etc/ssh/moduli 1:7.9p1-8~
diff --git a/debian/openssh-client.manpages b/debian/openssh-client.manpages
new file mode 100644
index 000000000..690bd8a22
--- /dev/null
+++ b/debian/openssh-client.manpages
@@ -0,0 +1,2 @@
1contrib/ssh-copy-id.1
2debian/ssh-argv0.1
diff --git a/debian/openssh-client.postinst b/debian/openssh-client.postinst
new file mode 100644
index 000000000..cf046ed7c
--- /dev/null
+++ b/debian/openssh-client.postinst
@@ -0,0 +1,44 @@
1#!/bin/sh
2set -e
3
4action="$1"
5
6umask 022
7
8
9create_alternatives() {
10# Create alternatives for the various r* tools.
11# Make sure we don't change existing alternatives that a user might have
12# changed, but clean up after some old alternatives that mistakenly pointed
13# rlogin and rcp to ssh.
14 update-alternatives --quiet --remove rlogin /usr/bin/ssh
15 update-alternatives --quiet --remove rcp /usr/bin/ssh
16 for cmd in rsh rlogin rcp; do
17 scmd="s${cmd#r}"
18 if ! update-alternatives --display "$cmd" 2>/dev/null | \
19 grep -q "$scmd"; then
20 update-alternatives --quiet --install "/usr/bin/$cmd" "$cmd" "/usr/bin/$scmd" 20 \
21 --slave "/usr/share/man/man1/$cmd.1.gz" "$cmd.1.gz" "/usr/share/man/man1/$scmd.1.gz"
22 fi
23 done
24}
25
26set_ssh_agent_permissions() {
27 if ! getent group ssh >/dev/null; then
28 addgroup --system --quiet ssh
29 fi
30 if ! dpkg-statoverride --list /usr/bin/ssh-agent >/dev/null; then
31 chgrp ssh /usr/bin/ssh-agent
32 chmod 2755 /usr/bin/ssh-agent
33 fi
34}
35
36
37if [ "$action" = configure ]; then
38 create_alternatives
39 set_ssh_agent_permissions
40fi
41
42#DEBHELPER#
43
44exit 0
diff --git a/debian/openssh-client.postrm b/debian/openssh-client.postrm
new file mode 100644
index 000000000..12fb3671d
--- /dev/null
+++ b/debian/openssh-client.postrm
@@ -0,0 +1,22 @@
1#!/bin/sh
2set -e
3
4#DEBHELPER#
5
6case $1 in
7 purge)
8 # Remove all non-conffiles that ssh might create, so that we
9 # can smoothly remove /etc/ssh if and only if the user
10 # hasn't dropped some other files in there. Conffiles have
11 # already been removed at this point.
12 rm -f /etc/ssh/moduli /etc/ssh/primes
13 rm -f /etc/ssh/ssh_known_hosts /etc/ssh/ssh_known_hosts2
14 [ ! -d /etc/ssh ] || rmdir --ignore-fail-on-non-empty /etc/ssh
15
16 if which delgroup >/dev/null 2>&1; then
17 delgroup --quiet ssh > /dev/null || true
18 fi
19 ;;
20esac
21
22exit 0
diff --git a/debian/openssh-client.prerm b/debian/openssh-client.prerm
new file mode 100644
index 000000000..2d631cb9c
--- /dev/null
+++ b/debian/openssh-client.prerm
@@ -0,0 +1,39 @@
1#! /bin/sh
2# prerm script for ssh
3#
4# see: dh_installdeb(1)
5
6set -e
7
8# summary of how this script can be called:
9# * <prerm> `remove'
10# * <old-prerm> `upgrade' <new-version>
11# * <new-prerm> `failed-upgrade' <old-version>
12# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
13# * <deconfigured's-prerm> `deconfigure' `in-favour'
14# <package-being-installed> <version> `removing'
15# <conflicting-package> <version>
16# for details, see /usr/share/doc/packaging-manual/
17
18case "$1" in
19 remove|deconfigure)
20 update-alternatives --quiet --remove rsh /usr/bin/ssh
21 update-alternatives --quiet --remove rlogin /usr/bin/slogin
22 update-alternatives --quiet --remove rcp /usr/bin/scp
23 ;;
24 upgrade)
25 ;;
26 failed-upgrade)
27 ;;
28 *)
29 echo "prerm called with unknown argument \`$1'" >&2
30 exit 0
31 ;;
32esac
33
34# dh_installdeb will replace this with shell code automatically
35# generated by other debhelper scripts.
36
37#DEBHELPER#
38
39exit 0
diff --git a/debian/openssh-server-udeb.dirs b/debian/openssh-server-udeb.dirs
new file mode 100644
index 000000000..e730fc43d
--- /dev/null
+++ b/debian/openssh-server-udeb.dirs
@@ -0,0 +1 @@
run/sshd
diff --git a/debian/openssh-server-udeb.install b/debian/openssh-server-udeb.install
new file mode 100644
index 000000000..05ccbf7af
--- /dev/null
+++ b/debian/openssh-server-udeb.install
@@ -0,0 +1,2 @@
1sshd usr/sbin
2ssh-keygen usr/bin
diff --git a/debian/openssh-server.apport b/debian/openssh-server.apport
new file mode 100644
index 000000000..aa853b51c
--- /dev/null
+++ b/debian/openssh-server.apport
@@ -0,0 +1,27 @@
1'''apport hook for openssh-server
2
3(c) 2010 Canonical Ltd.
4Author: Chuck Short <chuck.short@canonical.com>
5
6This program is free software; you can redistribute it and/or modify it
7under the terms of the GNU General Public License as published by the
8Free Software Foundation; either version 2 of the License, or (at your
9option) any later version. See http://www.gnu.org/copyleft/gpl.html for
10the full text of the license.
11'''
12
13from apport.hookutils import root_command_output
14
15
16def add_info(report, ui):
17 response = ui.yesno("The contents of your /etc/ssh/sshd_config file "
18 "may help developers diagnose your bug more "
19 "quickly. However, it may contain sensitive "
20 "information. Do you want to include it in your "
21 "bug report?")
22
23 if response == None: # user cancelled
24 raise StopIteration
25
26 elif response:
27 report['SSHDConfig'] = root_command_output(['/usr/sbin/sshd', '-T'])
diff --git a/debian/openssh-server.config b/debian/openssh-server.config
new file mode 100644
index 000000000..4a66a35e9
--- /dev/null
+++ b/debian/openssh-server.config
@@ -0,0 +1,46 @@
1#! /bin/sh
2set -e
3
4. /usr/share/debconf/confmodule
5db_version 2.0
6
7get_config_option() {
8 option="$1"
9
10 [ -f /etc/ssh/sshd_config ] || return
11
12 # TODO: actually only one '=' allowed after option
13 perl -lne '
14 s/[[:space:]]+/ /g; s/[[:space:]]+$//;
15 print if s/^[[:space:]]*'"$option"'[[:space:]=]+//i' \
16 /etc/ssh/sshd_config 2>/dev/null
17}
18
19permit_root_login="$(get_config_option PermitRootLogin)" || true
20password_authentication="$(get_config_option PasswordAuthentication)" || true
21if [ -f /etc/ssh/sshd_config ]; then
22 # Make sure the debconf database is in sync with the current state
23 # of the system.
24 if [ "$permit_root_login" = yes ]; then
25 db_set openssh-server/permit-root-login false
26 else
27 db_set openssh-server/permit-root-login true
28 fi
29 if [ "$password_authentication" = no ]; then
30 db_set openssh-server/password-authentication false
31 else
32 db_set openssh-server/password-authentication true
33 fi
34fi
35
36if dpkg --compare-versions "$2" lt-nl 1:6.6p1-1 && \
37 [ "$permit_root_login" = yes ]; then
38 if [ "$(getent shadow root | cut -d: -f2)" = "!" ]; then
39 db_set openssh-server/permit-root-login true
40 else
41 db_input high openssh-server/permit-root-login || true
42 db_go
43 fi
44fi
45
46exit 0
diff --git a/debian/openssh-server.dirs b/debian/openssh-server.dirs
new file mode 100644
index 000000000..6639ecae8
--- /dev/null
+++ b/debian/openssh-server.dirs
@@ -0,0 +1 @@
etc/ssh/sshd_config.d
diff --git a/debian/openssh-server.examples b/debian/openssh-server.examples
new file mode 100644
index 000000000..9f15e1fa7
--- /dev/null
+++ b/debian/openssh-server.examples
@@ -0,0 +1 @@
debian/systemd/ssh-session-cleanup.service
diff --git a/debian/openssh-server.install b/debian/openssh-server.install
new file mode 100755
index 000000000..29e7abc8e
--- /dev/null
+++ b/debian/openssh-server.install
@@ -0,0 +1,21 @@
1#! /usr/bin/dh-exec
2
3etc/ssh/moduli
4usr/sbin/sshd
5usr/share/man/man5/authorized_keys.5
6usr/share/man/man5/moduli.5
7usr/share/man/man5/sshd_config.5
8usr/share/man/man8/sshd.8
9
10sshd_config => usr/share/openssh/sshd_config
11debian/openssh-server.ucf-md5sum => usr/share/openssh/sshd_config.md5sum
12
13debian/openssh-server.ufw.profile => etc/ufw/applications.d/openssh-server
14debian/systemd/ssh.socket lib/systemd/system
15debian/systemd/rescue-ssh.target lib/systemd/system
16debian/systemd/ssh@.service lib/systemd/system
17debian/systemd/ssh-session-cleanup usr/lib/openssh
18
19# dh_apport would be neater, but at the time of writing it isn't in unstable
20# yet.
21debian/openssh-server.apport => usr/share/apport/package-hooks/openssh-server.py
diff --git a/debian/openssh-server.links b/debian/openssh-server.links
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/debian/openssh-server.links
diff --git a/debian/openssh-server.maintscript b/debian/openssh-server.maintscript
new file mode 100644
index 000000000..c721fdb48
--- /dev/null
+++ b/debian/openssh-server.maintscript
@@ -0,0 +1,3 @@
1mv_conffile /etc/pam.d/ssh /etc/pam.d/sshd 1:4.7p1-4~
2rm_conffile /etc/init/ssh.conf 1:7.5p1-6~
3rm_conffile /etc/network/if-up.d/openssh-server 1:7.9p1-1~
diff --git a/debian/openssh-server.postinst b/debian/openssh-server.postinst
new file mode 100644
index 000000000..f45f5851c
--- /dev/null
+++ b/debian/openssh-server.postinst
@@ -0,0 +1,166 @@
1#!/bin/sh
2set -e
3
4. /usr/share/debconf/confmodule
5db_version 2.0
6
7action="$1"
8
9umask 022
10
11
12get_config_option() {
13 option="$1"
14
15 [ -f /etc/ssh/sshd_config ] || return
16
17 # TODO: actually only one '=' allowed after option
18 perl -lne '
19 s/[[:space:]]+/ /g; s/[[:space:]]+$//;
20 print if s/^[[:space:]]*'"$option"'[[:space:]=]+//i' \
21 /etc/ssh/sshd_config
22}
23
24
25host_keys_required() {
26 hostkeys="$(get_config_option HostKey)"
27 if [ "$hostkeys" ]; then
28 echo "$hostkeys"
29 else
30 # No HostKey directives at all, so the server picks some
31 # defaults.
32 echo /etc/ssh/ssh_host_rsa_key
33 echo /etc/ssh/ssh_host_ecdsa_key
34 echo /etc/ssh/ssh_host_ed25519_key
35 fi
36}
37
38
39create_key() {
40 msg="$1"
41 shift
42 hostkeys="$1"
43 shift
44 file="$1"
45 shift
46
47 if echo "$hostkeys" | grep -x "$file" >/dev/null && \
48 [ ! -f "$file" ] ; then
49 printf %s "$msg"
50 ssh-keygen -q -f "$file" -N '' "$@"
51 echo
52 if which restorecon >/dev/null 2>&1; then
53 restorecon "$file" "$file.pub"
54 fi
55 ssh-keygen -l -f "$file.pub"
56 fi
57}
58
59
60create_keys() {
61 hostkeys="$(host_keys_required)"
62
63 create_key "Creating SSH2 RSA key; this may take some time ..." \
64 "$hostkeys" /etc/ssh/ssh_host_rsa_key -t rsa
65 create_key "Creating SSH2 DSA key; this may take some time ..." \
66 "$hostkeys" /etc/ssh/ssh_host_dsa_key -t dsa
67 create_key "Creating SSH2 ECDSA key; this may take some time ..." \
68 "$hostkeys" /etc/ssh/ssh_host_ecdsa_key -t ecdsa
69 create_key "Creating SSH2 ED25519 key; this may take some time ..." \
70 "$hostkeys" /etc/ssh/ssh_host_ed25519_key -t ed25519
71}
72
73
74new_config=
75
76cleanup() {
77 if [ "$new_config" ]; then
78 rm -f "$new_config"
79 fi
80}
81
82
83create_sshdconfig() {
84 # XXX cjwatson 2016-12-24: This debconf template is very confusingly
85 # named; its description is "Disable SSH password authentication for
86 # root?", so true -> prohibit-password (the upstream default),
87 # false -> yes.
88 db_get openssh-server/permit-root-login
89 permit_root_login="$RET"
90 db_get openssh-server/password-authentication
91 password_authentication="$RET"
92
93 trap cleanup EXIT
94 new_config="$(mktemp)"
95 cp -a /usr/share/openssh/sshd_config "$new_config"
96 if [ "$permit_root_login" != true ]; then
97 sed -i 's/^#*PermitRootLogin .*/PermitRootLogin yes/' \
98 "$new_config"
99 fi
100 if [ "$password_authentication" != true ]; then
101 sed -i 's/^#PasswordAuthentication .*/PasswordAuthentication no/' \
102 "$new_config"
103 fi
104 mkdir -p /etc/ssh
105 ucf --three-way --debconf-ok \
106 --sum-file /usr/share/openssh/sshd_config.md5sum \
107 "$new_config" /etc/ssh/sshd_config
108 ucfr openssh-server /etc/ssh/sshd_config
109}
110
111fix_statoverride() {
112# Remove an erronous override for sshd (we should have overridden ssh)
113 if dpkg-statoverride --list /usr/sbin/sshd >/dev/null; then
114 dpkg-statoverride --remove /usr/sbin/sshd
115 fi
116}
117
118setup_sshd_user() {
119 if ! getent passwd sshd >/dev/null; then
120 adduser --quiet --system --no-create-home --home /run/sshd --shell /usr/sbin/nologin sshd
121 fi
122}
123
124if [ "$action" = configure ]; then
125 create_sshdconfig
126 create_keys
127 fix_statoverride
128 setup_sshd_user
129 # Renamed to /etc/ssh/moduli in 2.9.9 (!)
130 if dpkg --compare-versions "$2" lt-nl 1:4.7p1-1; then
131 rm -f /etc/ssh/primes
132 fi
133 if dpkg --compare-versions "$2" lt-nl 1:5.5p1-6; then
134 rm -f /run/sshd/.placeholder
135 fi
136 if dpkg --compare-versions "$2" lt-nl 1:6.5p1-2 && \
137 deb-systemd-helper debian-installed ssh.socket && \
138 deb-systemd-helper --quiet was-enabled ssh.service && \
139 deb-systemd-helper --quiet was-enabled ssh.socket; then
140 # 1:6.5p1-1 mistakenly left both ssh.service and ssh.socket
141 # enabled.
142 deb-systemd-helper disable ssh.socket >/dev/null || true
143 fi
144 if dpkg --compare-versions "$2" lt-nl 1:6.5p1-3 && \
145 [ -d /run/systemd/system ]; then
146 # We must stop the sysvinit-controlled sshd before we can
147 # restart it under systemd.
148 start-stop-daemon --stop --quiet --oknodo --pidfile /run/sshd.pid --exec /usr/sbin/sshd || true
149 fi
150 if dpkg --compare-versions "$2" lt-nl 1:7.9p1-5 && \
151 [ -f /etc/ssh/moduli.dpkg-bak ]; then
152 # Handle /etc/ssh/moduli being moved from openssh-client to
153 # openssh-server. If there were no user modifications, then we
154 # don't need to do anything special here; but if there were,
155 # then the dpkg-maintscript-helper calls from openssh-client's
156 # maintainer scripts will have saved the old file as .dpkg-bak,
157 # which we now move back into place.
158 mv /etc/ssh/moduli.dpkg-bak /etc/ssh/moduli
159 fi
160fi
161
162#DEBHELPER#
163
164db_stop
165
166exit 0
diff --git a/debian/openssh-server.postrm b/debian/openssh-server.postrm
new file mode 100644
index 000000000..4a716f563
--- /dev/null
+++ b/debian/openssh-server.postrm
@@ -0,0 +1,35 @@
1#!/bin/sh
2set -e
3
4#DEBHELPER#
5
6case $1 in
7 purge)
8 # Remove all non-conffiles that ssh might create, so that we
9 # can smoothly remove /etc/ssh if and only if the user
10 # hasn't dropped some other files in there. Conffiles have
11 # already been removed at this point.
12 rm -f /etc/ssh/ssh_host_key /etc/ssh/ssh_host_key.pub
13 rm -f /etc/ssh/ssh_host_rsa_key /etc/ssh/ssh_host_rsa_key.pub
14 rm -f /etc/ssh/ssh_host_dsa_key /etc/ssh/ssh_host_dsa_key.pub
15 rm -f /etc/ssh/ssh_host_ecdsa_key /etc/ssh/ssh_host_ecdsa_key.pub
16 rm -f /etc/ssh/ssh_host_ed25519_key /etc/ssh/ssh_host_ed25519_key.pub
17 for ext in .ucf-new .ucf-old .ucf-dist ""; do
18 rm -f "/etc/ssh/sshd_config$ext"
19 done
20 if which ucf >/dev/null 2>&1; then
21 ucf --purge /etc/ssh/sshd_config
22 fi
23 if which ucfr >/dev/null 2>&1; then
24 ucfr --purge openssh-server /etc/ssh/sshd_config
25 fi
26 rm -f /etc/ssh/sshd_not_to_be_run
27 [ ! -d /etc/ssh ] || rmdir --ignore-fail-on-non-empty /etc/ssh
28
29 if which deluser >/dev/null 2>&1; then
30 deluser --quiet sshd > /dev/null || true
31 fi
32 ;;
33esac
34
35exit 0
diff --git a/debian/openssh-server.preinst b/debian/openssh-server.preinst
new file mode 100644
index 000000000..f5b75124e
--- /dev/null
+++ b/debian/openssh-server.preinst
@@ -0,0 +1,18 @@
1#!/bin/sh
2set -e
3
4action=$1
5version=$2
6
7if [ "$action" = upgrade ] || [ "$action" = install ]
8then
9 if dpkg --compare-versions "$version" lt 1:5.5p1-6 && \
10 [ -d /run/sshd ]; then
11 # make sure /run/sshd is not removed on upgrades
12 touch /run/sshd/.placeholder
13 fi
14fi
15
16#DEBHELPER#
17
18exit 0
diff --git a/debian/openssh-server.runit b/debian/openssh-server.runit
new file mode 100644
index 000000000..cb659a00b
--- /dev/null
+++ b/debian/openssh-server.runit
@@ -0,0 +1 @@
debian/openssh-server.ssh.runscript logscript,name=ssh,since=1:8.0p1-5
diff --git a/debian/openssh-server.ssh.default b/debian/openssh-server.ssh.default
new file mode 100644
index 000000000..304042224
--- /dev/null
+++ b/debian/openssh-server.ssh.default
@@ -0,0 +1,5 @@
1# Default settings for openssh-server. This file is sourced by /bin/sh from
2# /etc/init.d/ssh.
3
4# Options to pass to sshd
5SSHD_OPTS=
diff --git a/debian/openssh-server.ssh.init b/debian/openssh-server.ssh.init
new file mode 100755
index 000000000..4f0fb10de
--- /dev/null
+++ b/debian/openssh-server.ssh.init
@@ -0,0 +1,166 @@
1#! /bin/sh
2
3### BEGIN INIT INFO
4# Provides: sshd
5# Required-Start: $remote_fs $syslog
6# Required-Stop: $remote_fs $syslog
7# Default-Start: 2 3 4 5
8# Default-Stop:
9# Short-Description: OpenBSD Secure Shell server
10### END INIT INFO
11
12set -e
13
14# /etc/init.d/ssh: start and stop the OpenBSD "secure shell(tm)" daemon
15
16test -x /usr/sbin/sshd || exit 0
17( /usr/sbin/sshd -\? 2>&1 | grep -q OpenSSH ) 2>/dev/null || exit 0
18
19umask 022
20
21if test -f /etc/default/ssh; then
22 . /etc/default/ssh
23fi
24
25. /lib/lsb/init-functions
26
27if [ -n "$2" ]; then
28 SSHD_OPTS="$SSHD_OPTS $2"
29fi
30
31# Are we running from init?
32run_by_init() {
33 ([ "$previous" ] && [ "$runlevel" ]) || [ "$runlevel" = S ]
34}
35
36check_for_no_start() {
37 # forget it if we're trying to start, and /etc/ssh/sshd_not_to_be_run exists
38 if [ -e /etc/ssh/sshd_not_to_be_run ]; then
39 if [ "$1" = log_end_msg ]; then
40 log_end_msg 0 || true
41 fi
42 if ! run_by_init; then
43 log_action_msg "OpenBSD Secure Shell server not in use (/etc/ssh/sshd_not_to_be_run)" || true
44 fi
45 exit 0
46 fi
47}
48
49check_dev_null() {
50 if [ ! -c /dev/null ]; then
51 if [ "$1" = log_end_msg ]; then
52 log_end_msg 1 || true
53 fi
54 if ! run_by_init; then
55 log_action_msg "/dev/null is not a character device!" || true
56 fi
57 exit 1
58 fi
59}
60
61check_privsep_dir() {
62 # Create the PrivSep empty dir if necessary
63 if [ ! -d /run/sshd ]; then
64 mkdir /run/sshd
65 chmod 0755 /run/sshd
66 fi
67}
68
69check_config() {
70 if [ ! -e /etc/ssh/sshd_not_to_be_run ]; then
71 # shellcheck disable=SC2086
72 /usr/sbin/sshd $SSHD_OPTS -t || exit 1
73 fi
74}
75
76export PATH="${PATH:+$PATH:}/usr/sbin:/sbin"
77
78case "$1" in
79 start)
80 check_privsep_dir
81 check_for_no_start
82 check_dev_null
83 log_daemon_msg "Starting OpenBSD Secure Shell server" "sshd" || true
84 # shellcheck disable=SC2086
85 if start-stop-daemon --start --quiet --oknodo --chuid 0:0 --pidfile /run/sshd.pid --exec /usr/sbin/sshd -- $SSHD_OPTS; then
86 log_end_msg 0 || true
87 else
88 log_end_msg 1 || true
89 fi
90 ;;
91 stop)
92 log_daemon_msg "Stopping OpenBSD Secure Shell server" "sshd" || true
93 if start-stop-daemon --stop --quiet --oknodo --pidfile /run/sshd.pid --exec /usr/sbin/sshd; then
94 log_end_msg 0 || true
95 else
96 log_end_msg 1 || true
97 fi
98 ;;
99
100 reload|force-reload)
101 check_for_no_start
102 check_config
103 log_daemon_msg "Reloading OpenBSD Secure Shell server's configuration" "sshd" || true
104 if start-stop-daemon --stop --signal 1 --quiet --oknodo --pidfile /run/sshd.pid --exec /usr/sbin/sshd; then
105 log_end_msg 0 || true
106 else
107 log_end_msg 1 || true
108 fi
109 ;;
110
111 restart)
112 check_privsep_dir
113 check_config
114 log_daemon_msg "Restarting OpenBSD Secure Shell server" "sshd" || true
115 start-stop-daemon --stop --quiet --oknodo --retry 30 --pidfile /run/sshd.pid --exec /usr/sbin/sshd
116 check_for_no_start log_end_msg
117 check_dev_null log_end_msg
118 # shellcheck disable=SC2086
119 if start-stop-daemon --start --quiet --oknodo --chuid 0:0 --pidfile /run/sshd.pid --exec /usr/sbin/sshd -- $SSHD_OPTS; then
120 log_end_msg 0 || true
121 else
122 log_end_msg 1 || true
123 fi
124 ;;
125
126 try-restart)
127 check_privsep_dir
128 check_config
129 log_daemon_msg "Restarting OpenBSD Secure Shell server" "sshd" || true
130 RET=0
131 start-stop-daemon --stop --quiet --retry 30 --pidfile /run/sshd.pid --exec /usr/sbin/sshd || RET="$?"
132 case $RET in
133 0)
134 # old daemon stopped
135 check_for_no_start log_end_msg
136 check_dev_null log_end_msg
137 # shellcheck disable=SC2086
138 if start-stop-daemon --start --quiet --oknodo --chuid 0:0 --pidfile /run/sshd.pid --exec /usr/sbin/sshd -- $SSHD_OPTS; then
139 log_end_msg 0 || true
140 else
141 log_end_msg 1 || true
142 fi
143 ;;
144 1)
145 # daemon not running
146 log_progress_msg "(not running)" || true
147 log_end_msg 0 || true
148 ;;
149 *)
150 # failed to stop
151 log_progress_msg "(failed to stop)" || true
152 log_end_msg 1 || true
153 ;;
154 esac
155 ;;
156
157 status)
158 status_of_proc -p /run/sshd.pid /usr/sbin/sshd sshd && exit 0 || exit $?
159 ;;
160
161 *)
162 log_action_msg "Usage: /etc/init.d/ssh {start|stop|reload|force-reload|restart|try-restart|status}" || true
163 exit 1
164esac
165
166exit 0
diff --git a/debian/openssh-server.ssh.runscript/finish b/debian/openssh-server.ssh.runscript/finish
new file mode 100644
index 000000000..8c67acf43
--- /dev/null
+++ b/debian/openssh-server.ssh.runscript/finish
@@ -0,0 +1,16 @@
1#!/bin/sh
2set -e
3
4NAME=ssh
5
6[ "$1" = -1 ] && echo "runsv: ERROR in $NAME: unexpected error or wrong sh syntax"
7# no need to stop the service here, runsv will stop trying after the first attempt
8
9[ "$1" = 161 ] && echo "runsv: ERROR $1 in $NAME: disabled by local settings" \
10 && sv d "$(dirname "$0")" && exit 0
11
12[ "$1" = 162 ] && echo "runsv: ERROR $1 in $NAME: configtest or early setup failed" \
13 && sv d "$(dirname "$0")" && exit 0
14
15echo "$NAME Stopped"
16
diff --git a/debian/openssh-server.ssh.runscript/run b/debian/openssh-server.ssh.runscript/run
new file mode 100644
index 000000000..1d0524502
--- /dev/null
+++ b/debian/openssh-server.ssh.runscript/run
@@ -0,0 +1,20 @@
1#!/usr/bin/env /lib/runit/invoke-run
2set -e
3
4NAME="ssh"
5
6sv start auditd || sv check auditd || true
7
8# don't start if 'sshd_not_to_be_run' exists
9test -e /etc/ssh/sshd_not_to_be_run && exit 161
10
11#Create /run/sshd
12test -d /run/sshd || mkdir /run/sshd && chmod 0755 /run/sshd
13
14exec 2>&1
15
16#Config test
17/usr/sbin/sshd -t || exit 162
18
19echo "Starting $NAME..."
20exec /usr/sbin/sshd -D -e $SSHD_OPTS
diff --git a/debian/openssh-server.ssh.service b/debian/openssh-server.ssh.service
new file mode 120000
index 000000000..609457230
--- /dev/null
+++ b/debian/openssh-server.ssh.service
@@ -0,0 +1 @@
systemd/ssh.service \ No newline at end of file
diff --git a/debian/openssh-server.sshd.pam.in b/debian/openssh-server.sshd.pam.in
new file mode 100644
index 000000000..2cad67da6
--- /dev/null
+++ b/debian/openssh-server.sshd.pam.in
@@ -0,0 +1,55 @@
1# PAM configuration for the Secure Shell service
2
3# Standard Un*x authentication.
4@include common-auth
5
6# Disallow non-root logins when /etc/nologin exists.
7account required pam_nologin.so
8
9# Uncomment and edit /etc/security/access.conf if you need to set complex
10# access limits that are hard to express in sshd_config.
11# account required pam_access.so
12
13# Standard Un*x authorization.
14@include common-account
15
16# SELinux needs to be the first session rule. This ensures that any
17# lingering context has been cleared. Without this it is possible that a
18# module could execute code in the wrong domain.
19session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinux.so close
20
21# Set the loginuid process attribute.
22session required pam_loginuid.so
23
24@IF_KEYINIT@# Create a new session keyring.
25@IF_KEYINIT@session optional pam_keyinit.so force revoke
26
27# Standard Un*x session setup and teardown.
28@include common-session
29
30# Print the message of the day upon successful login.
31# This includes a dynamically generated part from /run/motd.dynamic
32# and a static (admin-editable) part from /etc/motd.
33session optional pam_motd.so motd=/run/motd.dynamic
34session optional pam_motd.so noupdate
35
36# Print the status of the user's mailbox upon successful login.
37session optional pam_mail.so standard noenv # [1]
38
39# Set up user limits from /etc/security/limits.conf.
40session required pam_limits.so
41
42# Read environment variables from /etc/environment and
43# /etc/security/pam_env.conf.
44session required pam_env.so # [1]
45# In Debian 4.0 (etch), locale-related environment variables were moved to
46# /etc/default/locale, so read that as well.
47session required pam_env.so user_readenv=1 envfile=/etc/default/locale
48
49# SELinux needs to intervene at login time to ensure that the process starts
50# in the proper default security context. Only sessions which are intended
51# to run in the user's context should be run after this.
52session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinux.so open
53
54# Standard Un*x password updating.
55@include common-password
diff --git a/debian/openssh-server.templates b/debian/openssh-server.templates
new file mode 100644
index 000000000..e071fe3b8
--- /dev/null
+++ b/debian/openssh-server.templates
@@ -0,0 +1,23 @@
1Template: openssh-server/permit-root-login
2Type: boolean
3Default: true
4_Description: Disable SSH password authentication for root?
5 Previous versions of openssh-server permitted logging in as root over SSH
6 using password authentication. The default for new installations is now
7 "PermitRootLogin prohibit-password", which disables password authentication
8 for root without breaking systems that have explicitly configured SSH
9 public key authentication for root.
10 .
11 This change makes systems more secure against brute-force password
12 dictionary attacks on the root user (a very common target for such
13 attacks). However, it may break systems that are set up with the
14 expectation of being able to SSH as root using password authentication. You
15 should only make this change if you do not need to do that.
16
17Template: openssh-server/password-authentication
18Type: boolean
19Default: true
20Description: Allow password authentication?
21 By default, the SSH server will allow authenticating using a password.
22 You may want to change this if all users on this system authenticate using
23 a stronger authentication method, such as public keys.
diff --git a/debian/openssh-server.ucf-md5sum b/debian/openssh-server.ucf-md5sum
new file mode 100644
index 000000000..640943f7b
--- /dev/null
+++ b/debian/openssh-server.ucf-md5sum
@@ -0,0 +1,98 @@
1# Historical md5sums of the default /etc/ssh/sshd_config up to and including
2# 1:7.3p1-5.
30d06fc337cee10609d4833dc88df740f
410dc68360f6658910a98a051273de22c
511f9e107b4d13bbcabe7f8e8da734371
616c827adcff44efaca05ec5eea6383d7
72eeff28468576c3f2e538314e177687b
8386c8b9079625b78f6d624ae506958ae
938fc7b31b3e3078848f0eec457d3e050
10395c5e13801f9b4f17c2cb54aa634fbd
11423d5796cee663af2d0f24c4d520b578
1242be2cb5b64bc91443b2e46969d2d539
1342cd8b7c5ea9e440d3efa50b9a1bb444
144f56ca8d0b5dfdaeb732becd3292ce5d
1554998a682a97af8449e9de0316eacf1d
165c0bdc1735accbdc062381149937ec4a
176357b54acf8e089c57544e06d1bbec53
186a621d8bc448987e5a8a613c40307a4c
19702a79962e60aa17c6d3df742e8ec670
207a69eff91ec92b4e065b8dd8846366b2
217c60e22f183b6219c684f15ce24153fd
228304e780c43d4a606f695c8965f48299
238b9e70ee87f4b822714e2ed7af5b70dc
248caefdd9e251b7cc1baa37874149a870
2590baeb1c778464d2da610f8268939719
26962a382e51f43f80109131838ca326ba
2796eaf22faba705a37905282f6ad69d64
289cb6cd83be1c21f73476be629b163c01
29a07a9865cd33b85a1426cd67954c6fa0
30ae1e844b43986e2a964cf84f46b50c5b
31b516afa5a1e298f4cd00952b36dd623f
32b69fc974ee9b5a111bd473ef54cdd232
33ba9c3f808c811d6f944ad10a508c4767
34bccf9af9c7027afd0895d8ff8e02761a
35bd3a2b95f8b4b180eed707794ad81e4d
36c34586b56496f81a10615c002685fc74
37c47555a21189a6b703d2c5d37d2c50ed
38cac079e87c0ae0d77eafc9b285e36348
39d224f92823483333432974f63cb6dc66
40d50ef9ef2aa51cb9f808f6a776260c0a
41e0029e1e9871d4d2b673ee6d70a38614
42e086e7eb521ccc5776371b2e198f0702
43e101f74dc7381527e9aefa1f78b01a7f
44e24f749808133a27d94fda84a89bb27b
45ec16c3dd0203f13885d74ce529719fda
46efcff5380823d4e3f5039620c2e08459
47f58056370a64dbd2017d7486421c281d
48fe396d52df77f1fbf710591d4dbf3311
49
50# From this point on, we have four md5sums for each released version of
51# sshd_config, depending on the state of openssh-server/permit-root-login
52# and openssh-server/password-authentication; the plain copy plus the result
53# of running through either or both of the following:
54#
55# sed 's/^#*PermitRootLogin .*/PermitRootLogin yes/'
56# sed 's/^#PasswordAuthentication .*/PasswordAuthentication no/'
57#
58# This obviously leaves something to be desired in terms of maintainability.
59#
60# The following covers up to 1:7.8p1-1, including everything except the
61# latest version of sshd_config. It should be extended any time sshd_config
62# changes.
63
64# From 1:7.4p1-1:
65f8ecd8f588749a0e39a5b1d3ff261cb2
660f923c50ef1b00e1e88e02736727f03e
67abc2568a7ec0cb54c584ea03c7a4f854
6817851b145a2515fce2e8d0b9020d5cd4
69
70# From 1:7.4p1-6:
71bbcdf7b77777d40996e287495bb96e47
7255dd47f61a4af5d1a8884ec590ce33ef
73e1375e853a36f9bcd5faeb4b8c570dd1
74fa6d314c0ab05933ab970fd362ab2800
75
76# From 1:7.4p1-7:
77bbad7ed242a834e831c7066901cee49e
78df8447ce600dd3d6bc4048ccc2faa536
7987adc8952a7f06efdda8473fd772997f
8014301f8b9e39c72b3f929dc70e41ebf6
81
82# From 1:7.5p1-1:
83739d6887c8f3dd71a9168c614c07175c
84cc463c55b512da68e807784f675a1301
85203e9b92fe3623aeba277ee44297f7dd
861d29cac6b0dd5c0004cf7d80b823715c
87
88# From 1:7.7p1-1:
89cc873ab3ccc9cf3a3830c3c0728c0d0b
902d0b1d2719c01b15457401fd97d607ed
918ce930e15835a8f46285315ed0da7f4a
928a71a3620605f21ac3ef16fd5d23f76a
93
94# From 1:7.8p1-1:
9555570f990ec9c3b8d19c19ab4d0b8eb8
960b8a28dca5cdbace0cd85fcd7794cba8
9718df1377273c4d51d4c03c9adc31021f
9863284e767f6ccf2375ef80507c564797
diff --git a/debian/openssh-server.ufw.profile b/debian/openssh-server.ufw.profile
new file mode 100644
index 000000000..9bbe906bc
--- /dev/null
+++ b/debian/openssh-server.ufw.profile
@@ -0,0 +1,4 @@
1[OpenSSH]
2title=Secure shell server, an rshd replacement
3description=OpenSSH is a free implementation of the Secure Shell protocol.
4ports=22/tcp
diff --git a/debian/openssh-sftp-server.install b/debian/openssh-sftp-server.install
new file mode 100644
index 000000000..25b12dc09
--- /dev/null
+++ b/debian/openssh-sftp-server.install
@@ -0,0 +1,2 @@
1usr/lib/openssh/sftp-server
2usr/share/man/man8/sftp-server.8
diff --git a/debian/openssh-sftp-server.links b/debian/openssh-sftp-server.links
new file mode 100644
index 000000000..2d98b1dcb
--- /dev/null
+++ b/debian/openssh-sftp-server.links
@@ -0,0 +1 @@
usr/lib/openssh/sftp-server usr/lib/sftp-server
diff --git a/debian/openssh-tests.install b/debian/openssh-tests.install
new file mode 100644
index 000000000..941704595
--- /dev/null
+++ b/debian/openssh-tests.install
@@ -0,0 +1,11 @@
1regress /usr/lib/openssh
2debian/build-deb/regress/check-perm /usr/lib/openssh/regress
3debian/build-deb/regress/misc /usr/lib/openssh/regress
4debian/build-deb/regress/mkdtemp /usr/lib/openssh/regress
5debian/build-deb/regress/modpipe /usr/lib/openssh/regress
6debian/build-deb/regress/netcat /usr/lib/openssh/regress
7debian/build-deb/regress/setuid-allowed /usr/lib/openssh/regress
8debian/build-deb/regress/unittests /usr/lib/openssh/regress
9
10debian/build-deb/config.h /usr/lib/openssh/regress
11debian/run-tests /usr/lib/openssh/regress
diff --git a/debian/patches/authorized-keys-man-symlink.patch b/debian/patches/authorized-keys-man-symlink.patch
new file mode 100644
index 000000000..2680fc739
--- /dev/null
+++ b/debian/patches/authorized-keys-man-symlink.patch
@@ -0,0 +1,26 @@
1From 27ced5f6a3c5dec6e0a78ae138d3db56d49953bd Mon Sep 17 00:00:00 2001
2From: Tomas Pospisek <tpo_deb@sourcepole.ch>
3Date: Sun, 9 Feb 2014 16:10:07 +0000
4Subject: Install authorized_keys(5) as a symlink to sshd(8)
5
6Bug: https://bugzilla.mindrot.org/show_bug.cgi?id=1720
7Bug-Debian: http://bugs.debian.org/441817
8Last-Update: 2013-09-14
9
10Patch-Name: authorized-keys-man-symlink.patch
11---
12 Makefile.in | 1 +
13 1 file changed, 1 insertion(+)
14
15diff --git a/Makefile.in b/Makefile.in
16index 56759c388..73e56aaac 100644
17--- a/Makefile.in
18+++ b/Makefile.in
19@@ -408,6 +408,7 @@ install-files:
20 $(INSTALL) -m 644 sshd_config.5.out $(DESTDIR)$(mandir)/$(mansubdir)5/sshd_config.5
21 $(INSTALL) -m 644 ssh_config.5.out $(DESTDIR)$(mandir)/$(mansubdir)5/ssh_config.5
22 $(INSTALL) -m 644 sshd.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/sshd.8
23+ ln -s ../$(mansubdir)8/sshd.8 $(DESTDIR)$(mandir)/$(mansubdir)5/authorized_keys.5
24 $(INSTALL) -m 644 sftp.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/sftp.1
25 $(INSTALL) -m 644 sftp-server.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/sftp-server.8
26 $(INSTALL) -m 644 ssh-keysign.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-keysign.8
diff --git a/debian/patches/conch-old-privkey-format.patch b/debian/patches/conch-old-privkey-format.patch
new file mode 100644
index 000000000..c7063cece
--- /dev/null
+++ b/debian/patches/conch-old-privkey-format.patch
@@ -0,0 +1,68 @@
1From a73fcc8bab768900ca16d3121303941511b28d45 Mon Sep 17 00:00:00 2001
2From: Colin Watson <cjwatson@debian.org>
3Date: Thu, 30 Aug 2018 00:58:56 +0100
4Subject: Work around conch interoperability failure
5
6Twisted Conch fails to read private keys in the new format
7(https://twistedmatrix.com/trac/ticket/9515). Work around this until it
8can be fixed in Twisted.
9
10Forwarded: not-needed
11Last-Update: 2019-10-09
12
13Patch-Name: conch-old-privkey-format.patch
14---
15 regress/Makefile | 2 +-
16 regress/conch-ciphers.sh | 2 +-
17 regress/test-exec.sh | 12 ++++++++++++
18 3 files changed, 14 insertions(+), 2 deletions(-)
19
20diff --git a/regress/Makefile b/regress/Makefile
21index 8b4ed9de3..f50d189bb 100644
22--- a/regress/Makefile
23+++ b/regress/Makefile
24@@ -122,7 +122,7 @@ CLEANFILES= *.core actual agent-key.* authorized_keys_${USERNAME} \
25 rsa_ssh2_crnl.prv scp-ssh-wrapper.exe \
26 scp-ssh-wrapper.scp setuid-allowed sftp-server.log \
27 sftp-server.sh sftp.log ssh-log-wrapper.sh ssh.log \
28- ssh-rsa_oldfmt \
29+ ssh-rsa_oldfmt ssh-rsa_oldfmt.pub \
30 ssh_config ssh_config.* ssh_proxy ssh_proxy_bak \
31 ssh_proxy_envpass sshd.log sshd_config sshd_config_minimal \
32 sshd_config.* sshd_proxy sshd_proxy.* sshd_proxy_bak \
33diff --git a/regress/conch-ciphers.sh b/regress/conch-ciphers.sh
34index 6678813a2..6ff5da20b 100644
35--- a/regress/conch-ciphers.sh
36+++ b/regress/conch-ciphers.sh
37@@ -16,7 +16,7 @@ for c in aes256-ctr aes256-cbc aes192-ctr aes192-cbc aes128-ctr aes128-cbc \
38 rm -f ${COPY}
39 # XXX the 2nd "cat" seems to be needed because of buggy FD handling
40 # in conch
41- ${CONCH} --identity $OBJ/ssh-rsa --port $PORT --user $USER -e none \
42+ ${CONCH} --identity $OBJ/ssh-rsa_oldfmt --port $PORT --user $USER -e none \
43 --known-hosts $OBJ/known_hosts --notty --noagent --nox11 -n \
44 127.0.0.1 "cat ${DATA}" 2>/dev/null | cat > ${COPY}
45 if [ $? -ne 0 ]; then
46diff --git a/regress/test-exec.sh b/regress/test-exec.sh
47index 5dc975d07..d8491b2be 100644
48--- a/regress/test-exec.sh
49+++ b/regress/test-exec.sh
50@@ -587,6 +587,18 @@ REGRESS_INTEROP_CONCH=no
51 if test -x "$CONCH" ; then
52 REGRESS_INTEROP_CONCH=yes
53 fi
54+case "$SCRIPT" in
55+*conch*) ;;
56+*) REGRESS_INTEROP_CONCH=no
57+esac
58+
59+if test "$REGRESS_INTEROP_CONCH" = "yes" ; then
60+ # Convert rsa key to old format to work around
61+ # https://twistedmatrix.com/trac/ticket/9515
62+ cp $OBJ/ssh-rsa $OBJ/ssh-rsa_oldfmt
63+ cp $OBJ/ssh-rsa.pub $OBJ/ssh-rsa_oldfmt.pub
64+ ${SSHKEYGEN} -p -N '' -m PEM -f $OBJ/ssh-rsa_oldfmt >/dev/null
65+fi
66
67 # If PuTTY is present and we are running a PuTTY test, prepare keys and
68 # configuration
diff --git a/debian/patches/debian-banner.patch b/debian/patches/debian-banner.patch
new file mode 100644
index 000000000..82cc37c1b
--- /dev/null
+++ b/debian/patches/debian-banner.patch
@@ -0,0 +1,162 @@
1From 6353ee79cc71ef33a0a34d2d769a5fe327f6260d Mon Sep 17 00:00:00 2001
2From: Kees Cook <kees@debian.org>
3Date: Sun, 9 Feb 2014 16:10:06 +0000
4Subject: Add DebianBanner server configuration option
5
6Setting this to "no" causes sshd to omit the Debian revision from its
7initial protocol handshake, for those scared by package-versioning.patch.
8
9Bug-Debian: http://bugs.debian.org/562048
10Forwarded: not-needed
11Last-Update: 2020-06-07
12
13Patch-Name: debian-banner.patch
14---
15 kex.c | 5 +++--
16 kex.h | 2 +-
17 servconf.c | 9 +++++++++
18 servconf.h | 2 ++
19 sshconnect.c | 2 +-
20 sshd.c | 2 +-
21 sshd_config.5 | 5 +++++
22 7 files changed, 22 insertions(+), 5 deletions(-)
23
24diff --git a/kex.c b/kex.c
25index ce7bb5b3b..763c45536 100644
26--- a/kex.c
27+++ b/kex.c
28@@ -1225,7 +1225,7 @@ send_error(struct ssh *ssh, char *msg)
29 */
30 int
31 kex_exchange_identification(struct ssh *ssh, int timeout_ms,
32- const char *version_addendum)
33+ int debian_banner, const char *version_addendum)
34 {
35 int remote_major, remote_minor, mismatch, oerrno = 0;
36 size_t len, i, n;
37@@ -1243,7 +1243,8 @@ kex_exchange_identification(struct ssh *ssh, int timeout_ms,
38 if (version_addendum != NULL && *version_addendum == '\0')
39 version_addendum = NULL;
40 if ((r = sshbuf_putf(our_version, "SSH-%d.%d-%.100s%s%s\r\n",
41- PROTOCOL_MAJOR_2, PROTOCOL_MINOR_2, SSH_RELEASE,
42+ PROTOCOL_MAJOR_2, PROTOCOL_MINOR_2,
43+ debian_banner ? SSH_RELEASE : SSH_RELEASE_MINIMUM,
44 version_addendum == NULL ? "" : " ",
45 version_addendum == NULL ? "" : version_addendum)) != 0) {
46 oerrno = errno;
47diff --git a/kex.h b/kex.h
48index fe7141414..938dca03b 100644
49--- a/kex.h
50+++ b/kex.h
51@@ -194,7 +194,7 @@ char *kex_names_cat(const char *, const char *);
52 int kex_assemble_names(char **, const char *, const char *);
53 int kex_gss_names_valid(const char *);
54
55-int kex_exchange_identification(struct ssh *, int, const char *);
56+int kex_exchange_identification(struct ssh *, int, int, const char *);
57
58 struct kex *kex_new(void);
59 int kex_ready(struct ssh *, char *[PROPOSAL_MAX]);
60diff --git a/servconf.c b/servconf.c
61index 21abe41ac..f9eb778d6 100644
62--- a/servconf.c
63+++ b/servconf.c
64@@ -195,6 +195,7 @@ initialize_server_options(ServerOptions *options)
65 options->fingerprint_hash = -1;
66 options->disable_forwarding = -1;
67 options->expose_userauth_info = -1;
68+ options->debian_banner = -1;
69 }
70
71 /* Returns 1 if a string option is unset or set to "none" or 0 otherwise. */
72@@ -469,6 +470,8 @@ fill_default_server_options(ServerOptions *options)
73 options->expose_userauth_info = 0;
74 if (options->sk_provider == NULL)
75 options->sk_provider = xstrdup("internal");
76+ if (options->debian_banner == -1)
77+ options->debian_banner = 1;
78
79 assemble_algorithms(options);
80
81@@ -548,6 +551,7 @@ typedef enum {
82 sStreamLocalBindMask, sStreamLocalBindUnlink,
83 sAllowStreamLocalForwarding, sFingerprintHash, sDisableForwarding,
84 sExposeAuthInfo, sRDomain, sPubkeyAuthOptions, sSecurityKeyProvider,
85+ sDebianBanner,
86 sDeprecated, sIgnore, sUnsupported
87 } ServerOpCodes;
88
89@@ -712,6 +716,7 @@ static struct {
90 { "rdomain", sRDomain, SSHCFG_ALL },
91 { "casignaturealgorithms", sCASignatureAlgorithms, SSHCFG_ALL },
92 { "securitykeyprovider", sSecurityKeyProvider, SSHCFG_GLOBAL },
93+ { "debianbanner", sDebianBanner, SSHCFG_GLOBAL },
94 { NULL, sBadOption, 0 }
95 };
96
97@@ -2402,6 +2407,10 @@ process_server_config_line_depth(ServerOptions *options, char *line,
98 *charptr = xstrdup(arg);
99 break;
100
101+ case sDebianBanner:
102+ intptr = &options->debian_banner;
103+ goto parse_flag;
104+
105 case sDeprecated:
106 case sIgnore:
107 case sUnsupported:
108diff --git a/servconf.h b/servconf.h
109index f10908e5b..4afdf24d0 100644
110--- a/servconf.h
111+++ b/servconf.h
112@@ -227,6 +227,8 @@ typedef struct {
113 int expose_userauth_info;
114 u_int64_t timing_secret;
115 char *sk_provider;
116+
117+ int debian_banner;
118 } ServerOptions;
119
120 /* Information about the incoming connection as used by Match */
121diff --git a/sshconnect.c b/sshconnect.c
122index 3ae20b74e..bab3916d8 100644
123--- a/sshconnect.c
124+++ b/sshconnect.c
125@@ -1296,7 +1296,7 @@ ssh_login(struct ssh *ssh, Sensitive *sensitive, const char *orighost,
126 lowercase(host);
127
128 /* Exchange protocol version identification strings with the server. */
129- if ((r = kex_exchange_identification(ssh, timeout_ms, NULL)) != 0)
130+ if ((r = kex_exchange_identification(ssh, timeout_ms, 1, NULL)) != 0)
131 sshpkt_fatal(ssh, r, "banner exchange");
132
133 /* Put the connection into non-blocking mode. */
134diff --git a/sshd.c b/sshd.c
135index 38d281ab4..50f2726bf 100644
136--- a/sshd.c
137+++ b/sshd.c
138@@ -2232,7 +2232,7 @@ main(int ac, char **av)
139 if (!debug_flag)
140 alarm(options.login_grace_time);
141
142- if ((r = kex_exchange_identification(ssh, -1,
143+ if ((r = kex_exchange_identification(ssh, -1, options.debian_banner,
144 options.version_addendum)) != 0)
145 sshpkt_fatal(ssh, r, "banner exchange");
146
147diff --git a/sshd_config.5 b/sshd_config.5
148index 6457620bb..33dc0c675 100644
149--- a/sshd_config.5
150+++ b/sshd_config.5
151@@ -540,6 +540,11 @@ or
152 .Cm no .
153 The default is
154 .Cm yes .
155+.It Cm DebianBanner
156+Specifies whether the distribution-specified extra version suffix is
157+included during initial protocol handshake.
158+The default is
159+.Cm yes .
160 .It Cm DenyGroups
161 This keyword can be followed by a list of group name patterns, separated
162 by spaces.
diff --git a/debian/patches/debian-config.patch b/debian/patches/debian-config.patch
new file mode 100644
index 000000000..aa370e52f
--- /dev/null
+++ b/debian/patches/debian-config.patch
@@ -0,0 +1,270 @@
1From a0c9f82b05d33f3e2cf8e5442cee47c09d1a1dd8 Mon Sep 17 00:00:00 2001
2From: Colin Watson <cjwatson@debian.org>
3Date: Sun, 9 Feb 2014 16:10:18 +0000
4Subject: Various Debian-specific configuration changes
5
6ssh: Enable ForwardX11Trusted, returning to earlier semantics which cause
7fewer problems with existing setups (http://bugs.debian.org/237021).
8
9ssh: Set 'SendEnv LANG LC_*' by default (http://bugs.debian.org/264024).
10
11ssh: Enable HashKnownHosts by default to try to limit the spread of ssh
12worms.
13
14ssh: Enable GSSAPIAuthentication by default.
15
16ssh: Include /etc/ssh/ssh_config.d/*.conf.
17
18sshd: Enable PAM, disable ChallengeResponseAuthentication, and disable
19PrintMotd.
20
21sshd: Enable X11Forwarding.
22
23sshd: Set 'AcceptEnv LANG LC_*' by default.
24
25sshd: Change sftp subsystem path to /usr/lib/openssh/sftp-server.
26
27sshd: Include /etc/ssh/sshd_config.d/*.conf.
28
29Document all of this.
30
31Author: Russ Allbery <rra@debian.org>
32Forwarded: not-needed
33Last-Update: 2020-10-18
34
35Patch-Name: debian-config.patch
36---
37 readconf.c | 2 +-
38 ssh.1 | 24 ++++++++++++++++++++++++
39 ssh_config | 8 +++++++-
40 ssh_config.5 | 26 +++++++++++++++++++++++++-
41 sshd_config | 18 ++++++++++++------
42 sshd_config.5 | 29 +++++++++++++++++++++++++++++
43 6 files changed, 98 insertions(+), 9 deletions(-)
44
45diff --git a/readconf.c b/readconf.c
46index f4f273c96..e676b6be6 100644
47--- a/readconf.c
48+++ b/readconf.c
49@@ -2153,7 +2153,7 @@ fill_default_options(Options * options)
50 if (options->forward_x11 == -1)
51 options->forward_x11 = 0;
52 if (options->forward_x11_trusted == -1)
53- options->forward_x11_trusted = 0;
54+ options->forward_x11_trusted = 1;
55 if (options->forward_x11_timeout == -1)
56 options->forward_x11_timeout = 1200;
57 /*
58diff --git a/ssh.1 b/ssh.1
59index 76ddd89b5..ad48fc8c8 100644
60--- a/ssh.1
61+++ b/ssh.1
62@@ -812,6 +812,16 @@ directive in
63 .Xr ssh_config 5
64 for more information.
65 .Pp
66+(Debian-specific: X11 forwarding is not subjected to X11 SECURITY extension
67+restrictions by default, because too many programs currently crash in this
68+mode.
69+Set the
70+.Cm ForwardX11Trusted
71+option to
72+.Dq no
73+to restore the upstream behaviour.
74+This may change in future depending on client-side improvements.)
75+.Pp
76 .It Fl x
77 Disables X11 forwarding.
78 .Pp
79@@ -820,6 +830,20 @@ Enables trusted X11 forwarding.
80 Trusted X11 forwardings are not subjected to the X11 SECURITY extension
81 controls.
82 .Pp
83+(Debian-specific: In the default configuration, this option is equivalent to
84+.Fl X ,
85+since
86+.Cm ForwardX11Trusted
87+defaults to
88+.Dq yes
89+as described above.
90+Set the
91+.Cm ForwardX11Trusted
92+option to
93+.Dq no
94+to restore the upstream behaviour.
95+This may change in future depending on client-side improvements.)
96+.Pp
97 .It Fl y
98 Send log information using the
99 .Xr syslog 3
100diff --git a/ssh_config b/ssh_config
101index 52aae8692..09a17cf18 100644
102--- a/ssh_config
103+++ b/ssh_config
104@@ -17,9 +17,12 @@
105 # list of available options, their meanings and defaults, please see the
106 # ssh_config(5) man page.
107
108-# Host *
109+Include /etc/ssh/ssh_config.d/*.conf
110+
111+Host *
112 # ForwardAgent no
113 # ForwardX11 no
114+# ForwardX11Trusted yes
115 # PasswordAuthentication yes
116 # HostbasedAuthentication no
117 # GSSAPIAuthentication no
118@@ -46,3 +49,6 @@
119 # ProxyCommand ssh -q -W %h:%p gateway.example.com
120 # RekeyLimit 1G 1h
121 # UserKnownHostsFile ~/.ssh/known_hosts.d/%k
122+ SendEnv LANG LC_*
123+ HashKnownHosts yes
124+ GSSAPIAuthentication yes
125diff --git a/ssh_config.5 b/ssh_config.5
126index 96ca7a5df..6d6c59521 100644
127--- a/ssh_config.5
128+++ b/ssh_config.5
129@@ -71,6 +71,29 @@ Since the first obtained value for each parameter is used, more
130 host-specific declarations should be given near the beginning of the
131 file, and general defaults at the end.
132 .Pp
133+Note that the Debian
134+.Ic openssh-client
135+package sets several options as standard in
136+.Pa /etc/ssh/ssh_config
137+which are not the default in
138+.Xr ssh 1 :
139+.Pp
140+.Bl -bullet -offset indent -compact
141+.It
142+.Cm Include /etc/ssh/ssh_config.d/*.conf
143+.It
144+.Cm SendEnv No LANG LC_*
145+.It
146+.Cm HashKnownHosts No yes
147+.It
148+.Cm GSSAPIAuthentication No yes
149+.El
150+.Pp
151+.Pa /etc/ssh/ssh_config.d/*.conf
152+files are included at the start of the system-wide configuration file, so
153+options set there will override those in
154+.Pa /etc/ssh/ssh_config.
155+.Pp
156 The file contains keyword-argument pairs, one per line.
157 Lines starting with
158 .Ql #
159@@ -742,11 +765,12 @@ elapsed.
160 .It Cm ForwardX11Trusted
161 If this option is set to
162 .Cm yes ,
163+(the Debian-specific default),
164 remote X11 clients will have full access to the original X11 display.
165 .Pp
166 If this option is set to
167 .Cm no
168-(the default),
169+(the upstream default),
170 remote X11 clients will be considered untrusted and prevented
171 from stealing or tampering with data belonging to trusted X11
172 clients.
173diff --git a/sshd_config b/sshd_config
174index 2c48105f8..459c1b230 100644
175--- a/sshd_config
176+++ b/sshd_config
177@@ -10,6 +10,8 @@
178 # possible, but leave them commented. Uncommented options override the
179 # default value.
180
181+Include /etc/ssh/sshd_config.d/*.conf
182+
183 #Port 22
184 #AddressFamily any
185 #ListenAddress 0.0.0.0
186@@ -57,8 +59,9 @@ AuthorizedKeysFile .ssh/authorized_keys
187 #PasswordAuthentication yes
188 #PermitEmptyPasswords no
189
190-# Change to no to disable s/key passwords
191-#ChallengeResponseAuthentication yes
192+# Change to yes to enable challenge-response passwords (beware issues with
193+# some PAM modules and threads)
194+ChallengeResponseAuthentication no
195
196 # Kerberos options
197 #KerberosAuthentication no
198@@ -81,16 +84,16 @@ AuthorizedKeysFile .ssh/authorized_keys
199 # If you just want the PAM account and session checks to run without
200 # PAM authentication, then enable this but set PasswordAuthentication
201 # and ChallengeResponseAuthentication to 'no'.
202-#UsePAM no
203+UsePAM yes
204
205 #AllowAgentForwarding yes
206 #AllowTcpForwarding yes
207 #GatewayPorts no
208-#X11Forwarding no
209+X11Forwarding yes
210 #X11DisplayOffset 10
211 #X11UseLocalhost yes
212 #PermitTTY yes
213-#PrintMotd yes
214+PrintMotd no
215 #PrintLastLog yes
216 #TCPKeepAlive yes
217 #PermitUserEnvironment no
218@@ -107,8 +110,11 @@ AuthorizedKeysFile .ssh/authorized_keys
219 # no default banner path
220 #Banner none
221
222+# Allow client to pass locale environment variables
223+AcceptEnv LANG LC_*
224+
225 # override default of no subsystems
226-Subsystem sftp /usr/libexec/sftp-server
227+Subsystem sftp /usr/lib/openssh/sftp-server
228
229 # Example of overriding settings on a per-user basis
230 #Match User anoncvs
231diff --git a/sshd_config.5 b/sshd_config.5
232index 32ae46476..472001dd1 100644
233--- a/sshd_config.5
234+++ b/sshd_config.5
235@@ -56,6 +56,35 @@ Arguments may optionally be enclosed in double quotes
236 .Pq \&"
237 in order to represent arguments containing spaces.
238 .Pp
239+Note that the Debian
240+.Ic openssh-server
241+package sets several options as standard in
242+.Pa /etc/ssh/sshd_config
243+which are not the default in
244+.Xr sshd 8 :
245+.Pp
246+.Bl -bullet -offset indent -compact
247+.It
248+.Cm Include /etc/ssh/sshd_config.d/*.conf
249+.It
250+.Cm ChallengeResponseAuthentication No no
251+.It
252+.Cm X11Forwarding No yes
253+.It
254+.Cm PrintMotd No no
255+.It
256+.Cm AcceptEnv No LANG LC_*
257+.It
258+.Cm Subsystem No sftp /usr/lib/openssh/sftp-server
259+.It
260+.Cm UsePAM No yes
261+.El
262+.Pp
263+.Pa /etc/ssh/sshd_config.d/*.conf
264+files are included at the start of the configuration file, so options set
265+there will override those in
266+.Pa /etc/ssh/sshd_config.
267+.Pp
268 The possible
269 keywords and their meanings are as follows (note that
270 keywords are case-insensitive and arguments are case-sensitive):
diff --git a/debian/patches/dnssec-sshfp.patch b/debian/patches/dnssec-sshfp.patch
new file mode 100644
index 000000000..23ecc0d3d
--- /dev/null
+++ b/debian/patches/dnssec-sshfp.patch
@@ -0,0 +1,94 @@
1From 78a7702d88713e854550a05fa9b8670f219d9bf9 Mon Sep 17 00:00:00 2001
2From: Colin Watson <cjwatson@debian.org>
3Date: Sun, 9 Feb 2014 16:10:01 +0000
4Subject: Force use of DNSSEC even if "options edns0" isn't in resolv.conf
5
6This allows SSHFP DNS records to be verified if glibc 2.11 is installed.
7
8Origin: vendor, https://cvs.fedoraproject.org/viewvc/F-12/openssh/openssh-5.2p1-edns.patch?revision=1.1&view=markup
9Bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=572049
10Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=572049
11Last-Update: 2010-04-06
12
13Patch-Name: dnssec-sshfp.patch
14---
15 dns.c | 14 +++++++++++++-
16 openbsd-compat/getrrsetbyname.c | 10 +++++-----
17 openbsd-compat/getrrsetbyname.h | 3 +++
18 3 files changed, 21 insertions(+), 6 deletions(-)
19
20diff --git a/dns.c b/dns.c
21index e4f9bf830..9c9fe6413 100644
22--- a/dns.c
23+++ b/dns.c
24@@ -210,6 +210,7 @@ verify_host_key_dns(const char *hostname, struct sockaddr *address,
25 {
26 u_int counter;
27 int result;
28+ unsigned int rrset_flags = 0;
29 struct rrsetinfo *fingerprints = NULL;
30
31 u_int8_t hostkey_algorithm;
32@@ -233,8 +234,19 @@ verify_host_key_dns(const char *hostname, struct sockaddr *address,
33 return -1;
34 }
35
36+ /*
37+ * Original getrrsetbyname function, found on OpenBSD for example,
38+ * doesn't accept any flag and prerequisite for obtaining AD bit in
39+ * DNS response is set by "options edns0" in resolv.conf.
40+ *
41+ * Our version is more clever and use RRSET_FORCE_EDNS0 flag.
42+ */
43+#ifndef HAVE_GETRRSETBYNAME
44+ rrset_flags |= RRSET_FORCE_EDNS0;
45+#endif
46 result = getrrsetbyname(hostname, DNS_RDATACLASS_IN,
47- DNS_RDATATYPE_SSHFP, 0, &fingerprints);
48+ DNS_RDATATYPE_SSHFP, rrset_flags, &fingerprints);
49+
50 if (result) {
51 verbose("DNS lookup error: %s", dns_result_totext(result));
52 return -1;
53diff --git a/openbsd-compat/getrrsetbyname.c b/openbsd-compat/getrrsetbyname.c
54index dc6fe0533..e061a290a 100644
55--- a/openbsd-compat/getrrsetbyname.c
56+++ b/openbsd-compat/getrrsetbyname.c
57@@ -209,8 +209,8 @@ getrrsetbyname(const char *hostname, unsigned int rdclass,
58 goto fail;
59 }
60
61- /* don't allow flags yet, unimplemented */
62- if (flags) {
63+ /* Allow RRSET_FORCE_EDNS0 flag only. */
64+ if ((flags & !RRSET_FORCE_EDNS0) != 0) {
65 result = ERRSET_INVAL;
66 goto fail;
67 }
68@@ -226,9 +226,9 @@ getrrsetbyname(const char *hostname, unsigned int rdclass,
69 #endif /* DEBUG */
70
71 #ifdef RES_USE_DNSSEC
72- /* turn on DNSSEC if EDNS0 is configured */
73- if (_resp->options & RES_USE_EDNS0)
74- _resp->options |= RES_USE_DNSSEC;
75+ /* turn on DNSSEC if required */
76+ if (flags & RRSET_FORCE_EDNS0)
77+ _resp->options |= (RES_USE_EDNS0|RES_USE_DNSSEC);
78 #endif /* RES_USE_DNSEC */
79
80 /* make query */
81diff --git a/openbsd-compat/getrrsetbyname.h b/openbsd-compat/getrrsetbyname.h
82index 1283f5506..dbbc85a2a 100644
83--- a/openbsd-compat/getrrsetbyname.h
84+++ b/openbsd-compat/getrrsetbyname.h
85@@ -72,6 +72,9 @@
86 #ifndef RRSET_VALIDATED
87 # define RRSET_VALIDATED 1
88 #endif
89+#ifndef RRSET_FORCE_EDNS0
90+# define RRSET_FORCE_EDNS0 0x0001
91+#endif
92
93 /*
94 * Return codes for getrrsetbyname()
diff --git a/debian/patches/doc-hash-tab-completion.patch b/debian/patches/doc-hash-tab-completion.patch
new file mode 100644
index 000000000..3e96f3b8e
--- /dev/null
+++ b/debian/patches/doc-hash-tab-completion.patch
@@ -0,0 +1,28 @@
1From 5fca8a730171f96a72007118c0d35cf4a09359f8 Mon Sep 17 00:00:00 2001
2From: Colin Watson <cjwatson@debian.org>
3Date: Sun, 9 Feb 2014 16:10:11 +0000
4Subject: Document that HashKnownHosts may break tab-completion
5
6Bug: https://bugzilla.mindrot.org/show_bug.cgi?id=1727
7Bug-Debian: http://bugs.debian.org/430154
8Last-Update: 2013-09-14
9
10Patch-Name: doc-hash-tab-completion.patch
11---
12 ssh_config.5 | 3 +++
13 1 file changed, 3 insertions(+)
14
15diff --git a/ssh_config.5 b/ssh_config.5
16index 190e1d927..96ca7a5df 100644
17--- a/ssh_config.5
18+++ b/ssh_config.5
19@@ -861,6 +861,9 @@ Note that existing names and addresses in known hosts files
20 will not be converted automatically,
21 but may be manually hashed using
22 .Xr ssh-keygen 1 .
23+Use of this option may break facilities such as tab-completion that rely
24+on being able to read unhashed host names from
25+.Pa ~/.ssh/known_hosts .
26 .It Cm HostbasedAuthentication
27 Specifies whether to try rhosts based authentication with public key
28 authentication.
diff --git a/debian/patches/gnome-ssh-askpass2-icon.patch b/debian/patches/gnome-ssh-askpass2-icon.patch
new file mode 100644
index 000000000..d7d0bed64
--- /dev/null
+++ b/debian/patches/gnome-ssh-askpass2-icon.patch
@@ -0,0 +1,26 @@
1From c26f6f9c7051b9ab2ac13d1d227e6d39527839cc Mon Sep 17 00:00:00 2001
2From: Vincent Untz <vuntz@ubuntu.com>
3Date: Sun, 9 Feb 2014 16:10:16 +0000
4Subject: Give the ssh-askpass-gnome window a default icon
5
6Bug-Ubuntu: https://bugs.launchpad.net/bugs/27152
7Last-Update: 2010-02-28
8
9Patch-Name: gnome-ssh-askpass2-icon.patch
10---
11 contrib/gnome-ssh-askpass2.c | 2 ++
12 1 file changed, 2 insertions(+)
13
14diff --git a/contrib/gnome-ssh-askpass2.c b/contrib/gnome-ssh-askpass2.c
15index f7912727c..bf8c92c8f 100644
16--- a/contrib/gnome-ssh-askpass2.c
17+++ b/contrib/gnome-ssh-askpass2.c
18@@ -322,6 +322,8 @@ main(int argc, char **argv)
19
20 gtk_init(&argc, &argv);
21
22+ gtk_window_set_default_icon_from_file ("/usr/share/pixmaps/ssh-askpass-gnome.png", NULL);
23+
24 if (argc > 1) {
25 message = g_strjoinv(" ", argv + 1);
26 } else {
diff --git a/debian/patches/gssapi.patch b/debian/patches/gssapi.patch
new file mode 100644
index 000000000..d779eacb6
--- /dev/null
+++ b/debian/patches/gssapi.patch
@@ -0,0 +1,4002 @@
1From d1b7918f9bce6e997c7952ac795e18d09192b2a6 Mon Sep 17 00:00:00 2001
2From: Simon Wilkinson <simon@sxw.org.uk>
3Date: Sun, 9 Feb 2014 16:09:48 +0000
4Subject: GSSAPI key exchange support
5
6This patch has been rejected upstream: "None of the OpenSSH developers are
7in favour of adding this, and this situation has not changed for several
8years. This is not a slight on Simon's patch, which is of fine quality, but
9just that a) we don't trust GSSAPI implementations that much and b) we don't
10like adding new KEX since they are pre-auth attack surface. This one is
11particularly scary, since it requires hooks out to typically root-owned
12system resources."
13
14However, quite a lot of people rely on this in Debian, and it's better to
15have it merged into the main openssh package rather than having separate
16-krb5 packages (as we used to have). It seems to have a generally good
17security history.
18
19Author: Simon Wilkinson <simon@sxw.org.uk>
20Author: Colin Watson <cjwatson@debian.org>
21Author: Jakub Jelen <jjelen@redhat.com>
22Origin: other, https://github.com/openssh-gsskex/openssh-gsskex/commits/debian/master
23Bug: https://bugzilla.mindrot.org/show_bug.cgi?id=1242
24Last-Updated: 2020-06-07
25
26Patch-Name: gssapi.patch
27---
28 Makefile.in | 3 +-
29 README.md | 33 +++
30 auth.c | 96 +-------
31 auth2-gss.c | 56 ++++-
32 auth2.c | 2 +
33 canohost.c | 93 ++++++++
34 canohost.h | 3 +
35 clientloop.c | 15 +-
36 configure.ac | 24 ++
37 gss-genr.c | 300 +++++++++++++++++++++++-
38 gss-serv-krb5.c | 85 ++++++-
39 gss-serv.c | 186 +++++++++++++--
40 kex.c | 66 +++++-
41 kex.h | 29 +++
42 kexdh.c | 10 +
43 kexgen.c | 2 +-
44 kexgssc.c | 606 ++++++++++++++++++++++++++++++++++++++++++++++++
45 kexgsss.c | 474 +++++++++++++++++++++++++++++++++++++
46 monitor.c | 139 ++++++++++-
47 monitor.h | 2 +
48 monitor_wrap.c | 57 ++++-
49 monitor_wrap.h | 4 +-
50 readconf.c | 70 ++++++
51 readconf.h | 6 +
52 servconf.c | 47 ++++
53 servconf.h | 3 +
54 session.c | 10 +-
55 ssh-gss.h | 54 ++++-
56 ssh.1 | 8 +
57 ssh.c | 6 +-
58 ssh_config | 2 +
59 ssh_config.5 | 57 +++++
60 sshconnect2.c | 154 +++++++++++-
61 sshd.c | 62 ++++-
62 sshd_config | 2 +
63 sshd_config.5 | 30 +++
64 sshkey.c | 3 +-
65 sshkey.h | 1 +
66 38 files changed, 2640 insertions(+), 160 deletions(-)
67 create mode 100644 kexgssc.c
68 create mode 100644 kexgsss.c
69
70diff --git a/Makefile.in b/Makefile.in
71index acfb919da..56759c388 100644
72--- a/Makefile.in
73+++ b/Makefile.in
74@@ -107,6 +107,7 @@ LIBSSH_OBJS=${LIBOPENSSH_OBJS} \
75 kex.o kexdh.o kexgex.o kexecdh.o kexc25519.o \
76 kexgexc.o kexgexs.o \
77 sntrup4591761.o kexsntrup4591761x25519.o kexgen.o \
78+ kexgssc.o \
79 sftp-realpath.o platform-pledge.o platform-tracing.o platform-misc.o \
80 sshbuf-io.o
81
82@@ -123,7 +124,7 @@ SSHDOBJS=sshd.o auth-rhosts.o auth-passwd.o \
83 auth-bsdauth.o auth2-hostbased.o auth2-kbdint.o \
84 auth2-none.o auth2-passwd.o auth2-pubkey.o \
85 monitor.o monitor_wrap.o auth-krb5.o \
86- auth2-gss.o gss-serv.o gss-serv-krb5.o \
87+ auth2-gss.o gss-serv.o gss-serv-krb5.o kexgsss.o \
88 loginrec.o auth-pam.o auth-shadow.o auth-sia.o md5crypt.o \
89 sftp-server.o sftp-common.o \
90 sandbox-null.o sandbox-rlimit.o sandbox-systrace.o sandbox-darwin.o \
91diff --git a/README.md b/README.md
92index 28fb43d2a..5b73d24c0 100644
93--- a/README.md
94+++ b/README.md
95@@ -1,3 +1,36 @@
96+Portable OpenSSH with GSSAPI Key Exchange patches
97+=================================================
98+
99+Currently, there are two branches with gssapi key exchange related
100+patches:
101+
102+ * fedora/master: Changes that are shipped in Fedora
103+ * debian/master: Changes that are shipped in Debian
104+
105+The target is to converge to a shared repository with single master
106+branch from where we could build releases for both OSes.
107+
108+
109+What is in:
110+
111+ * The original patch implementing missing parts of RFC4462 by Simon Wilkinson
112+ adapted to the current OpenSSH versions and with several fixes
113+ * New methods for GSSAPI Kex from IETF draft [1] from Jakub Jelen
114+
115+
116+Missing kerberos-related parts:
117+
118+ * .k5login and .kusers support available in Fedora [2] [3].
119+ * Improved handling of kerberos ccache location [4]
120+
121+
122+[1] https://tools.ietf.org/html/draft-ietf-curdle-gss-keyex-sha2-08
123+[2] https://src.fedoraproject.org/rpms/openssh/blob/master/f/openssh-6.6p1-kuserok.patch
124+[3] https://src.fedoraproject.org/rpms/openssh/blob/master/f/openssh-6.6p1-GSSAPIEnablek5users.patch
125+[4] https://bugzilla.mindrot.org/show_bug.cgi?id=2775
126+
127+-------------------------------------------------------------------------------
128+
129 # Portable OpenSSH
130
131 [![Fuzzing Status](https://oss-fuzz-build-logs.storage.googleapis.com/badges/openssh.svg)](https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:openssh)
132diff --git a/auth.c b/auth.c
133index 9a5498b66..3d31ec860 100644
134--- a/auth.c
135+++ b/auth.c
136@@ -400,7 +400,8 @@ auth_root_allowed(struct ssh *ssh, const char *method)
137 case PERMIT_NO_PASSWD:
138 if (strcmp(method, "publickey") == 0 ||
139 strcmp(method, "hostbased") == 0 ||
140- strcmp(method, "gssapi-with-mic") == 0)
141+ strcmp(method, "gssapi-with-mic") == 0 ||
142+ strcmp(method, "gssapi-keyex") == 0)
143 return 1;
144 break;
145 case PERMIT_FORCED_ONLY:
146@@ -724,99 +725,6 @@ fakepw(void)
147 return (&fake);
148 }
149
150-/*
151- * Returns the remote DNS hostname as a string. The returned string must not
152- * be freed. NB. this will usually trigger a DNS query the first time it is
153- * called.
154- * This function does additional checks on the hostname to mitigate some
155- * attacks on legacy rhosts-style authentication.
156- * XXX is RhostsRSAAuthentication vulnerable to these?
157- * XXX Can we remove these checks? (or if not, remove RhostsRSAAuthentication?)
158- */
159-
160-static char *
161-remote_hostname(struct ssh *ssh)
162-{
163- struct sockaddr_storage from;
164- socklen_t fromlen;
165- struct addrinfo hints, *ai, *aitop;
166- char name[NI_MAXHOST], ntop2[NI_MAXHOST];
167- const char *ntop = ssh_remote_ipaddr(ssh);
168-
169- /* Get IP address of client. */
170- fromlen = sizeof(from);
171- memset(&from, 0, sizeof(from));
172- if (getpeername(ssh_packet_get_connection_in(ssh),
173- (struct sockaddr *)&from, &fromlen) == -1) {
174- debug("getpeername failed: %.100s", strerror(errno));
175- return xstrdup(ntop);
176- }
177-
178- ipv64_normalise_mapped(&from, &fromlen);
179- if (from.ss_family == AF_INET6)
180- fromlen = sizeof(struct sockaddr_in6);
181-
182- debug3("Trying to reverse map address %.100s.", ntop);
183- /* Map the IP address to a host name. */
184- if (getnameinfo((struct sockaddr *)&from, fromlen, name, sizeof(name),
185- NULL, 0, NI_NAMEREQD) != 0) {
186- /* Host name not found. Use ip address. */
187- return xstrdup(ntop);
188- }
189-
190- /*
191- * if reverse lookup result looks like a numeric hostname,
192- * someone is trying to trick us by PTR record like following:
193- * 1.1.1.10.in-addr.arpa. IN PTR 2.3.4.5
194- */
195- memset(&hints, 0, sizeof(hints));
196- hints.ai_socktype = SOCK_DGRAM; /*dummy*/
197- hints.ai_flags = AI_NUMERICHOST;
198- if (getaddrinfo(name, NULL, &hints, &ai) == 0) {
199- logit("Nasty PTR record \"%s\" is set up for %s, ignoring",
200- name, ntop);
201- freeaddrinfo(ai);
202- return xstrdup(ntop);
203- }
204-
205- /* Names are stored in lowercase. */
206- lowercase(name);
207-
208- /*
209- * Map it back to an IP address and check that the given
210- * address actually is an address of this host. This is
211- * necessary because anyone with access to a name server can
212- * define arbitrary names for an IP address. Mapping from
213- * name to IP address can be trusted better (but can still be
214- * fooled if the intruder has access to the name server of
215- * the domain).
216- */
217- memset(&hints, 0, sizeof(hints));
218- hints.ai_family = from.ss_family;
219- hints.ai_socktype = SOCK_STREAM;
220- if (getaddrinfo(name, NULL, &hints, &aitop) != 0) {
221- logit("reverse mapping checking getaddrinfo for %.700s "
222- "[%s] failed.", name, ntop);
223- return xstrdup(ntop);
224- }
225- /* Look for the address from the list of addresses. */
226- for (ai = aitop; ai; ai = ai->ai_next) {
227- if (getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop2,
228- sizeof(ntop2), NULL, 0, NI_NUMERICHOST) == 0 &&
229- (strcmp(ntop, ntop2) == 0))
230- break;
231- }
232- freeaddrinfo(aitop);
233- /* If we reached the end of the list, the address was not there. */
234- if (ai == NULL) {
235- /* Address not found for the host name. */
236- logit("Address %.100s maps to %.600s, but this does not "
237- "map back to the address.", ntop, name);
238- return xstrdup(ntop);
239- }
240- return xstrdup(name);
241-}
242-
243 /*
244 * Return the canonical name of the host in the other side of the current
245 * connection. The host name is cached, so it is efficient to call this
246diff --git a/auth2-gss.c b/auth2-gss.c
247index 9351e0428..d6446c0cf 100644
248--- a/auth2-gss.c
249+++ b/auth2-gss.c
250@@ -1,7 +1,7 @@
251 /* $OpenBSD: auth2-gss.c,v 1.29 2018/07/31 03:10:27 djm Exp $ */
252
253 /*
254- * Copyright (c) 2001-2003 Simon Wilkinson. All rights reserved.
255+ * Copyright (c) 2001-2007 Simon Wilkinson. All rights reserved.
256 *
257 * Redistribution and use in source and binary forms, with or without
258 * modification, are permitted provided that the following conditions
259@@ -54,6 +54,48 @@ static int input_gssapi_mic(int type, u_int32_t plen, struct ssh *ssh);
260 static int input_gssapi_exchange_complete(int type, u_int32_t plen, struct ssh *ssh);
261 static int input_gssapi_errtok(int, u_int32_t, struct ssh *);
262
263+/*
264+ * The 'gssapi_keyex' userauth mechanism.
265+ */
266+static int
267+userauth_gsskeyex(struct ssh *ssh)
268+{
269+ Authctxt *authctxt = ssh->authctxt;
270+ int r, authenticated = 0;
271+ struct sshbuf *b = NULL;
272+ gss_buffer_desc mic, gssbuf;
273+ u_char *p;
274+ size_t len;
275+
276+ if ((r = sshpkt_get_string(ssh, &p, &len)) != 0 ||
277+ (r = sshpkt_get_end(ssh)) != 0)
278+ fatal("%s: %s", __func__, ssh_err(r));
279+
280+ if ((b = sshbuf_new()) == NULL)
281+ fatal("%s: sshbuf_new failed", __func__);
282+
283+ mic.value = p;
284+ mic.length = len;
285+
286+ ssh_gssapi_buildmic(b, authctxt->user, authctxt->service,
287+ "gssapi-keyex");
288+
289+ if ((gssbuf.value = sshbuf_mutable_ptr(b)) == NULL)
290+ fatal("%s: sshbuf_mutable_ptr failed", __func__);
291+ gssbuf.length = sshbuf_len(b);
292+
293+ /* gss_kex_context is NULL with privsep, so we can't check it here */
294+ if (!GSS_ERROR(PRIVSEP(ssh_gssapi_checkmic(gss_kex_context,
295+ &gssbuf, &mic))))
296+ authenticated = PRIVSEP(ssh_gssapi_userok(authctxt->user,
297+ authctxt->pw, 1));
298+
299+ sshbuf_free(b);
300+ free(mic.value);
301+
302+ return (authenticated);
303+}
304+
305 /*
306 * We only support those mechanisms that we know about (ie ones that we know
307 * how to check local user kuserok and the like)
308@@ -260,7 +302,8 @@ input_gssapi_exchange_complete(int type, u_int32_t plen, struct ssh *ssh)
309 if ((r = sshpkt_get_end(ssh)) != 0)
310 fatal("%s: %s", __func__, ssh_err(r));
311
312- authenticated = PRIVSEP(ssh_gssapi_userok(authctxt->user));
313+ authenticated = PRIVSEP(ssh_gssapi_userok(authctxt->user,
314+ authctxt->pw, 1));
315
316 if ((!use_privsep || mm_is_monitor()) &&
317 (displayname = ssh_gssapi_displayname()) != NULL)
318@@ -306,7 +349,8 @@ input_gssapi_mic(int type, u_int32_t plen, struct ssh *ssh)
319 gssbuf.length = sshbuf_len(b);
320
321 if (!GSS_ERROR(PRIVSEP(ssh_gssapi_checkmic(gssctxt, &gssbuf, &mic))))
322- authenticated = PRIVSEP(ssh_gssapi_userok(authctxt->user));
323+ authenticated = PRIVSEP(ssh_gssapi_userok(authctxt->user,
324+ authctxt->pw, 0));
325 else
326 logit("GSSAPI MIC check failed");
327
328@@ -326,6 +370,12 @@ input_gssapi_mic(int type, u_int32_t plen, struct ssh *ssh)
329 return 0;
330 }
331
332+Authmethod method_gsskeyex = {
333+ "gssapi-keyex",
334+ userauth_gsskeyex,
335+ &options.gss_authentication
336+};
337+
338 Authmethod method_gssapi = {
339 "gssapi-with-mic",
340 userauth_gssapi,
341diff --git a/auth2.c b/auth2.c
342index 242a7adbe..9fa1404b3 100644
343--- a/auth2.c
344+++ b/auth2.c
345@@ -73,6 +73,7 @@ extern Authmethod method_passwd;
346 extern Authmethod method_kbdint;
347 extern Authmethod method_hostbased;
348 #ifdef GSSAPI
349+extern Authmethod method_gsskeyex;
350 extern Authmethod method_gssapi;
351 #endif
352
353@@ -80,6 +81,7 @@ Authmethod *authmethods[] = {
354 &method_none,
355 &method_pubkey,
356 #ifdef GSSAPI
357+ &method_gsskeyex,
358 &method_gssapi,
359 #endif
360 &method_passwd,
361diff --git a/canohost.c b/canohost.c
362index abea9c6e6..8e81b5193 100644
363--- a/canohost.c
364+++ b/canohost.c
365@@ -35,6 +35,99 @@
366 #include "canohost.h"
367 #include "misc.h"
368
369+/*
370+ * Returns the remote DNS hostname as a string. The returned string must not
371+ * be freed. NB. this will usually trigger a DNS query the first time it is
372+ * called.
373+ * This function does additional checks on the hostname to mitigate some
374+ * attacks on legacy rhosts-style authentication.
375+ * XXX is RhostsRSAAuthentication vulnerable to these?
376+ * XXX Can we remove these checks? (or if not, remove RhostsRSAAuthentication?)
377+ */
378+
379+char *
380+remote_hostname(struct ssh *ssh)
381+{
382+ struct sockaddr_storage from;
383+ socklen_t fromlen;
384+ struct addrinfo hints, *ai, *aitop;
385+ char name[NI_MAXHOST], ntop2[NI_MAXHOST];
386+ const char *ntop = ssh_remote_ipaddr(ssh);
387+
388+ /* Get IP address of client. */
389+ fromlen = sizeof(from);
390+ memset(&from, 0, sizeof(from));
391+ if (getpeername(ssh_packet_get_connection_in(ssh),
392+ (struct sockaddr *)&from, &fromlen) == -1) {
393+ debug("getpeername failed: %.100s", strerror(errno));
394+ return xstrdup(ntop);
395+ }
396+
397+ ipv64_normalise_mapped(&from, &fromlen);
398+ if (from.ss_family == AF_INET6)
399+ fromlen = sizeof(struct sockaddr_in6);
400+
401+ debug3("Trying to reverse map address %.100s.", ntop);
402+ /* Map the IP address to a host name. */
403+ if (getnameinfo((struct sockaddr *)&from, fromlen, name, sizeof(name),
404+ NULL, 0, NI_NAMEREQD) != 0) {
405+ /* Host name not found. Use ip address. */
406+ return xstrdup(ntop);
407+ }
408+
409+ /*
410+ * if reverse lookup result looks like a numeric hostname,
411+ * someone is trying to trick us by PTR record like following:
412+ * 1.1.1.10.in-addr.arpa. IN PTR 2.3.4.5
413+ */
414+ memset(&hints, 0, sizeof(hints));
415+ hints.ai_socktype = SOCK_DGRAM; /*dummy*/
416+ hints.ai_flags = AI_NUMERICHOST;
417+ if (getaddrinfo(name, NULL, &hints, &ai) == 0) {
418+ logit("Nasty PTR record \"%s\" is set up for %s, ignoring",
419+ name, ntop);
420+ freeaddrinfo(ai);
421+ return xstrdup(ntop);
422+ }
423+
424+ /* Names are stored in lowercase. */
425+ lowercase(name);
426+
427+ /*
428+ * Map it back to an IP address and check that the given
429+ * address actually is an address of this host. This is
430+ * necessary because anyone with access to a name server can
431+ * define arbitrary names for an IP address. Mapping from
432+ * name to IP address can be trusted better (but can still be
433+ * fooled if the intruder has access to the name server of
434+ * the domain).
435+ */
436+ memset(&hints, 0, sizeof(hints));
437+ hints.ai_family = from.ss_family;
438+ hints.ai_socktype = SOCK_STREAM;
439+ if (getaddrinfo(name, NULL, &hints, &aitop) != 0) {
440+ logit("reverse mapping checking getaddrinfo for %.700s "
441+ "[%s] failed.", name, ntop);
442+ return xstrdup(ntop);
443+ }
444+ /* Look for the address from the list of addresses. */
445+ for (ai = aitop; ai; ai = ai->ai_next) {
446+ if (getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop2,
447+ sizeof(ntop2), NULL, 0, NI_NUMERICHOST) == 0 &&
448+ (strcmp(ntop, ntop2) == 0))
449+ break;
450+ }
451+ freeaddrinfo(aitop);
452+ /* If we reached the end of the list, the address was not there. */
453+ if (ai == NULL) {
454+ /* Address not found for the host name. */
455+ logit("Address %.100s maps to %.600s, but this does not "
456+ "map back to the address.", ntop, name);
457+ return xstrdup(ntop);
458+ }
459+ return xstrdup(name);
460+}
461+
462 void
463 ipv64_normalise_mapped(struct sockaddr_storage *addr, socklen_t *len)
464 {
465diff --git a/canohost.h b/canohost.h
466index 26d62855a..0cadc9f18 100644
467--- a/canohost.h
468+++ b/canohost.h
469@@ -15,6 +15,9 @@
470 #ifndef _CANOHOST_H
471 #define _CANOHOST_H
472
473+struct ssh;
474+
475+char *remote_hostname(struct ssh *);
476 char *get_peer_ipaddr(int);
477 int get_peer_port(int);
478 char *get_local_ipaddr(int);
479diff --git a/clientloop.c b/clientloop.c
480index 60b46d161..2cebea29f 100644
481--- a/clientloop.c
482+++ b/clientloop.c
483@@ -112,6 +112,10 @@
484 #include "ssherr.h"
485 #include "hostfile.h"
486
487+#ifdef GSSAPI
488+#include "ssh-gss.h"
489+#endif
490+
491 /* import options */
492 extern Options options;
493
494@@ -1368,9 +1372,18 @@ client_loop(struct ssh *ssh, int have_pty, int escape_char_arg,
495 break;
496
497 /* Do channel operations unless rekeying in progress. */
498- if (!ssh_packet_is_rekeying(ssh))
499+ if (!ssh_packet_is_rekeying(ssh)) {
500 channel_after_select(ssh, readset, writeset);
501
502+#ifdef GSSAPI
503+ if (options.gss_renewal_rekey &&
504+ ssh_gssapi_credentials_updated(NULL)) {
505+ debug("credentials updated - forcing rekey");
506+ need_rekeying = 1;
507+ }
508+#endif
509+ }
510+
511 /* Buffer input from the connection. */
512 client_process_net_input(ssh, readset);
513
514diff --git a/configure.ac b/configure.ac
515index 7005a503e..c8a96deb4 100644
516--- a/configure.ac
517+++ b/configure.ac
518@@ -679,6 +679,30 @@ main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
519 [Use tunnel device compatibility to OpenBSD])
520 AC_DEFINE([SSH_TUN_PREPEND_AF], [1],
521 [Prepend the address family to IP tunnel traffic])
522+ AC_MSG_CHECKING([if we have the Security Authorization Session API])
523+ AC_TRY_COMPILE([#include <Security/AuthSession.h>],
524+ [SessionCreate(0, 0);],
525+ [ac_cv_use_security_session_api="yes"
526+ AC_DEFINE([USE_SECURITY_SESSION_API], [1],
527+ [platform has the Security Authorization Session API])
528+ LIBS="$LIBS -framework Security"
529+ AC_MSG_RESULT([yes])],
530+ [ac_cv_use_security_session_api="no"
531+ AC_MSG_RESULT([no])])
532+ AC_MSG_CHECKING([if we have an in-memory credentials cache])
533+ AC_TRY_COMPILE(
534+ [#include <Kerberos/Kerberos.h>],
535+ [cc_context_t c;
536+ (void) cc_initialize (&c, 0, NULL, NULL);],
537+ [AC_DEFINE([USE_CCAPI], [1],
538+ [platform uses an in-memory credentials cache])
539+ LIBS="$LIBS -framework Security"
540+ AC_MSG_RESULT([yes])
541+ if test "x$ac_cv_use_security_session_api" = "xno"; then
542+ AC_MSG_ERROR([*** Need a security framework to use the credentials cache API ***])
543+ fi],
544+ [AC_MSG_RESULT([no])]
545+ )
546 m4_pattern_allow([AU_IPv])
547 AC_CHECK_DECL([AU_IPv4], [],
548 AC_DEFINE([AU_IPv4], [0], [System only supports IPv4 audit records])
549diff --git a/gss-genr.c b/gss-genr.c
550index d56257b4a..763a63ffa 100644
551--- a/gss-genr.c
552+++ b/gss-genr.c
553@@ -1,7 +1,7 @@
554 /* $OpenBSD: gss-genr.c,v 1.26 2018/07/10 09:13:30 djm Exp $ */
555
556 /*
557- * Copyright (c) 2001-2007 Simon Wilkinson. All rights reserved.
558+ * Copyright (c) 2001-2009 Simon Wilkinson. All rights reserved.
559 *
560 * Redistribution and use in source and binary forms, with or without
561 * modification, are permitted provided that the following conditions
562@@ -41,12 +41,36 @@
563 #include "sshbuf.h"
564 #include "log.h"
565 #include "ssh2.h"
566+#include "cipher.h"
567+#include "sshkey.h"
568+#include "kex.h"
569+#include "digest.h"
570+#include "packet.h"
571
572 #include "ssh-gss.h"
573
574 extern u_char *session_id2;
575 extern u_int session_id2_len;
576
577+typedef struct {
578+ char *encoded;
579+ gss_OID oid;
580+} ssh_gss_kex_mapping;
581+
582+/*
583+ * XXX - It would be nice to find a more elegant way of handling the
584+ * XXX passing of the key exchange context to the userauth routines
585+ */
586+
587+Gssctxt *gss_kex_context = NULL;
588+
589+static ssh_gss_kex_mapping *gss_enc2oid = NULL;
590+
591+int
592+ssh_gssapi_oid_table_ok(void) {
593+ return (gss_enc2oid != NULL);
594+}
595+
596 /* sshbuf_get for gss_buffer_desc */
597 int
598 ssh_gssapi_get_buffer_desc(struct sshbuf *b, gss_buffer_desc *g)
599@@ -62,6 +86,162 @@ ssh_gssapi_get_buffer_desc(struct sshbuf *b, gss_buffer_desc *g)
600 return 0;
601 }
602
603+/* sshpkt_get of gss_buffer_desc */
604+int
605+ssh_gssapi_sshpkt_get_buffer_desc(struct ssh *ssh, gss_buffer_desc *g)
606+{
607+ int r;
608+ u_char *p;
609+ size_t len;
610+
611+ if ((r = sshpkt_get_string(ssh, &p, &len)) != 0)
612+ return r;
613+ g->value = p;
614+ g->length = len;
615+ return 0;
616+}
617+
618+/*
619+ * Return a list of the gss-group1-sha1 mechanisms supported by this program
620+ *
621+ * We test mechanisms to ensure that we can use them, to avoid starting
622+ * a key exchange with a bad mechanism
623+ */
624+
625+char *
626+ssh_gssapi_client_mechanisms(const char *host, const char *client,
627+ const char *kex) {
628+ gss_OID_set gss_supported = NULL;
629+ OM_uint32 min_status;
630+
631+ if (GSS_ERROR(gss_indicate_mechs(&min_status, &gss_supported)))
632+ return NULL;
633+
634+ return ssh_gssapi_kex_mechs(gss_supported, ssh_gssapi_check_mechanism,
635+ host, client, kex);
636+}
637+
638+char *
639+ssh_gssapi_kex_mechs(gss_OID_set gss_supported, ssh_gssapi_check_fn *check,
640+ const char *host, const char *client, const char *kex) {
641+ struct sshbuf *buf = NULL;
642+ size_t i;
643+ int r = SSH_ERR_ALLOC_FAIL;
644+ int oidpos, enclen;
645+ char *mechs, *encoded;
646+ u_char digest[SSH_DIGEST_MAX_LENGTH];
647+ char deroid[2];
648+ struct ssh_digest_ctx *md = NULL;
649+ char *s, *cp, *p;
650+
651+ if (gss_enc2oid != NULL) {
652+ for (i = 0; gss_enc2oid[i].encoded != NULL; i++)
653+ free(gss_enc2oid[i].encoded);
654+ free(gss_enc2oid);
655+ }
656+
657+ gss_enc2oid = xmalloc(sizeof(ssh_gss_kex_mapping) *
658+ (gss_supported->count + 1));
659+
660+ if ((buf = sshbuf_new()) == NULL)
661+ fatal("%s: sshbuf_new failed", __func__);
662+
663+ oidpos = 0;
664+ s = cp = xstrdup(kex);
665+ for (i = 0; i < gss_supported->count; i++) {
666+ if (gss_supported->elements[i].length < 128 &&
667+ (*check)(NULL, &(gss_supported->elements[i]), host, client)) {
668+
669+ deroid[0] = SSH_GSS_OIDTYPE;
670+ deroid[1] = gss_supported->elements[i].length;
671+
672+ if ((md = ssh_digest_start(SSH_DIGEST_MD5)) == NULL ||
673+ (r = ssh_digest_update(md, deroid, 2)) != 0 ||
674+ (r = ssh_digest_update(md,
675+ gss_supported->elements[i].elements,
676+ gss_supported->elements[i].length)) != 0 ||
677+ (r = ssh_digest_final(md, digest, sizeof(digest))) != 0)
678+ fatal("%s: digest failed: %s", __func__,
679+ ssh_err(r));
680+ ssh_digest_free(md);
681+ md = NULL;
682+
683+ encoded = xmalloc(ssh_digest_bytes(SSH_DIGEST_MD5)
684+ * 2);
685+ enclen = __b64_ntop(digest,
686+ ssh_digest_bytes(SSH_DIGEST_MD5), encoded,
687+ ssh_digest_bytes(SSH_DIGEST_MD5) * 2);
688+
689+ cp = strncpy(s, kex, strlen(kex));
690+ for ((p = strsep(&cp, ",")); p && *p != '\0';
691+ (p = strsep(&cp, ","))) {
692+ if (sshbuf_len(buf) != 0 &&
693+ (r = sshbuf_put_u8(buf, ',')) != 0)
694+ fatal("%s: sshbuf_put_u8 error: %s",
695+ __func__, ssh_err(r));
696+ if ((r = sshbuf_put(buf, p, strlen(p))) != 0 ||
697+ (r = sshbuf_put(buf, encoded, enclen)) != 0)
698+ fatal("%s: sshbuf_put error: %s",
699+ __func__, ssh_err(r));
700+ }
701+
702+ gss_enc2oid[oidpos].oid = &(gss_supported->elements[i]);
703+ gss_enc2oid[oidpos].encoded = encoded;
704+ oidpos++;
705+ }
706+ }
707+ free(s);
708+ gss_enc2oid[oidpos].oid = NULL;
709+ gss_enc2oid[oidpos].encoded = NULL;
710+
711+ if ((mechs = sshbuf_dup_string(buf)) == NULL)
712+ fatal("%s: sshbuf_dup_string failed", __func__);
713+
714+ sshbuf_free(buf);
715+
716+ if (strlen(mechs) == 0) {
717+ free(mechs);
718+ mechs = NULL;
719+ }
720+
721+ return (mechs);
722+}
723+
724+gss_OID
725+ssh_gssapi_id_kex(Gssctxt *ctx, char *name, int kex_type) {
726+ int i = 0;
727+
728+#define SKIP_KEX_NAME(type) \
729+ case type: \
730+ if (strlen(name) < sizeof(type##_ID)) \
731+ return GSS_C_NO_OID; \
732+ name += sizeof(type##_ID) - 1; \
733+ break;
734+
735+ switch (kex_type) {
736+ SKIP_KEX_NAME(KEX_GSS_GRP1_SHA1)
737+ SKIP_KEX_NAME(KEX_GSS_GRP14_SHA1)
738+ SKIP_KEX_NAME(KEX_GSS_GRP14_SHA256)
739+ SKIP_KEX_NAME(KEX_GSS_GRP16_SHA512)
740+ SKIP_KEX_NAME(KEX_GSS_GEX_SHA1)
741+ SKIP_KEX_NAME(KEX_GSS_NISTP256_SHA256)
742+ SKIP_KEX_NAME(KEX_GSS_C25519_SHA256)
743+ default:
744+ return GSS_C_NO_OID;
745+ }
746+
747+#undef SKIP_KEX_NAME
748+
749+ while (gss_enc2oid[i].encoded != NULL &&
750+ strcmp(name, gss_enc2oid[i].encoded) != 0)
751+ i++;
752+
753+ if (gss_enc2oid[i].oid != NULL && ctx != NULL)
754+ ssh_gssapi_set_oid(ctx, gss_enc2oid[i].oid);
755+
756+ return gss_enc2oid[i].oid;
757+}
758+
759 /* Check that the OID in a data stream matches that in the context */
760 int
761 ssh_gssapi_check_oid(Gssctxt *ctx, void *data, size_t len)
762@@ -218,7 +398,7 @@ ssh_gssapi_init_ctx(Gssctxt *ctx, int deleg_creds, gss_buffer_desc *recv_tok,
763 }
764
765 ctx->major = gss_init_sec_context(&ctx->minor,
766- GSS_C_NO_CREDENTIAL, &ctx->context, ctx->name, ctx->oid,
767+ ctx->client_creds, &ctx->context, ctx->name, ctx->oid,
768 GSS_C_MUTUAL_FLAG | GSS_C_INTEG_FLAG | deleg_flag,
769 0, NULL, recv_tok, NULL, send_tok, flags, NULL);
770
771@@ -247,9 +427,43 @@ ssh_gssapi_import_name(Gssctxt *ctx, const char *host)
772 return (ctx->major);
773 }
774
775+OM_uint32
776+ssh_gssapi_client_identity(Gssctxt *ctx, const char *name)
777+{
778+ gss_buffer_desc gssbuf;
779+ gss_name_t gssname;
780+ OM_uint32 status;
781+ gss_OID_set oidset;
782+
783+ gssbuf.value = (void *) name;
784+ gssbuf.length = strlen(gssbuf.value);
785+
786+ gss_create_empty_oid_set(&status, &oidset);
787+ gss_add_oid_set_member(&status, ctx->oid, &oidset);
788+
789+ ctx->major = gss_import_name(&ctx->minor, &gssbuf,
790+ GSS_C_NT_USER_NAME, &gssname);
791+
792+ if (!ctx->major)
793+ ctx->major = gss_acquire_cred(&ctx->minor,
794+ gssname, 0, oidset, GSS_C_INITIATE,
795+ &ctx->client_creds, NULL, NULL);
796+
797+ gss_release_name(&status, &gssname);
798+ gss_release_oid_set(&status, &oidset);
799+
800+ if (ctx->major)
801+ ssh_gssapi_error(ctx);
802+
803+ return(ctx->major);
804+}
805+
806 OM_uint32
807 ssh_gssapi_sign(Gssctxt *ctx, gss_buffer_t buffer, gss_buffer_t hash)
808 {
809+ if (ctx == NULL)
810+ return -1;
811+
812 if ((ctx->major = gss_get_mic(&ctx->minor, ctx->context,
813 GSS_C_QOP_DEFAULT, buffer, hash)))
814 ssh_gssapi_error(ctx);
815@@ -257,6 +471,19 @@ ssh_gssapi_sign(Gssctxt *ctx, gss_buffer_t buffer, gss_buffer_t hash)
816 return (ctx->major);
817 }
818
819+/* Priviledged when used by server */
820+OM_uint32
821+ssh_gssapi_checkmic(Gssctxt *ctx, gss_buffer_t gssbuf, gss_buffer_t gssmic)
822+{
823+ if (ctx == NULL)
824+ return -1;
825+
826+ ctx->major = gss_verify_mic(&ctx->minor, ctx->context,
827+ gssbuf, gssmic, NULL);
828+
829+ return (ctx->major);
830+}
831+
832 void
833 ssh_gssapi_buildmic(struct sshbuf *b, const char *user, const char *service,
834 const char *context)
835@@ -273,11 +500,16 @@ ssh_gssapi_buildmic(struct sshbuf *b, const char *user, const char *service,
836 }
837
838 int
839-ssh_gssapi_check_mechanism(Gssctxt **ctx, gss_OID oid, const char *host)
840+ssh_gssapi_check_mechanism(Gssctxt **ctx, gss_OID oid, const char *host,
841+ const char *client)
842 {
843 gss_buffer_desc token = GSS_C_EMPTY_BUFFER;
844 OM_uint32 major, minor;
845 gss_OID_desc spnego_oid = {6, (void *)"\x2B\x06\x01\x05\x05\x02"};
846+ Gssctxt *intctx = NULL;
847+
848+ if (ctx == NULL)
849+ ctx = &intctx;
850
851 /* RFC 4462 says we MUST NOT do SPNEGO */
852 if (oid->length == spnego_oid.length &&
853@@ -287,6 +519,10 @@ ssh_gssapi_check_mechanism(Gssctxt **ctx, gss_OID oid, const char *host)
854 ssh_gssapi_build_ctx(ctx);
855 ssh_gssapi_set_oid(*ctx, oid);
856 major = ssh_gssapi_import_name(*ctx, host);
857+
858+ if (!GSS_ERROR(major) && client)
859+ major = ssh_gssapi_client_identity(*ctx, client);
860+
861 if (!GSS_ERROR(major)) {
862 major = ssh_gssapi_init_ctx(*ctx, 0, GSS_C_NO_BUFFER, &token,
863 NULL);
864@@ -296,10 +532,66 @@ ssh_gssapi_check_mechanism(Gssctxt **ctx, gss_OID oid, const char *host)
865 GSS_C_NO_BUFFER);
866 }
867
868- if (GSS_ERROR(major))
869+ if (GSS_ERROR(major) || intctx != NULL)
870 ssh_gssapi_delete_ctx(ctx);
871
872 return (!GSS_ERROR(major));
873 }
874
875+int
876+ssh_gssapi_credentials_updated(Gssctxt *ctxt) {
877+ static gss_name_t saved_name = GSS_C_NO_NAME;
878+ static OM_uint32 saved_lifetime = 0;
879+ static gss_OID saved_mech = GSS_C_NO_OID;
880+ static gss_name_t name;
881+ static OM_uint32 last_call = 0;
882+ OM_uint32 lifetime, now, major, minor;
883+ int equal;
884+
885+ now = time(NULL);
886+
887+ if (ctxt) {
888+ debug("Rekey has happened - updating saved versions");
889+
890+ if (saved_name != GSS_C_NO_NAME)
891+ gss_release_name(&minor, &saved_name);
892+
893+ major = gss_inquire_cred(&minor, GSS_C_NO_CREDENTIAL,
894+ &saved_name, &saved_lifetime, NULL, NULL);
895+
896+ if (!GSS_ERROR(major)) {
897+ saved_mech = ctxt->oid;
898+ saved_lifetime+= now;
899+ } else {
900+ /* Handle the error */
901+ }
902+ return 0;
903+ }
904+
905+ if (now - last_call < 10)
906+ return 0;
907+
908+ last_call = now;
909+
910+ if (saved_mech == GSS_C_NO_OID)
911+ return 0;
912+
913+ major = gss_inquire_cred(&minor, GSS_C_NO_CREDENTIAL,
914+ &name, &lifetime, NULL, NULL);
915+ if (major == GSS_S_CREDENTIALS_EXPIRED)
916+ return 0;
917+ else if (GSS_ERROR(major))
918+ return 0;
919+
920+ major = gss_compare_name(&minor, saved_name, name, &equal);
921+ gss_release_name(&minor, &name);
922+ if (GSS_ERROR(major))
923+ return 0;
924+
925+ if (equal && (saved_lifetime < lifetime + now - 10))
926+ return 1;
927+
928+ return 0;
929+}
930+
931 #endif /* GSSAPI */
932diff --git a/gss-serv-krb5.c b/gss-serv-krb5.c
933index a151bc1e4..ef9beb67c 100644
934--- a/gss-serv-krb5.c
935+++ b/gss-serv-krb5.c
936@@ -1,7 +1,7 @@
937 /* $OpenBSD: gss-serv-krb5.c,v 1.9 2018/07/09 21:37:55 markus Exp $ */
938
939 /*
940- * Copyright (c) 2001-2003 Simon Wilkinson. All rights reserved.
941+ * Copyright (c) 2001-2007 Simon Wilkinson. All rights reserved.
942 *
943 * Redistribution and use in source and binary forms, with or without
944 * modification, are permitted provided that the following conditions
945@@ -120,8 +120,8 @@ ssh_gssapi_krb5_storecreds(ssh_gssapi_client *client)
946 krb5_error_code problem;
947 krb5_principal princ;
948 OM_uint32 maj_status, min_status;
949- int len;
950 const char *errmsg;
951+ const char *new_ccname;
952
953 if (client->creds == NULL) {
954 debug("No credentials stored");
955@@ -180,11 +180,16 @@ ssh_gssapi_krb5_storecreds(ssh_gssapi_client *client)
956 return;
957 }
958
959- client->store.filename = xstrdup(krb5_cc_get_name(krb_context, ccache));
960+ new_ccname = krb5_cc_get_name(krb_context, ccache);
961+
962 client->store.envvar = "KRB5CCNAME";
963- len = strlen(client->store.filename) + 6;
964- client->store.envval = xmalloc(len);
965- snprintf(client->store.envval, len, "FILE:%s", client->store.filename);
966+#ifdef USE_CCAPI
967+ xasprintf(&client->store.envval, "API:%s", new_ccname);
968+ client->store.filename = NULL;
969+#else
970+ xasprintf(&client->store.envval, "FILE:%s", new_ccname);
971+ client->store.filename = xstrdup(new_ccname);
972+#endif
973
974 #ifdef USE_PAM
975 if (options.use_pam)
976@@ -196,6 +201,71 @@ ssh_gssapi_krb5_storecreds(ssh_gssapi_client *client)
977 return;
978 }
979
980+int
981+ssh_gssapi_krb5_updatecreds(ssh_gssapi_ccache *store,
982+ ssh_gssapi_client *client)
983+{
984+ krb5_ccache ccache = NULL;
985+ krb5_principal principal = NULL;
986+ char *name = NULL;
987+ krb5_error_code problem;
988+ OM_uint32 maj_status, min_status;
989+
990+ if ((problem = krb5_cc_resolve(krb_context, store->envval, &ccache))) {
991+ logit("krb5_cc_resolve(): %.100s",
992+ krb5_get_err_text(krb_context, problem));
993+ return 0;
994+ }
995+
996+ /* Find out who the principal in this cache is */
997+ if ((problem = krb5_cc_get_principal(krb_context, ccache,
998+ &principal))) {
999+ logit("krb5_cc_get_principal(): %.100s",
1000+ krb5_get_err_text(krb_context, problem));
1001+ krb5_cc_close(krb_context, ccache);
1002+ return 0;
1003+ }
1004+
1005+ if ((problem = krb5_unparse_name(krb_context, principal, &name))) {
1006+ logit("krb5_unparse_name(): %.100s",
1007+ krb5_get_err_text(krb_context, problem));
1008+ krb5_free_principal(krb_context, principal);
1009+ krb5_cc_close(krb_context, ccache);
1010+ return 0;
1011+ }
1012+
1013+
1014+ if (strcmp(name,client->exportedname.value)!=0) {
1015+ debug("Name in local credentials cache differs. Not storing");
1016+ krb5_free_principal(krb_context, principal);
1017+ krb5_cc_close(krb_context, ccache);
1018+ krb5_free_unparsed_name(krb_context, name);
1019+ return 0;
1020+ }
1021+ krb5_free_unparsed_name(krb_context, name);
1022+
1023+ /* Name matches, so lets get on with it! */
1024+
1025+ if ((problem = krb5_cc_initialize(krb_context, ccache, principal))) {
1026+ logit("krb5_cc_initialize(): %.100s",
1027+ krb5_get_err_text(krb_context, problem));
1028+ krb5_free_principal(krb_context, principal);
1029+ krb5_cc_close(krb_context, ccache);
1030+ return 0;
1031+ }
1032+
1033+ krb5_free_principal(krb_context, principal);
1034+
1035+ if ((maj_status = gss_krb5_copy_ccache(&min_status, client->creds,
1036+ ccache))) {
1037+ logit("gss_krb5_copy_ccache() failed. Sorry!");
1038+ krb5_cc_close(krb_context, ccache);
1039+ return 0;
1040+ }
1041+
1042+ return 1;
1043+}
1044+
1045 ssh_gssapi_mech gssapi_kerberos_mech = {
1046 "toWM5Slw5Ew8Mqkay+al2g==",
1047 "Kerberos",
1048@@ -203,7 +273,8 @@ ssh_gssapi_mech gssapi_kerberos_mech = {
1049 NULL,
1050 &ssh_gssapi_krb5_userok,
1051 NULL,
1052- &ssh_gssapi_krb5_storecreds
1053+ &ssh_gssapi_krb5_storecreds,
1054+ &ssh_gssapi_krb5_updatecreds
1055 };
1056
1057 #endif /* KRB5 */
1058diff --git a/gss-serv.c b/gss-serv.c
1059index b5d4bb2d1..55f4d4bda 100644
1060--- a/gss-serv.c
1061+++ b/gss-serv.c
1062@@ -1,7 +1,7 @@
1063 /* $OpenBSD: gss-serv.c,v 1.32 2020/03/13 03:17:07 djm Exp $ */
1064
1065 /*
1066- * Copyright (c) 2001-2003 Simon Wilkinson. All rights reserved.
1067+ * Copyright (c) 2001-2009 Simon Wilkinson. All rights reserved.
1068 *
1069 * Redistribution and use in source and binary forms, with or without
1070 * modification, are permitted provided that the following conditions
1071@@ -44,17 +44,19 @@
1072 #include "session.h"
1073 #include "misc.h"
1074 #include "servconf.h"
1075+#include "uidswap.h"
1076
1077 #include "ssh-gss.h"
1078+#include "monitor_wrap.h"
1079
1080 extern ServerOptions options;
1081
1082 static ssh_gssapi_client gssapi_client =
1083- { GSS_C_EMPTY_BUFFER, GSS_C_EMPTY_BUFFER,
1084- GSS_C_NO_CREDENTIAL, NULL, {NULL, NULL, NULL, NULL}};
1085+ { GSS_C_EMPTY_BUFFER, GSS_C_EMPTY_BUFFER, GSS_C_NO_CREDENTIAL,
1086+ GSS_C_NO_NAME, NULL, {NULL, NULL, NULL, NULL, NULL}, 0, 0};
1087
1088 ssh_gssapi_mech gssapi_null_mech =
1089- { NULL, NULL, {0, NULL}, NULL, NULL, NULL, NULL};
1090+ { NULL, NULL, {0, NULL}, NULL, NULL, NULL, NULL, NULL};
1091
1092 #ifdef KRB5
1093 extern ssh_gssapi_mech gssapi_kerberos_mech;
1094@@ -140,6 +142,29 @@ ssh_gssapi_server_ctx(Gssctxt **ctx, gss_OID oid)
1095 return (ssh_gssapi_acquire_cred(*ctx));
1096 }
1097
1098+/* Unprivileged */
1099+char *
1100+ssh_gssapi_server_mechanisms(void) {
1101+ if (supported_oids == NULL)
1102+ ssh_gssapi_prepare_supported_oids();
1103+ return (ssh_gssapi_kex_mechs(supported_oids,
1104+ &ssh_gssapi_server_check_mech, NULL, NULL,
1105+ options.gss_kex_algorithms));
1106+}
1107+
1108+/* Unprivileged */
1109+int
1110+ssh_gssapi_server_check_mech(Gssctxt **dum, gss_OID oid, const char *data,
1111+ const char *dummy) {
1112+ Gssctxt *ctx = NULL;
1113+ int res;
1114+
1115+ res = !GSS_ERROR(PRIVSEP(ssh_gssapi_server_ctx(&ctx, oid)));
1116+ ssh_gssapi_delete_ctx(&ctx);
1117+
1118+ return (res);
1119+}
1120+
1121 /* Unprivileged */
1122 void
1123 ssh_gssapi_supported_oids(gss_OID_set *oidset)
1124@@ -150,7 +175,9 @@ ssh_gssapi_supported_oids(gss_OID_set *oidset)
1125 gss_OID_set supported;
1126
1127 gss_create_empty_oid_set(&min_status, oidset);
1128- gss_indicate_mechs(&min_status, &supported);
1129+
1130+ if (GSS_ERROR(gss_indicate_mechs(&min_status, &supported)))
1131+ return;
1132
1133 while (supported_mechs[i]->name != NULL) {
1134 if (GSS_ERROR(gss_test_oid_set_member(&min_status,
1135@@ -276,8 +303,48 @@ OM_uint32
1136 ssh_gssapi_getclient(Gssctxt *ctx, ssh_gssapi_client *client)
1137 {
1138 int i = 0;
1139+ int equal = 0;
1140+ gss_name_t new_name = GSS_C_NO_NAME;
1141+ gss_buffer_desc ename = GSS_C_EMPTY_BUFFER;
1142+
1143+ if (options.gss_store_rekey && client->used && ctx->client_creds) {
1144+ if (client->mech->oid.length != ctx->oid->length ||
1145+ (memcmp(client->mech->oid.elements,
1146+ ctx->oid->elements, ctx->oid->length) !=0)) {
1147+ debug("Rekeyed credentials have different mechanism");
1148+ return GSS_S_COMPLETE;
1149+ }
1150+
1151+ if ((ctx->major = gss_inquire_cred_by_mech(&ctx->minor,
1152+ ctx->client_creds, ctx->oid, &new_name,
1153+ NULL, NULL, NULL))) {
1154+ ssh_gssapi_error(ctx);
1155+ return (ctx->major);
1156+ }
1157+
1158+ ctx->major = gss_compare_name(&ctx->minor, client->name,
1159+ new_name, &equal);
1160+
1161+ if (GSS_ERROR(ctx->major)) {
1162+ ssh_gssapi_error(ctx);
1163+ return (ctx->major);
1164+ }
1165+
1166+ if (!equal) {
1167+ debug("Rekeyed credentials have different name");
1168+ return GSS_S_COMPLETE;
1169+ }
1170
1171- gss_buffer_desc ename;
1172+ debug("Marking rekeyed credentials for export");
1173+
1174+ gss_release_name(&ctx->minor, &client->name);
1175+ gss_release_cred(&ctx->minor, &client->creds);
1176+ client->name = new_name;
1177+ client->creds = ctx->client_creds;
1178+ ctx->client_creds = GSS_C_NO_CREDENTIAL;
1179+ client->updated = 1;
1180+ return GSS_S_COMPLETE;
1181+ }
1182
1183 client->mech = NULL;
1184
1185@@ -292,6 +359,13 @@ ssh_gssapi_getclient(Gssctxt *ctx, ssh_gssapi_client *client)
1186 if (client->mech == NULL)
1187 return GSS_S_FAILURE;
1188
1189+ if (ctx->client_creds &&
1190+ (ctx->major = gss_inquire_cred_by_mech(&ctx->minor,
1191+ ctx->client_creds, ctx->oid, &client->name, NULL, NULL, NULL))) {
1192+ ssh_gssapi_error(ctx);
1193+ return (ctx->major);
1194+ }
1195+
1196 if ((ctx->major = gss_display_name(&ctx->minor, ctx->client,
1197 &client->displayname, NULL))) {
1198 ssh_gssapi_error(ctx);
1199@@ -309,6 +383,8 @@ ssh_gssapi_getclient(Gssctxt *ctx, ssh_gssapi_client *client)
1200 return (ctx->major);
1201 }
1202
1203+ gss_release_buffer(&ctx->minor, &ename);
1204+
1205 /* We can't copy this structure, so we just move the pointer to it */
1206 client->creds = ctx->client_creds;
1207 ctx->client_creds = GSS_C_NO_CREDENTIAL;
1208@@ -356,19 +432,23 @@ ssh_gssapi_do_child(char ***envp, u_int *envsizep)
1209
1210 /* Privileged */
1211 int
1212-ssh_gssapi_userok(char *user)
1213+ssh_gssapi_userok(char *user, struct passwd *pw, int kex)
1214 {
1215 OM_uint32 lmin;
1216
1217+ (void) kex; /* used in privilege separation */
1218+
1219 if (gssapi_client.exportedname.length == 0 ||
1220 gssapi_client.exportedname.value == NULL) {
1221 debug("No suitable client data");
1222 return 0;
1223 }
1224 if (gssapi_client.mech && gssapi_client.mech->userok)
1225- if ((*gssapi_client.mech->userok)(&gssapi_client, user))
1226+ if ((*gssapi_client.mech->userok)(&gssapi_client, user)) {
1227+ gssapi_client.used = 1;
1228+ gssapi_client.store.owner = pw;
1229 return 1;
1230- else {
1231+ } else {
1232 /* Destroy delegated credentials if userok fails */
1233 gss_release_buffer(&lmin, &gssapi_client.displayname);
1234 gss_release_buffer(&lmin, &gssapi_client.exportedname);
1235@@ -382,14 +462,90 @@ ssh_gssapi_userok(char *user)
1236 return (0);
1237 }
1238
1239-/* Privileged */
1240-OM_uint32
1241-ssh_gssapi_checkmic(Gssctxt *ctx, gss_buffer_t gssbuf, gss_buffer_t gssmic)
1242+/* These bits are only used for rekeying. The unpriviledged child is running
1243+ * as the user, the monitor is root.
1244+ *
1245+ * In the child, we want to :
1246+ * *) Ask the monitor to store our credentials into the store we specify
1247+ * *) If it succeeds, maybe do a PAM update
1248+ */
1249+
1250+/* Stuff for PAM */
1251+
1252+#ifdef USE_PAM
1253+static int ssh_gssapi_simple_conv(int n, const struct pam_message **msg,
1254+ struct pam_response **resp, void *data)
1255 {
1256- ctx->major = gss_verify_mic(&ctx->minor, ctx->context,
1257- gssbuf, gssmic, NULL);
1258+ return (PAM_CONV_ERR);
1259+}
1260+#endif
1261
1262- return (ctx->major);
1263+void
1264+ssh_gssapi_rekey_creds(void) {
1265+ int ok;
1266+#ifdef USE_PAM
1267+ int ret;
1268+ pam_handle_t *pamh = NULL;
1269+ struct pam_conv pamconv = {ssh_gssapi_simple_conv, NULL};
1270+ char *envstr;
1271+#endif
1272+
1273+ if (gssapi_client.store.filename == NULL &&
1274+ gssapi_client.store.envval == NULL &&
1275+ gssapi_client.store.envvar == NULL)
1276+ return;
1277+
1278+ ok = PRIVSEP(ssh_gssapi_update_creds(&gssapi_client.store));
1279+
1280+ if (!ok)
1281+ return;
1282+
1283+ debug("Rekeyed credentials stored successfully");
1284+
1285+ /* Actually managing to play with the ssh pam stack from here will
1286+ * be next to impossible. In any case, we may want different options
1287+ * for rekeying. So, use our own :)
1288+ */
1289+#ifdef USE_PAM
1290+ if (!use_privsep) {
1291+ debug("Not even going to try and do PAM with privsep disabled");
1292+ return;
1293+ }
1294+
1295+ ret = pam_start("sshd-rekey", gssapi_client.store.owner->pw_name,
1296+ &pamconv, &pamh);
1297+ if (ret)
1298+ return;
1299+
1300+ xasprintf(&envstr, "%s=%s", gssapi_client.store.envvar,
1301+ gssapi_client.store.envval);
1302+
1303+ ret = pam_putenv(pamh, envstr);
1304+ if (!ret)
1305+ pam_setcred(pamh, PAM_REINITIALIZE_CRED);
1306+ pam_end(pamh, PAM_SUCCESS);
1307+#endif
1308+}
1309+
1310+int
1311+ssh_gssapi_update_creds(ssh_gssapi_ccache *store) {
1312+ int ok = 0;
1313+
1314+ /* Check we've got credentials to store */
1315+ if (!gssapi_client.updated)
1316+ return 0;
1317+
1318+ gssapi_client.updated = 0;
1319+
1320+ temporarily_use_uid(gssapi_client.store.owner);
1321+ if (gssapi_client.mech && gssapi_client.mech->updatecreds)
1322+ ok = (*gssapi_client.mech->updatecreds)(store, &gssapi_client);
1323+ else
1324+ debug("No update function for this mechanism");
1325+
1326+ restore_uid();
1327+
1328+ return ok;
1329 }
1330
1331 /* Privileged */
1332diff --git a/kex.c b/kex.c
1333index aecb9394d..751cfc710 100644
1334--- a/kex.c
1335+++ b/kex.c
1336@@ -57,11 +57,16 @@
1337 #include "misc.h"
1338 #include "dispatch.h"
1339 #include "monitor.h"
1340+#include "xmalloc.h"
1341
1342 #include "ssherr.h"
1343 #include "sshbuf.h"
1344 #include "digest.h"
1345
1346+#ifdef GSSAPI
1347+#include "ssh-gss.h"
1348+#endif
1349+
1350 /* prototype */
1351 static int kex_choose_conf(struct ssh *);
1352 static int kex_input_newkeys(int, u_int32_t, struct ssh *);
1353@@ -115,15 +120,28 @@ static const struct kexalg kexalgs[] = {
1354 #endif /* HAVE_EVP_SHA256 || !WITH_OPENSSL */
1355 { NULL, 0, -1, -1},
1356 };
1357+static const struct kexalg gss_kexalgs[] = {
1358+#ifdef GSSAPI
1359+ { KEX_GSS_GEX_SHA1_ID, KEX_GSS_GEX_SHA1, 0, SSH_DIGEST_SHA1 },
1360+ { KEX_GSS_GRP1_SHA1_ID, KEX_GSS_GRP1_SHA1, 0, SSH_DIGEST_SHA1 },
1361+ { KEX_GSS_GRP14_SHA1_ID, KEX_GSS_GRP14_SHA1, 0, SSH_DIGEST_SHA1 },
1362+ { KEX_GSS_GRP14_SHA256_ID, KEX_GSS_GRP14_SHA256, 0, SSH_DIGEST_SHA256 },
1363+ { KEX_GSS_GRP16_SHA512_ID, KEX_GSS_GRP16_SHA512, 0, SSH_DIGEST_SHA512 },
1364+ { KEX_GSS_NISTP256_SHA256_ID, KEX_GSS_NISTP256_SHA256,
1365+ NID_X9_62_prime256v1, SSH_DIGEST_SHA256 },
1366+ { KEX_GSS_C25519_SHA256_ID, KEX_GSS_C25519_SHA256, 0, SSH_DIGEST_SHA256 },
1367+#endif
1368+ { NULL, 0, -1, -1},
1369+};
1370
1371-char *
1372-kex_alg_list(char sep)
1373+static char *
1374+kex_alg_list_internal(char sep, const struct kexalg *algs)
1375 {
1376 char *ret = NULL, *tmp;
1377 size_t nlen, rlen = 0;
1378 const struct kexalg *k;
1379
1380- for (k = kexalgs; k->name != NULL; k++) {
1381+ for (k = algs; k->name != NULL; k++) {
1382 if (ret != NULL)
1383 ret[rlen++] = sep;
1384 nlen = strlen(k->name);
1385@@ -138,6 +156,18 @@ kex_alg_list(char sep)
1386 return ret;
1387 }
1388
1389+char *
1390+kex_alg_list(char sep)
1391+{
1392+ return kex_alg_list_internal(sep, kexalgs);
1393+}
1394+
1395+char *
1396+kex_gss_alg_list(char sep)
1397+{
1398+ return kex_alg_list_internal(sep, gss_kexalgs);
1399+}
1400+
1401 static const struct kexalg *
1402 kex_alg_by_name(const char *name)
1403 {
1404@@ -147,6 +177,10 @@ kex_alg_by_name(const char *name)
1405 if (strcmp(k->name, name) == 0)
1406 return k;
1407 }
1408+ for (k = gss_kexalgs; k->name != NULL; k++) {
1409+ if (strncmp(k->name, name, strlen(k->name)) == 0)
1410+ return k;
1411+ }
1412 return NULL;
1413 }
1414
1415@@ -315,6 +349,29 @@ kex_assemble_names(char **listp, const char *def, const char *all)
1416 return r;
1417 }
1418
1419+/* Validate GSS KEX method name list */
1420+int
1421+kex_gss_names_valid(const char *names)
1422+{
1423+ char *s, *cp, *p;
1424+
1425+ if (names == NULL || *names == '\0')
1426+ return 0;
1427+ s = cp = xstrdup(names);
1428+ for ((p = strsep(&cp, ",")); p && *p != '\0';
1429+ (p = strsep(&cp, ","))) {
1430+ if (strncmp(p, "gss-", 4) != 0
1431+ || kex_alg_by_name(p) == NULL) {
1432+ error("Unsupported KEX algorithm \"%.100s\"", p);
1433+ free(s);
1434+ return 0;
1435+ }
1436+ }
1437+ debug3("gss kex names ok: [%s]", names);
1438+ free(s);
1439+ return 1;
1440+}
1441+
1442 /* put algorithm proposal into buffer */
1443 int
1444 kex_prop2buf(struct sshbuf *b, char *proposal[PROPOSAL_MAX])
1445@@ -697,6 +754,9 @@ kex_free(struct kex *kex)
1446 sshbuf_free(kex->server_version);
1447 sshbuf_free(kex->client_pub);
1448 free(kex->session_id);
1449+#ifdef GSSAPI
1450+ free(kex->gss_host);
1451+#endif /* GSSAPI */
1452 free(kex->failed_choice);
1453 free(kex->hostkey_alg);
1454 free(kex->name);
1455diff --git a/kex.h b/kex.h
1456index a5ae6ac05..fe7141414 100644
1457--- a/kex.h
1458+++ b/kex.h
1459@@ -102,6 +102,15 @@ enum kex_exchange {
1460 KEX_ECDH_SHA2,
1461 KEX_C25519_SHA256,
1462 KEX_KEM_SNTRUP4591761X25519_SHA512,
1463+#ifdef GSSAPI
1464+ KEX_GSS_GRP1_SHA1,
1465+ KEX_GSS_GRP14_SHA1,
1466+ KEX_GSS_GRP14_SHA256,
1467+ KEX_GSS_GRP16_SHA512,
1468+ KEX_GSS_GEX_SHA1,
1469+ KEX_GSS_NISTP256_SHA256,
1470+ KEX_GSS_C25519_SHA256,
1471+#endif
1472 KEX_MAX
1473 };
1474
1475@@ -153,6 +162,12 @@ struct kex {
1476 u_int flags;
1477 int hash_alg;
1478 int ec_nid;
1479+#ifdef GSSAPI
1480+ int gss_deleg_creds;
1481+ int gss_trust_dns;
1482+ char *gss_host;
1483+ char *gss_client;
1484+#endif
1485 char *failed_choice;
1486 int (*verify_host_key)(struct sshkey *, struct ssh *);
1487 struct sshkey *(*load_host_public_key)(int, int, struct ssh *);
1488@@ -174,8 +189,10 @@ struct kex {
1489
1490 int kex_names_valid(const char *);
1491 char *kex_alg_list(char);
1492+char *kex_gss_alg_list(char);
1493 char *kex_names_cat(const char *, const char *);
1494 int kex_assemble_names(char **, const char *, const char *);
1495+int kex_gss_names_valid(const char *);
1496
1497 int kex_exchange_identification(struct ssh *, int, const char *);
1498
1499@@ -202,6 +219,12 @@ int kexgex_client(struct ssh *);
1500 int kexgex_server(struct ssh *);
1501 int kex_gen_client(struct ssh *);
1502 int kex_gen_server(struct ssh *);
1503+#if defined(GSSAPI) && defined(WITH_OPENSSL)
1504+int kexgssgex_client(struct ssh *);
1505+int kexgssgex_server(struct ssh *);
1506+int kexgss_client(struct ssh *);
1507+int kexgss_server(struct ssh *);
1508+#endif
1509
1510 int kex_dh_keypair(struct kex *);
1511 int kex_dh_enc(struct kex *, const struct sshbuf *, struct sshbuf **,
1512@@ -234,6 +257,12 @@ int kexgex_hash(int, const struct sshbuf *, const struct sshbuf *,
1513 const BIGNUM *, const u_char *, size_t,
1514 u_char *, size_t *);
1515
1516+int kex_gen_hash(int hash_alg, const struct sshbuf *client_version,
1517+ const struct sshbuf *server_version, const struct sshbuf *client_kexinit,
1518+ const struct sshbuf *server_kexinit, const struct sshbuf *server_host_key_blob,
1519+ const struct sshbuf *client_pub, const struct sshbuf *server_pub,
1520+ const struct sshbuf *shared_secret, u_char *hash, size_t *hashlen);
1521+
1522 void kexc25519_keygen(u_char key[CURVE25519_SIZE], u_char pub[CURVE25519_SIZE])
1523 __attribute__((__bounded__(__minbytes__, 1, CURVE25519_SIZE)))
1524 __attribute__((__bounded__(__minbytes__, 2, CURVE25519_SIZE)));
1525diff --git a/kexdh.c b/kexdh.c
1526index 6e0159f9f..d024a8b9a 100644
1527--- a/kexdh.c
1528+++ b/kexdh.c
1529@@ -49,13 +49,23 @@ kex_dh_keygen(struct kex *kex)
1530 {
1531 switch (kex->kex_type) {
1532 case KEX_DH_GRP1_SHA1:
1533+#ifdef GSSAPI
1534+ case KEX_GSS_GRP1_SHA1:
1535+#endif
1536 kex->dh = dh_new_group1();
1537 break;
1538 case KEX_DH_GRP14_SHA1:
1539 case KEX_DH_GRP14_SHA256:
1540+#ifdef GSSAPI
1541+ case KEX_GSS_GRP14_SHA1:
1542+ case KEX_GSS_GRP14_SHA256:
1543+#endif
1544 kex->dh = dh_new_group14();
1545 break;
1546 case KEX_DH_GRP16_SHA512:
1547+#ifdef GSSAPI
1548+ case KEX_GSS_GRP16_SHA512:
1549+#endif
1550 kex->dh = dh_new_group16();
1551 break;
1552 case KEX_DH_GRP18_SHA512:
1553diff --git a/kexgen.c b/kexgen.c
1554index 69348b964..c0e8c2f44 100644
1555--- a/kexgen.c
1556+++ b/kexgen.c
1557@@ -44,7 +44,7 @@
1558 static int input_kex_gen_init(int, u_int32_t, struct ssh *);
1559 static int input_kex_gen_reply(int type, u_int32_t seq, struct ssh *ssh);
1560
1561-static int
1562+int
1563 kex_gen_hash(
1564 int hash_alg,
1565 const struct sshbuf *client_version,
1566diff --git a/kexgssc.c b/kexgssc.c
1567new file mode 100644
1568index 000000000..f6e1405eb
1569--- /dev/null
1570+++ b/kexgssc.c
1571@@ -0,0 +1,606 @@
1572+/*
1573+ * Copyright (c) 2001-2009 Simon Wilkinson. All rights reserved.
1574+ *
1575+ * Redistribution and use in source and binary forms, with or without
1576+ * modification, are permitted provided that the following conditions
1577+ * are met:
1578+ * 1. Redistributions of source code must retain the above copyright
1579+ * notice, this list of conditions and the following disclaimer.
1580+ * 2. Redistributions in binary form must reproduce the above copyright
1581+ * notice, this list of conditions and the following disclaimer in the
1582+ * documentation and/or other materials provided with the distribution.
1583+ *
1584+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR `AS IS'' AND ANY EXPRESS OR
1585+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
1586+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
1587+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
1588+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
1589+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
1590+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
1591+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1592+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
1593+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1594+ */
1595+
1596+#include "includes.h"
1597+
1598+#if defined(GSSAPI) && defined(WITH_OPENSSL)
1599+
1600+#include "includes.h"
1601+
1602+#include <openssl/crypto.h>
1603+#include <openssl/bn.h>
1604+
1605+#include <string.h>
1606+
1607+#include "xmalloc.h"
1608+#include "sshbuf.h"
1609+#include "ssh2.h"
1610+#include "sshkey.h"
1611+#include "cipher.h"
1612+#include "kex.h"
1613+#include "log.h"
1614+#include "packet.h"
1615+#include "dh.h"
1616+#include "digest.h"
1617+#include "ssherr.h"
1618+
1619+#include "ssh-gss.h"
1620+
1621+int
1622+kexgss_client(struct ssh *ssh)
1623+{
1624+ struct kex *kex = ssh->kex;
1625+ gss_buffer_desc send_tok = GSS_C_EMPTY_BUFFER,
1626+ recv_tok = GSS_C_EMPTY_BUFFER,
1627+ gssbuf, msg_tok = GSS_C_EMPTY_BUFFER, *token_ptr;
1628+ Gssctxt *ctxt;
1629+ OM_uint32 maj_status, min_status, ret_flags;
1630+ struct sshbuf *server_blob = NULL;
1631+ struct sshbuf *shared_secret = NULL;
1632+ struct sshbuf *server_host_key_blob = NULL;
1633+ struct sshbuf *empty = NULL;
1634+ u_char *msg;
1635+ int type = 0;
1636+ int first = 1;
1637+ u_char hash[SSH_DIGEST_MAX_LENGTH];
1638+ size_t hashlen;
1639+ u_char c;
1640+ int r;
1641+
1642+ /* Initialise our GSSAPI world */
1643+ ssh_gssapi_build_ctx(&ctxt);
1644+ if (ssh_gssapi_id_kex(ctxt, kex->name, kex->kex_type)
1645+ == GSS_C_NO_OID)
1646+ fatal("Couldn't identify host exchange");
1647+
1648+ if (ssh_gssapi_import_name(ctxt, kex->gss_host))
1649+ fatal("Couldn't import hostname");
1650+
1651+ if (kex->gss_client &&
1652+ ssh_gssapi_client_identity(ctxt, kex->gss_client))
1653+ fatal("Couldn't acquire client credentials");
1654+
1655+ /* Step 1 */
1656+ switch (kex->kex_type) {
1657+ case KEX_GSS_GRP1_SHA1:
1658+ case KEX_GSS_GRP14_SHA1:
1659+ case KEX_GSS_GRP14_SHA256:
1660+ case KEX_GSS_GRP16_SHA512:
1661+ r = kex_dh_keypair(kex);
1662+ break;
1663+ case KEX_GSS_NISTP256_SHA256:
1664+ r = kex_ecdh_keypair(kex);
1665+ break;
1666+ case KEX_GSS_C25519_SHA256:
1667+ r = kex_c25519_keypair(kex);
1668+ break;
1669+ default:
1670+ fatal("%s: Unexpected KEX type %d", __func__, kex->kex_type);
1671+ }
1672+ if (r != 0)
1673+ return r;
1674+
1675+ token_ptr = GSS_C_NO_BUFFER;
1676+
1677+ do {
1678+ debug("Calling gss_init_sec_context");
1679+
1680+ maj_status = ssh_gssapi_init_ctx(ctxt,
1681+ kex->gss_deleg_creds, token_ptr, &send_tok,
1682+ &ret_flags);
1683+
1684+ if (GSS_ERROR(maj_status)) {
1685+ /* XXX Useles code: Missing send? */
1686+ if (send_tok.length != 0) {
1687+ if ((r = sshpkt_start(ssh,
1688+ SSH2_MSG_KEXGSS_CONTINUE)) != 0 ||
1689+ (r = sshpkt_put_string(ssh, send_tok.value,
1690+ send_tok.length)) != 0)
1691+ fatal("sshpkt failed: %s", ssh_err(r));
1692+ }
1693+ fatal("gss_init_context failed");
1694+ }
1695+
1696+ /* If we've got an old receive buffer get rid of it */
1697+ if (token_ptr != GSS_C_NO_BUFFER)
1698+ gss_release_buffer(&min_status, &recv_tok);
1699+
1700+ if (maj_status == GSS_S_COMPLETE) {
1701+ /* If mutual state flag is not true, kex fails */
1702+ if (!(ret_flags & GSS_C_MUTUAL_FLAG))
1703+ fatal("Mutual authentication failed");
1704+
1705+ /* If integ avail flag is not true kex fails */
1706+ if (!(ret_flags & GSS_C_INTEG_FLAG))
1707+ fatal("Integrity check failed");
1708+ }
1709+
1710+ /*
1711+ * If we have data to send, then the last message that we
1712+ * received cannot have been a 'complete'.
1713+ */
1714+ if (send_tok.length != 0) {
1715+ if (first) {
1716+ if ((r = sshpkt_start(ssh, SSH2_MSG_KEXGSS_INIT)) != 0 ||
1717+ (r = sshpkt_put_string(ssh, send_tok.value,
1718+ send_tok.length)) != 0 ||
1719+ (r = sshpkt_put_stringb(ssh, kex->client_pub)) != 0)
1720+ fatal("failed to construct packet: %s", ssh_err(r));
1721+ first = 0;
1722+ } else {
1723+ if ((r = sshpkt_start(ssh, SSH2_MSG_KEXGSS_CONTINUE)) != 0 ||
1724+ (r = sshpkt_put_string(ssh, send_tok.value,
1725+ send_tok.length)) != 0)
1726+ fatal("failed to construct packet: %s", ssh_err(r));
1727+ }
1728+ if ((r = sshpkt_send(ssh)) != 0)
1729+ fatal("failed to send packet: %s", ssh_err(r));
1730+ gss_release_buffer(&min_status, &send_tok);
1731+
1732+ /* If we've sent them data, they should reply */
1733+ do {
1734+ type = ssh_packet_read(ssh);
1735+ if (type == SSH2_MSG_KEXGSS_HOSTKEY) {
1736+ debug("Received KEXGSS_HOSTKEY");
1737+ if (server_host_key_blob)
1738+ fatal("Server host key received more than once");
1739+ if ((r = sshpkt_getb_froms(ssh, &server_host_key_blob)) != 0)
1740+ fatal("Failed to read server host key: %s", ssh_err(r));
1741+ }
1742+ } while (type == SSH2_MSG_KEXGSS_HOSTKEY);
1743+
1744+ switch (type) {
1745+ case SSH2_MSG_KEXGSS_CONTINUE:
1746+ debug("Received GSSAPI_CONTINUE");
1747+ if (maj_status == GSS_S_COMPLETE)
1748+ fatal("GSSAPI Continue received from server when complete");
1749+ if ((r = ssh_gssapi_sshpkt_get_buffer_desc(ssh,
1750+ &recv_tok)) != 0 ||
1751+ (r = sshpkt_get_end(ssh)) != 0)
1752+ fatal("Failed to read token: %s", ssh_err(r));
1753+ break;
1754+ case SSH2_MSG_KEXGSS_COMPLETE:
1755+ debug("Received GSSAPI_COMPLETE");
1756+ if (msg_tok.value != NULL)
1757+ fatal("Received GSSAPI_COMPLETE twice?");
1758+ if ((r = sshpkt_getb_froms(ssh, &server_blob)) != 0 ||
1759+ (r = ssh_gssapi_sshpkt_get_buffer_desc(ssh,
1760+ &msg_tok)) != 0)
1761+ fatal("Failed to read message: %s", ssh_err(r));
1762+
1763+ /* Is there a token included? */
1764+ if ((r = sshpkt_get_u8(ssh, &c)) != 0)
1765+ fatal("sshpkt failed: %s", ssh_err(r));
1766+ if (c) {
1767+ if ((r = ssh_gssapi_sshpkt_get_buffer_desc(
1768+ ssh, &recv_tok)) != 0)
1769+ fatal("Failed to read token: %s", ssh_err(r));
1770+ /* If we're already complete - protocol error */
1771+ if (maj_status == GSS_S_COMPLETE)
1772+ sshpkt_disconnect(ssh, "Protocol error: received token when complete");
1773+ } else {
1774+ /* No token included */
1775+ if (maj_status != GSS_S_COMPLETE)
1776+ sshpkt_disconnect(ssh, "Protocol error: did not receive final token");
1777+ }
1778+ if ((r = sshpkt_get_end(ssh)) != 0) {
1779+ fatal("Expecting end of packet.");
1780+ }
1781+ break;
1782+ case SSH2_MSG_KEXGSS_ERROR:
1783+ debug("Received Error");
1784+ if ((r = sshpkt_get_u32(ssh, &maj_status)) != 0 ||
1785+ (r = sshpkt_get_u32(ssh, &min_status)) != 0 ||
1786+ (r = sshpkt_get_string(ssh, &msg, NULL)) != 0 ||
1787+ (r = sshpkt_get_string(ssh, NULL, NULL)) != 0 || /* lang tag */
1788+ (r = sshpkt_get_end(ssh)) != 0)
1789+ fatal("sshpkt_get failed: %s", ssh_err(r));
1790+ fatal("GSSAPI Error: \n%.400s", msg);
1791+ default:
1792+ sshpkt_disconnect(ssh, "Protocol error: didn't expect packet type %d",
1793+ type);
1794+ }
1795+ token_ptr = &recv_tok;
1796+ } else {
1797+ /* No data, and not complete */
1798+ if (maj_status != GSS_S_COMPLETE)
1799+ fatal("Not complete, and no token output");
1800+ }
1801+ } while (maj_status & GSS_S_CONTINUE_NEEDED);
1802+
1803+ /*
1804+ * We _must_ have received a COMPLETE message in reply from the
1805+ * server, which will have set server_blob and msg_tok
1806+ */
1807+
1808+ if (type != SSH2_MSG_KEXGSS_COMPLETE)
1809+ fatal("Didn't receive a SSH2_MSG_KEXGSS_COMPLETE when I expected it");
1810+
1811+ /* compute shared secret */
1812+ switch (kex->kex_type) {
1813+ case KEX_GSS_GRP1_SHA1:
1814+ case KEX_GSS_GRP14_SHA1:
1815+ case KEX_GSS_GRP14_SHA256:
1816+ case KEX_GSS_GRP16_SHA512:
1817+ r = kex_dh_dec(kex, server_blob, &shared_secret);
1818+ break;
1819+ case KEX_GSS_C25519_SHA256:
1820+ if (sshbuf_ptr(server_blob)[sshbuf_len(server_blob)] & 0x80)
1821+ fatal("The received key has MSB of last octet set!");
1822+ r = kex_c25519_dec(kex, server_blob, &shared_secret);
1823+ break;
1824+ case KEX_GSS_NISTP256_SHA256:
1825+ if (sshbuf_len(server_blob) != 65)
1826+ fatal("The received NIST-P256 key did not match"
1827+ "expected length (expected 65, got %zu)", sshbuf_len(server_blob));
1828+
1829+ if (sshbuf_ptr(server_blob)[0] != POINT_CONVERSION_UNCOMPRESSED)
1830+ fatal("The received NIST-P256 key does not have first octet 0x04");
1831+
1832+ r = kex_ecdh_dec(kex, server_blob, &shared_secret);
1833+ break;
1834+ default:
1835+ r = SSH_ERR_INVALID_ARGUMENT;
1836+ break;
1837+ }
1838+ if (r != 0)
1839+ goto out;
1840+
1841+ if ((empty = sshbuf_new()) == NULL) {
1842+ r = SSH_ERR_ALLOC_FAIL;
1843+ goto out;
1844+ }
1845+
1846+ hashlen = sizeof(hash);
1847+ if ((r = kex_gen_hash(
1848+ kex->hash_alg,
1849+ kex->client_version,
1850+ kex->server_version,
1851+ kex->my,
1852+ kex->peer,
1853+ (server_host_key_blob ? server_host_key_blob : empty),
1854+ kex->client_pub,
1855+ server_blob,
1856+ shared_secret,
1857+ hash, &hashlen)) != 0)
1858+ fatal("%s: Unexpected KEX type %d", __func__, kex->kex_type);
1859+
1860+ gssbuf.value = hash;
1861+ gssbuf.length = hashlen;
1862+
1863+ /* Verify that the hash matches the MIC we just got. */
1864+ if (GSS_ERROR(ssh_gssapi_checkmic(ctxt, &gssbuf, &msg_tok)))
1865+ sshpkt_disconnect(ssh, "Hash's MIC didn't verify");
1866+
1867+ gss_release_buffer(&min_status, &msg_tok);
1868+
1869+ if (kex->gss_deleg_creds)
1870+ ssh_gssapi_credentials_updated(ctxt);
1871+
1872+ if (gss_kex_context == NULL)
1873+ gss_kex_context = ctxt;
1874+ else
1875+ ssh_gssapi_delete_ctx(&ctxt);
1876+
1877+ if ((r = kex_derive_keys(ssh, hash, hashlen, shared_secret)) == 0)
1878+ r = kex_send_newkeys(ssh);
1879+
1880+out:
1881+ explicit_bzero(hash, sizeof(hash));
1882+ explicit_bzero(kex->c25519_client_key, sizeof(kex->c25519_client_key));
1883+ sshbuf_free(empty);
1884+ sshbuf_free(server_host_key_blob);
1885+ sshbuf_free(server_blob);
1886+ sshbuf_free(shared_secret);
1887+ sshbuf_free(kex->client_pub);
1888+ kex->client_pub = NULL;
1889+ return r;
1890+}
1891+
1892+int
1893+kexgssgex_client(struct ssh *ssh)
1894+{
1895+ struct kex *kex = ssh->kex;
1896+ gss_buffer_desc send_tok = GSS_C_EMPTY_BUFFER,
1897+ recv_tok = GSS_C_EMPTY_BUFFER, gssbuf,
1898+ msg_tok = GSS_C_EMPTY_BUFFER, *token_ptr;
1899+ Gssctxt *ctxt;
1900+ OM_uint32 maj_status, min_status, ret_flags;
1901+ struct sshbuf *shared_secret = NULL;
1902+ BIGNUM *p = NULL;
1903+ BIGNUM *g = NULL;
1904+ struct sshbuf *buf = NULL;
1905+ struct sshbuf *server_host_key_blob = NULL;
1906+ struct sshbuf *server_blob = NULL;
1907+ BIGNUM *dh_server_pub = NULL;
1908+ u_char *msg;
1909+ int type = 0;
1910+ int first = 1;
1911+ u_char hash[SSH_DIGEST_MAX_LENGTH];
1912+ size_t hashlen;
1913+ const BIGNUM *pub_key, *dh_p, *dh_g;
1914+ int nbits = 0, min = DH_GRP_MIN, max = DH_GRP_MAX;
1915+ struct sshbuf *empty = NULL;
1916+ u_char c;
1917+ int r;
1918+
1919+ /* Initialise our GSSAPI world */
1920+ ssh_gssapi_build_ctx(&ctxt);
1921+ if (ssh_gssapi_id_kex(ctxt, kex->name, kex->kex_type)
1922+ == GSS_C_NO_OID)
1923+ fatal("Couldn't identify host exchange");
1924+
1925+ if (ssh_gssapi_import_name(ctxt, kex->gss_host))
1926+ fatal("Couldn't import hostname");
1927+
1928+ if (kex->gss_client &&
1929+ ssh_gssapi_client_identity(ctxt, kex->gss_client))
1930+ fatal("Couldn't acquire client credentials");
1931+
1932+ debug("Doing group exchange");
1933+ nbits = dh_estimate(kex->dh_need * 8);
1934+
1935+ kex->min = DH_GRP_MIN;
1936+ kex->max = DH_GRP_MAX;
1937+ kex->nbits = nbits;
1938+ if ((r = sshpkt_start(ssh, SSH2_MSG_KEXGSS_GROUPREQ)) != 0 ||
1939+ (r = sshpkt_put_u32(ssh, min)) != 0 ||
1940+ (r = sshpkt_put_u32(ssh, nbits)) != 0 ||
1941+ (r = sshpkt_put_u32(ssh, max)) != 0 ||
1942+ (r = sshpkt_send(ssh)) != 0)
1943+ fatal("Failed to construct a packet: %s", ssh_err(r));
1944+
1945+ if ((r = ssh_packet_read_expect(ssh, SSH2_MSG_KEXGSS_GROUP)) != 0)
1946+ fatal("Error: %s", ssh_err(r));
1947+
1948+ if ((r = sshpkt_get_bignum2(ssh, &p)) != 0 ||
1949+ (r = sshpkt_get_bignum2(ssh, &g)) != 0 ||
1950+ (r = sshpkt_get_end(ssh)) != 0)
1951+ fatal("shpkt_get_bignum2 failed: %s", ssh_err(r));
1952+
1953+ if (BN_num_bits(p) < min || BN_num_bits(p) > max)
1954+ fatal("GSSGRP_GEX group out of range: %d !< %d !< %d",
1955+ min, BN_num_bits(p), max);
1956+
1957+ if ((kex->dh = dh_new_group(g, p)) == NULL)
1958+ fatal("dn_new_group() failed");
1959+ p = g = NULL; /* belong to kex->dh now */
1960+
1961+ if ((r = dh_gen_key(kex->dh, kex->we_need * 8)) != 0)
1962+ goto out;
1963+ DH_get0_key(kex->dh, &pub_key, NULL);
1964+
1965+ token_ptr = GSS_C_NO_BUFFER;
1966+
1967+ do {
1968+ /* Step 2 - call GSS_Init_sec_context() */
1969+ debug("Calling gss_init_sec_context");
1970+
1971+ maj_status = ssh_gssapi_init_ctx(ctxt,
1972+ kex->gss_deleg_creds, token_ptr, &send_tok,
1973+ &ret_flags);
1974+
1975+ if (GSS_ERROR(maj_status)) {
1976+ /* XXX Useles code: Missing send? */
1977+ if (send_tok.length != 0) {
1978+ if ((r = sshpkt_start(ssh,
1979+ SSH2_MSG_KEXGSS_CONTINUE)) != 0 ||
1980+ (r = sshpkt_put_string(ssh, send_tok.value,
1981+ send_tok.length)) != 0)
1982+ fatal("sshpkt failed: %s", ssh_err(r));
1983+ }
1984+ fatal("gss_init_context failed");
1985+ }
1986+
1987+ /* If we've got an old receive buffer get rid of it */
1988+ if (token_ptr != GSS_C_NO_BUFFER)
1989+ gss_release_buffer(&min_status, &recv_tok);
1990+
1991+ if (maj_status == GSS_S_COMPLETE) {
1992+ /* If mutual state flag is not true, kex fails */
1993+ if (!(ret_flags & GSS_C_MUTUAL_FLAG))
1994+ fatal("Mutual authentication failed");
1995+
1996+ /* If integ avail flag is not true kex fails */
1997+ if (!(ret_flags & GSS_C_INTEG_FLAG))
1998+ fatal("Integrity check failed");
1999+ }
2000+
2001+ /*
2002+ * If we have data to send, then the last message that we
2003+ * received cannot have been a 'complete'.
2004+ */
2005+ if (send_tok.length != 0) {
2006+ if (first) {
2007+ if ((r = sshpkt_start(ssh, SSH2_MSG_KEXGSS_INIT)) != 0 ||
2008+ (r = sshpkt_put_string(ssh, send_tok.value,
2009+ send_tok.length)) != 0 ||
2010+ (r = sshpkt_put_bignum2(ssh, pub_key)) != 0)
2011+ fatal("sshpkt failed: %s", ssh_err(r));
2012+ first = 0;
2013+ } else {
2014+ if ((r = sshpkt_start(ssh, SSH2_MSG_KEXGSS_CONTINUE)) != 0 ||
2015+ (r = sshpkt_put_string(ssh,send_tok.value,
2016+ send_tok.length)) != 0)
2017+ fatal("sshpkt failed: %s", ssh_err(r));
2018+ }
2019+ if ((r = sshpkt_send(ssh)) != 0)
2020+ fatal("sshpkt_send failed: %s", ssh_err(r));
2021+ gss_release_buffer(&min_status, &send_tok);
2022+
2023+ /* If we've sent them data, they should reply */
2024+ do {
2025+ type = ssh_packet_read(ssh);
2026+ if (type == SSH2_MSG_KEXGSS_HOSTKEY) {
2027+ debug("Received KEXGSS_HOSTKEY");
2028+ if (server_host_key_blob)
2029+ fatal("Server host key received more than once");
2030+ if ((r = sshpkt_getb_froms(ssh, &server_host_key_blob)) != 0)
2031+ fatal("sshpkt failed: %s", ssh_err(r));
2032+ }
2033+ } while (type == SSH2_MSG_KEXGSS_HOSTKEY);
2034+
2035+ switch (type) {
2036+ case SSH2_MSG_KEXGSS_CONTINUE:
2037+ debug("Received GSSAPI_CONTINUE");
2038+ if (maj_status == GSS_S_COMPLETE)
2039+ fatal("GSSAPI Continue received from server when complete");
2040+ if ((r = ssh_gssapi_sshpkt_get_buffer_desc(ssh,
2041+ &recv_tok)) != 0 ||
2042+ (r = sshpkt_get_end(ssh)) != 0)
2043+ fatal("sshpkt failed: %s", ssh_err(r));
2044+ break;
2045+ case SSH2_MSG_KEXGSS_COMPLETE:
2046+ debug("Received GSSAPI_COMPLETE");
2047+ if (msg_tok.value != NULL)
2048+ fatal("Received GSSAPI_COMPLETE twice?");
2049+ if ((r = sshpkt_getb_froms(ssh, &server_blob)) != 0 ||
2050+ (r = ssh_gssapi_sshpkt_get_buffer_desc(ssh,
2051+ &msg_tok)) != 0)
2052+ fatal("sshpkt failed: %s", ssh_err(r));
2053+
2054+ /* Is there a token included? */
2055+ if ((r = sshpkt_get_u8(ssh, &c)) != 0)
2056+ fatal("sshpkt failed: %s", ssh_err(r));
2057+ if (c) {
2058+ if ((r = ssh_gssapi_sshpkt_get_buffer_desc(
2059+ ssh, &recv_tok)) != 0 ||
2060+ (r = sshpkt_get_end(ssh)) != 0)
2061+ fatal("sshpkt failed: %s", ssh_err(r));
2062+ /* If we're already complete - protocol error */
2063+ if (maj_status == GSS_S_COMPLETE)
2064+ sshpkt_disconnect(ssh, "Protocol error: received token when complete");
2065+ } else {
2066+ /* No token included */
2067+ if (maj_status != GSS_S_COMPLETE)
2068+ sshpkt_disconnect(ssh, "Protocol error: did not receive final token");
2069+ }
2070+ break;
2071+ case SSH2_MSG_KEXGSS_ERROR:
2072+ debug("Received Error");
2073+ if ((r = sshpkt_get_u32(ssh, &maj_status)) != 0 ||
2074+ (r = sshpkt_get_u32(ssh, &min_status)) != 0 ||
2075+ (r = sshpkt_get_string(ssh, &msg, NULL)) != 0 ||
2076+ (r = sshpkt_get_string(ssh, NULL, NULL)) != 0 || /* lang tag */
2077+ (r = sshpkt_get_end(ssh)) != 0)
2078+ fatal("sshpkt failed: %s", ssh_err(r));
2079+ fatal("GSSAPI Error: \n%.400s", msg);
2080+ default:
2081+ sshpkt_disconnect(ssh, "Protocol error: didn't expect packet type %d",
2082+ type);
2083+ }
2084+ token_ptr = &recv_tok;
2085+ } else {
2086+ /* No data, and not complete */
2087+ if (maj_status != GSS_S_COMPLETE)
2088+ fatal("Not complete, and no token output");
2089+ }
2090+ } while (maj_status & GSS_S_CONTINUE_NEEDED);
2091+
2092+ /*
2093+ * We _must_ have received a COMPLETE message in reply from the
2094+ * server, which will have set dh_server_pub and msg_tok
2095+ */
2096+
2097+ if (type != SSH2_MSG_KEXGSS_COMPLETE)
2098+ fatal("Didn't receive a SSH2_MSG_KEXGSS_COMPLETE when I expected it");
2099+
2100+ /* 7. C verifies that the key Q_S is valid */
2101+ /* 8. C computes shared secret */
2102+ if ((buf = sshbuf_new()) == NULL ||
2103+ (r = sshbuf_put_stringb(buf, server_blob)) != 0 ||
2104+ (r = sshbuf_get_bignum2(buf, &dh_server_pub)) != 0)
2105+ goto out;
2106+ sshbuf_free(buf);
2107+ buf = NULL;
2108+
2109+ if ((shared_secret = sshbuf_new()) == NULL) {
2110+ r = SSH_ERR_ALLOC_FAIL;
2111+ goto out;
2112+ }
2113+
2114+ if ((r = kex_dh_compute_key(kex, dh_server_pub, shared_secret)) != 0)
2115+ goto out;
2116+ if ((empty = sshbuf_new()) == NULL) {
2117+ r = SSH_ERR_ALLOC_FAIL;
2118+ goto out;
2119+ }
2120+
2121+ DH_get0_pqg(kex->dh, &dh_p, NULL, &dh_g);
2122+ hashlen = sizeof(hash);
2123+ if ((r = kexgex_hash(
2124+ kex->hash_alg,
2125+ kex->client_version,
2126+ kex->server_version,
2127+ kex->my,
2128+ kex->peer,
2129+ (server_host_key_blob ? server_host_key_blob : empty),
2130+ kex->min, kex->nbits, kex->max,
2131+ dh_p, dh_g,
2132+ pub_key,
2133+ dh_server_pub,
2134+ sshbuf_ptr(shared_secret), sshbuf_len(shared_secret),
2135+ hash, &hashlen)) != 0)
2136+ fatal("Failed to calculate hash: %s", ssh_err(r));
2137+
2138+ gssbuf.value = hash;
2139+ gssbuf.length = hashlen;
2140+
2141+ /* Verify that the hash matches the MIC we just got. */
2142+ if (GSS_ERROR(ssh_gssapi_checkmic(ctxt, &gssbuf, &msg_tok)))
2143+ sshpkt_disconnect(ssh, "Hash's MIC didn't verify");
2144+
2145+ gss_release_buffer(&min_status, &msg_tok);
2146+
2147+ /* save session id */
2148+ if (kex->session_id == NULL) {
2149+ kex->session_id_len = hashlen;
2150+ kex->session_id = xmalloc(kex->session_id_len);
2151+ memcpy(kex->session_id, hash, kex->session_id_len);
2152+ }
2153+
2154+ if (kex->gss_deleg_creds)
2155+ ssh_gssapi_credentials_updated(ctxt);
2156+
2157+ if (gss_kex_context == NULL)
2158+ gss_kex_context = ctxt;
2159+ else
2160+ ssh_gssapi_delete_ctx(&ctxt);
2161+
2162+ /* Finally derive the keys and send them */
2163+ if ((r = kex_derive_keys(ssh, hash, hashlen, shared_secret)) == 0)
2164+ r = kex_send_newkeys(ssh);
2165+out:
2166+ sshbuf_free(buf);
2167+ sshbuf_free(server_blob);
2168+ sshbuf_free(empty);
2169+ explicit_bzero(hash, sizeof(hash));
2170+ DH_free(kex->dh);
2171+ kex->dh = NULL;
2172+ BN_clear_free(dh_server_pub);
2173+ sshbuf_free(shared_secret);
2174+ sshbuf_free(server_host_key_blob);
2175+ return r;
2176+}
2177+#endif /* defined(GSSAPI) && defined(WITH_OPENSSL) */
2178diff --git a/kexgsss.c b/kexgsss.c
2179new file mode 100644
2180index 000000000..60bc02deb
2181--- /dev/null
2182+++ b/kexgsss.c
2183@@ -0,0 +1,474 @@
2184+/*
2185+ * Copyright (c) 2001-2009 Simon Wilkinson. All rights reserved.
2186+ *
2187+ * Redistribution and use in source and binary forms, with or without
2188+ * modification, are permitted provided that the following conditions
2189+ * are met:
2190+ * 1. Redistributions of source code must retain the above copyright
2191+ * notice, this list of conditions and the following disclaimer.
2192+ * 2. Redistributions in binary form must reproduce the above copyright
2193+ * notice, this list of conditions and the following disclaimer in the
2194+ * documentation and/or other materials provided with the distribution.
2195+ *
2196+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR `AS IS'' AND ANY EXPRESS OR
2197+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
2198+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
2199+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
2200+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
2201+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2202+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2203+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2204+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
2205+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2206+ */
2207+
2208+#include "includes.h"
2209+
2210+#if defined(GSSAPI) && defined(WITH_OPENSSL)
2211+
2212+#include <string.h>
2213+
2214+#include <openssl/crypto.h>
2215+#include <openssl/bn.h>
2216+
2217+#include "xmalloc.h"
2218+#include "sshbuf.h"
2219+#include "ssh2.h"
2220+#include "sshkey.h"
2221+#include "cipher.h"
2222+#include "kex.h"
2223+#include "log.h"
2224+#include "packet.h"
2225+#include "dh.h"
2226+#include "ssh-gss.h"
2227+#include "monitor_wrap.h"
2228+#include "misc.h" /* servconf.h needs misc.h for struct ForwardOptions */
2229+#include "servconf.h"
2230+#include "ssh-gss.h"
2231+#include "digest.h"
2232+#include "ssherr.h"
2233+
2234+extern ServerOptions options;
2235+
2236+int
2237+kexgss_server(struct ssh *ssh)
2238+{
2239+ struct kex *kex = ssh->kex;
2240+ OM_uint32 maj_status, min_status;
2241+
2242+ /*
2243+ * Some GSSAPI implementations use the input value of ret_flags (an
2244+ * output variable) as a means of triggering mechanism specific
2245+ * features. Initializing it to zero avoids inadvertently
2246+ * activating this non-standard behaviour.
2247+ */
2248+
2249+ OM_uint32 ret_flags = 0;
2250+ gss_buffer_desc gssbuf, recv_tok, msg_tok;
2251+ gss_buffer_desc send_tok = GSS_C_EMPTY_BUFFER;
2252+ Gssctxt *ctxt = NULL;
2253+ struct sshbuf *shared_secret = NULL;
2254+ struct sshbuf *client_pubkey = NULL;
2255+ struct sshbuf *server_pubkey = NULL;
2256+ struct sshbuf *empty = sshbuf_new();
2257+ int type = 0;
2258+ gss_OID oid;
2259+ char *mechs;
2260+ u_char hash[SSH_DIGEST_MAX_LENGTH];
2261+ size_t hashlen;
2262+ int r;
2263+
2264+ /* Initialise GSSAPI */
2265+
2266+ /* If we're rekeying, privsep means that some of the private structures
2267+ * in the GSSAPI code are no longer available. This kludges them back
2268+ * into life
2269+ */
2270+ if (!ssh_gssapi_oid_table_ok()) {
2271+ mechs = ssh_gssapi_server_mechanisms();
2272+ free(mechs);
2273+ }
2274+
2275+ debug2("%s: Identifying %s", __func__, kex->name);
2276+ oid = ssh_gssapi_id_kex(NULL, kex->name, kex->kex_type);
2277+ if (oid == GSS_C_NO_OID)
2278+ fatal("Unknown gssapi mechanism");
2279+
2280+ debug2("%s: Acquiring credentials", __func__);
2281+
2282+ if (GSS_ERROR(PRIVSEP(ssh_gssapi_server_ctx(&ctxt, oid))))
2283+ fatal("Unable to acquire credentials for the server");
2284+
2285+ do {
2286+ debug("Wait SSH2_MSG_KEXGSS_INIT");
2287+ type = ssh_packet_read(ssh);
2288+ switch(type) {
2289+ case SSH2_MSG_KEXGSS_INIT:
2290+ if (client_pubkey != NULL)
2291+ fatal("Received KEXGSS_INIT after initialising");
2292+ if ((r = ssh_gssapi_sshpkt_get_buffer_desc(ssh,
2293+ &recv_tok)) != 0 ||
2294+ (r = sshpkt_getb_froms(ssh, &client_pubkey)) != 0 ||
2295+ (r = sshpkt_get_end(ssh)) != 0)
2296+ fatal("sshpkt failed: %s", ssh_err(r));
2297+
2298+ switch (kex->kex_type) {
2299+ case KEX_GSS_GRP1_SHA1:
2300+ case KEX_GSS_GRP14_SHA1:
2301+ case KEX_GSS_GRP14_SHA256:
2302+ case KEX_GSS_GRP16_SHA512:
2303+ r = kex_dh_enc(kex, client_pubkey, &server_pubkey,
2304+ &shared_secret);
2305+ break;
2306+ case KEX_GSS_NISTP256_SHA256:
2307+ r = kex_ecdh_enc(kex, client_pubkey, &server_pubkey,
2308+ &shared_secret);
2309+ break;
2310+ case KEX_GSS_C25519_SHA256:
2311+ r = kex_c25519_enc(kex, client_pubkey, &server_pubkey,
2312+ &shared_secret);
2313+ break;
2314+ default:
2315+ fatal("%s: Unexpected KEX type %d", __func__, kex->kex_type);
2316+ }
2317+ if (r != 0)
2318+ goto out;
2319+
2320+ /* Send SSH_MSG_KEXGSS_HOSTKEY here, if we want */
2321+ break;
2322+ case SSH2_MSG_KEXGSS_CONTINUE:
2323+ if ((r = ssh_gssapi_sshpkt_get_buffer_desc(ssh,
2324+ &recv_tok)) != 0 ||
2325+ (r = sshpkt_get_end(ssh)) != 0)
2326+ fatal("sshpkt failed: %s", ssh_err(r));
2327+ break;
2328+ default:
2329+ sshpkt_disconnect(ssh,
2330+ "Protocol error: didn't expect packet type %d",
2331+ type);
2332+ }
2333+
2334+ maj_status = PRIVSEP(ssh_gssapi_accept_ctx(ctxt, &recv_tok,
2335+ &send_tok, &ret_flags));
2336+
2337+ gss_release_buffer(&min_status, &recv_tok);
2338+
2339+ if (maj_status != GSS_S_COMPLETE && send_tok.length == 0)
2340+ fatal("Zero length token output when incomplete");
2341+
2342+ if (client_pubkey == NULL)
2343+ fatal("No client public key");
2344+
2345+ if (maj_status & GSS_S_CONTINUE_NEEDED) {
2346+ debug("Sending GSSAPI_CONTINUE");
2347+ if ((r = sshpkt_start(ssh, SSH2_MSG_KEXGSS_CONTINUE)) != 0 ||
2348+ (r = sshpkt_put_string(ssh, send_tok.value, send_tok.length)) != 0 ||
2349+ (r = sshpkt_send(ssh)) != 0)
2350+ fatal("sshpkt failed: %s", ssh_err(r));
2351+ gss_release_buffer(&min_status, &send_tok);
2352+ }
2353+ } while (maj_status & GSS_S_CONTINUE_NEEDED);
2354+
2355+ if (GSS_ERROR(maj_status)) {
2356+ if (send_tok.length > 0) {
2357+ if ((r = sshpkt_start(ssh, SSH2_MSG_KEXGSS_CONTINUE)) != 0 ||
2358+ (r = sshpkt_put_string(ssh, send_tok.value, send_tok.length)) != 0 ||
2359+ (r = sshpkt_send(ssh)) != 0)
2360+ fatal("sshpkt failed: %s", ssh_err(r));
2361+ }
2362+ fatal("accept_ctx died");
2363+ }
2364+
2365+ if (!(ret_flags & GSS_C_MUTUAL_FLAG))
2366+ fatal("Mutual Authentication flag wasn't set");
2367+
2368+ if (!(ret_flags & GSS_C_INTEG_FLAG))
2369+ fatal("Integrity flag wasn't set");
2370+
2371+ hashlen = sizeof(hash);
2372+ if ((r = kex_gen_hash(
2373+ kex->hash_alg,
2374+ kex->client_version,
2375+ kex->server_version,
2376+ kex->peer,
2377+ kex->my,
2378+ empty,
2379+ client_pubkey,
2380+ server_pubkey,
2381+ shared_secret,
2382+ hash, &hashlen)) != 0)
2383+ goto out;
2384+
2385+ gssbuf.value = hash;
2386+ gssbuf.length = hashlen;
2387+
2388+ if (GSS_ERROR(PRIVSEP(ssh_gssapi_sign(ctxt, &gssbuf, &msg_tok))))
2389+ fatal("Couldn't get MIC");
2390+
2391+ if ((r = sshpkt_start(ssh, SSH2_MSG_KEXGSS_COMPLETE)) != 0 ||
2392+ (r = sshpkt_put_stringb(ssh, server_pubkey)) != 0 ||
2393+ (r = sshpkt_put_string(ssh, msg_tok.value, msg_tok.length)) != 0)
2394+ fatal("sshpkt failed: %s", ssh_err(r));
2395+
2396+ if (send_tok.length != 0) {
2397+ if ((r = sshpkt_put_u8(ssh, 1)) != 0 || /* true */
2398+ (r = sshpkt_put_string(ssh, send_tok.value, send_tok.length)) != 0)
2399+ fatal("sshpkt failed: %s", ssh_err(r));
2400+ } else {
2401+ if ((r = sshpkt_put_u8(ssh, 0)) != 0) /* false */
2402+ fatal("sshpkt failed: %s", ssh_err(r));
2403+ }
2404+ if ((r = sshpkt_send(ssh)) != 0)
2405+ fatal("sshpkt_send failed: %s", ssh_err(r));
2406+
2407+ gss_release_buffer(&min_status, &send_tok);
2408+ gss_release_buffer(&min_status, &msg_tok);
2409+
2410+ if (gss_kex_context == NULL)
2411+ gss_kex_context = ctxt;
2412+ else
2413+ ssh_gssapi_delete_ctx(&ctxt);
2414+
2415+ if ((r = kex_derive_keys(ssh, hash, hashlen, shared_secret)) == 0)
2416+ r = kex_send_newkeys(ssh);
2417+
2418+ /* If this was a rekey, then save out any delegated credentials we
2419+ * just exchanged. */
2420+ if (options.gss_store_rekey)
2421+ ssh_gssapi_rekey_creds();
2422+out:
2423+ sshbuf_free(empty);
2424+ explicit_bzero(hash, sizeof(hash));
2425+ sshbuf_free(shared_secret);
2426+ sshbuf_free(client_pubkey);
2427+ sshbuf_free(server_pubkey);
2428+ return r;
2429+}
2430+
2431+int
2432+kexgssgex_server(struct ssh *ssh)
2433+{
2434+ struct kex *kex = ssh->kex;
2435+ OM_uint32 maj_status, min_status;
2436+
2437+ /*
2438+ * Some GSSAPI implementations use the input value of ret_flags (an
2439+ * output variable) as a means of triggering mechanism specific
2440+ * features. Initializing it to zero avoids inadvertently
2441+ * activating this non-standard behaviour.
2442+ */
2443+
2444+ OM_uint32 ret_flags = 0;
2445+ gss_buffer_desc gssbuf, recv_tok, msg_tok;
2446+ gss_buffer_desc send_tok = GSS_C_EMPTY_BUFFER;
2447+ Gssctxt *ctxt = NULL;
2448+ struct sshbuf *shared_secret = NULL;
2449+ int type = 0;
2450+ gss_OID oid;
2451+ char *mechs;
2452+ u_char hash[SSH_DIGEST_MAX_LENGTH];
2453+ size_t hashlen;
2454+ BIGNUM *dh_client_pub = NULL;
2455+ const BIGNUM *pub_key, *dh_p, *dh_g;
2456+ int min = -1, max = -1, nbits = -1;
2457+ int cmin = -1, cmax = -1; /* client proposal */
2458+ struct sshbuf *empty = sshbuf_new();
2459+ int r;
2460+
2461+ /* Initialise GSSAPI */
2462+
2463+ /* If we're rekeying, privsep means that some of the private structures
2464+ * in the GSSAPI code are no longer available. This kludges them back
2465+ * into life
2466+ */
2467+ if (!ssh_gssapi_oid_table_ok())
2468+ if ((mechs = ssh_gssapi_server_mechanisms()))
2469+ free(mechs);
2470+
2471+ debug2("%s: Identifying %s", __func__, kex->name);
2472+ oid = ssh_gssapi_id_kex(NULL, kex->name, kex->kex_type);
2473+ if (oid == GSS_C_NO_OID)
2474+ fatal("Unknown gssapi mechanism");
2475+
2476+ debug2("%s: Acquiring credentials", __func__);
2477+
2478+ if (GSS_ERROR(PRIVSEP(ssh_gssapi_server_ctx(&ctxt, oid))))
2479+ fatal("Unable to acquire credentials for the server");
2480+
2481+ /* 5. S generates an ephemeral key pair (do the allocations early) */
2482+ debug("Doing group exchange");
2483+ ssh_packet_read_expect(ssh, SSH2_MSG_KEXGSS_GROUPREQ);
2484+ /* store client proposal to provide valid signature */
2485+ if ((r = sshpkt_get_u32(ssh, &cmin)) != 0 ||
2486+ (r = sshpkt_get_u32(ssh, &nbits)) != 0 ||
2487+ (r = sshpkt_get_u32(ssh, &cmax)) != 0 ||
2488+ (r = sshpkt_get_end(ssh)) != 0)
2489+ fatal("sshpkt failed: %s", ssh_err(r));
2490+ kex->nbits = nbits;
2491+ kex->min = cmin;
2492+ kex->max = cmax;
2493+ min = MAX(DH_GRP_MIN, cmin);
2494+ max = MIN(DH_GRP_MAX, cmax);
2495+ nbits = MAXIMUM(DH_GRP_MIN, nbits);
2496+ nbits = MINIMUM(DH_GRP_MAX, nbits);
2497+ if (max < min || nbits < min || max < nbits)
2498+ fatal("GSS_GEX, bad parameters: %d !< %d !< %d",
2499+ min, nbits, max);
2500+ kex->dh = PRIVSEP(choose_dh(min, nbits, max));
2501+ if (kex->dh == NULL) {
2502+ sshpkt_disconnect(ssh, "Protocol error: no matching group found");
2503+ fatal("Protocol error: no matching group found");
2504+ }
2505+
2506+ DH_get0_pqg(kex->dh, &dh_p, NULL, &dh_g);
2507+ if ((r = sshpkt_start(ssh, SSH2_MSG_KEXGSS_GROUP)) != 0 ||
2508+ (r = sshpkt_put_bignum2(ssh, dh_p)) != 0 ||
2509+ (r = sshpkt_put_bignum2(ssh, dh_g)) != 0 ||
2510+ (r = sshpkt_send(ssh)) != 0)
2511+ fatal("sshpkt failed: %s", ssh_err(r));
2512+
2513+ if ((r = ssh_packet_write_wait(ssh)) != 0)
2514+ fatal("ssh_packet_write_wait: %s", ssh_err(r));
2515+
2516+ /* Compute our exchange value in parallel with the client */
2517+ if ((r = dh_gen_key(kex->dh, kex->we_need * 8)) != 0)
2518+ goto out;
2519+
2520+ do {
2521+ debug("Wait SSH2_MSG_GSSAPI_INIT");
2522+ type = ssh_packet_read(ssh);
2523+ switch(type) {
2524+ case SSH2_MSG_KEXGSS_INIT:
2525+ if (dh_client_pub != NULL)
2526+ fatal("Received KEXGSS_INIT after initialising");
2527+ if ((r = ssh_gssapi_sshpkt_get_buffer_desc(ssh,
2528+ &recv_tok)) != 0 ||
2529+ (r = sshpkt_get_bignum2(ssh, &dh_client_pub)) != 0 ||
2530+ (r = sshpkt_get_end(ssh)) != 0)
2531+ fatal("sshpkt failed: %s", ssh_err(r));
2532+
2533+ /* Send SSH_MSG_KEXGSS_HOSTKEY here, if we want */
2534+ break;
2535+ case SSH2_MSG_KEXGSS_CONTINUE:
2536+ if ((r = ssh_gssapi_sshpkt_get_buffer_desc(ssh,
2537+ &recv_tok)) != 0 ||
2538+ (r = sshpkt_get_end(ssh)) != 0)
2539+ fatal("sshpkt failed: %s", ssh_err(r));
2540+ break;
2541+ default:
2542+ sshpkt_disconnect(ssh,
2543+ "Protocol error: didn't expect packet type %d",
2544+ type);
2545+ }
2546+
2547+ maj_status = PRIVSEP(ssh_gssapi_accept_ctx(ctxt, &recv_tok,
2548+ &send_tok, &ret_flags));
2549+
2550+ gss_release_buffer(&min_status, &recv_tok);
2551+
2552+ if (maj_status != GSS_S_COMPLETE && send_tok.length == 0)
2553+ fatal("Zero length token output when incomplete");
2554+
2555+ if (dh_client_pub == NULL)
2556+ fatal("No client public key");
2557+
2558+ if (maj_status & GSS_S_CONTINUE_NEEDED) {
2559+ debug("Sending GSSAPI_CONTINUE");
2560+ if ((r = sshpkt_start(ssh, SSH2_MSG_KEXGSS_CONTINUE)) != 0 ||
2561+ (r = sshpkt_put_string(ssh, send_tok.value, send_tok.length)) != 0 ||
2562+ (r = sshpkt_send(ssh)) != 0)
2563+ fatal("sshpkt failed: %s", ssh_err(r));
2564+ gss_release_buffer(&min_status, &send_tok);
2565+ }
2566+ } while (maj_status & GSS_S_CONTINUE_NEEDED);
2567+
2568+ if (GSS_ERROR(maj_status)) {
2569+ if (send_tok.length > 0) {
2570+ if ((r = sshpkt_start(ssh, SSH2_MSG_KEXGSS_CONTINUE)) != 0 ||
2571+ (r = sshpkt_put_string(ssh, send_tok.value, send_tok.length)) != 0 ||
2572+ (r = sshpkt_send(ssh)) != 0)
2573+ fatal("sshpkt failed: %s", ssh_err(r));
2574+ }
2575+ fatal("accept_ctx died");
2576+ }
2577+
2578+ if (!(ret_flags & GSS_C_MUTUAL_FLAG))
2579+ fatal("Mutual Authentication flag wasn't set");
2580+
2581+ if (!(ret_flags & GSS_C_INTEG_FLAG))
2582+ fatal("Integrity flag wasn't set");
2583+
2584+ /* calculate shared secret */
2585+ if ((shared_secret = sshbuf_new()) == NULL) {
2586+ r = SSH_ERR_ALLOC_FAIL;
2587+ goto out;
2588+ }
2589+ if ((r = kex_dh_compute_key(kex, dh_client_pub, shared_secret)) != 0)
2590+ goto out;
2591+
2592+ DH_get0_key(kex->dh, &pub_key, NULL);
2593+ DH_get0_pqg(kex->dh, &dh_p, NULL, &dh_g);
2594+ hashlen = sizeof(hash);
2595+ if ((r = kexgex_hash(
2596+ kex->hash_alg,
2597+ kex->client_version,
2598+ kex->server_version,
2599+ kex->peer,
2600+ kex->my,
2601+ empty,
2602+ cmin, nbits, cmax,
2603+ dh_p, dh_g,
2604+ dh_client_pub,
2605+ pub_key,
2606+ sshbuf_ptr(shared_secret), sshbuf_len(shared_secret),
2607+ hash, &hashlen)) != 0)
2608+ fatal("kexgex_hash failed: %s", ssh_err(r));
2609+
2610+ gssbuf.value = hash;
2611+ gssbuf.length = hashlen;
2612+
2613+ if (GSS_ERROR(PRIVSEP(ssh_gssapi_sign(ctxt, &gssbuf, &msg_tok))))
2614+ fatal("Couldn't get MIC");
2615+
2616+ if ((r = sshpkt_start(ssh, SSH2_MSG_KEXGSS_COMPLETE)) != 0 ||
2617+ (r = sshpkt_put_bignum2(ssh, pub_key)) != 0 ||
2618+ (r = sshpkt_put_string(ssh, msg_tok.value, msg_tok.length)) != 0)
2619+ fatal("sshpkt failed: %s", ssh_err(r));
2620+
2621+ if (send_tok.length != 0) {
2622+ if ((r = sshpkt_put_u8(ssh, 1)) != 0 || /* true */
2623+ (r = sshpkt_put_string(ssh, send_tok.value, send_tok.length)) != 0)
2624+ fatal("sshpkt failed: %s", ssh_err(r));
2625+ } else {
2626+ if ((r = sshpkt_put_u8(ssh, 0)) != 0) /* false */
2627+ fatal("sshpkt failed: %s", ssh_err(r));
2628+ }
2629+ if ((r = sshpkt_send(ssh)) != 0)
2630+ fatal("sshpkt failed: %s", ssh_err(r));
2631+
2632+ gss_release_buffer(&min_status, &send_tok);
2633+ gss_release_buffer(&min_status, &msg_tok);
2634+
2635+ if (gss_kex_context == NULL)
2636+ gss_kex_context = ctxt;
2637+ else
2638+ ssh_gssapi_delete_ctx(&ctxt);
2639+
2640+ /* Finally derive the keys and send them */
2641+ if ((r = kex_derive_keys(ssh, hash, hashlen, shared_secret)) == 0)
2642+ r = kex_send_newkeys(ssh);
2643+
2644+ /* If this was a rekey, then save out any delegated credentials we
2645+ * just exchanged. */
2646+ if (options.gss_store_rekey)
2647+ ssh_gssapi_rekey_creds();
2648+out:
2649+ sshbuf_free(empty);
2650+ explicit_bzero(hash, sizeof(hash));
2651+ DH_free(kex->dh);
2652+ kex->dh = NULL;
2653+ BN_clear_free(dh_client_pub);
2654+ sshbuf_free(shared_secret);
2655+ return r;
2656+}
2657+#endif /* defined(GSSAPI) && defined(WITH_OPENSSL) */
2658diff --git a/monitor.c b/monitor.c
2659index 4cf79dfc9..11868952b 100644
2660--- a/monitor.c
2661+++ b/monitor.c
2662@@ -148,6 +148,8 @@ int mm_answer_gss_setup_ctx(struct ssh *, int, struct sshbuf *);
2663 int mm_answer_gss_accept_ctx(struct ssh *, int, struct sshbuf *);
2664 int mm_answer_gss_userok(struct ssh *, int, struct sshbuf *);
2665 int mm_answer_gss_checkmic(struct ssh *, int, struct sshbuf *);
2666+int mm_answer_gss_sign(struct ssh *, int, struct sshbuf *);
2667+int mm_answer_gss_updatecreds(struct ssh *, int, struct sshbuf *);
2668 #endif
2669
2670 #ifdef SSH_AUDIT_EVENTS
2671@@ -220,11 +222,18 @@ struct mon_table mon_dispatch_proto20[] = {
2672 {MONITOR_REQ_GSSSTEP, 0, mm_answer_gss_accept_ctx},
2673 {MONITOR_REQ_GSSUSEROK, MON_ONCE|MON_AUTHDECIDE, mm_answer_gss_userok},
2674 {MONITOR_REQ_GSSCHECKMIC, MON_ONCE, mm_answer_gss_checkmic},
2675+ {MONITOR_REQ_GSSSIGN, MON_ONCE, mm_answer_gss_sign},
2676 #endif
2677 {0, 0, NULL}
2678 };
2679
2680 struct mon_table mon_dispatch_postauth20[] = {
2681+#ifdef GSSAPI
2682+ {MONITOR_REQ_GSSSETUP, 0, mm_answer_gss_setup_ctx},
2683+ {MONITOR_REQ_GSSSTEP, 0, mm_answer_gss_accept_ctx},
2684+ {MONITOR_REQ_GSSSIGN, 0, mm_answer_gss_sign},
2685+ {MONITOR_REQ_GSSUPCREDS, 0, mm_answer_gss_updatecreds},
2686+#endif
2687 #ifdef WITH_OPENSSL
2688 {MONITOR_REQ_MODULI, 0, mm_answer_moduli},
2689 #endif
2690@@ -293,6 +302,10 @@ monitor_child_preauth(struct ssh *ssh, struct monitor *pmonitor)
2691 /* Permit requests for moduli and signatures */
2692 monitor_permit(mon_dispatch, MONITOR_REQ_MODULI, 1);
2693 monitor_permit(mon_dispatch, MONITOR_REQ_SIGN, 1);
2694+#ifdef GSSAPI
2695+ /* and for the GSSAPI key exchange */
2696+ monitor_permit(mon_dispatch, MONITOR_REQ_GSSSETUP, 1);
2697+#endif
2698
2699 /* The first few requests do not require asynchronous access */
2700 while (!authenticated) {
2701@@ -406,6 +419,10 @@ monitor_child_postauth(struct ssh *ssh, struct monitor *pmonitor)
2702 monitor_permit(mon_dispatch, MONITOR_REQ_MODULI, 1);
2703 monitor_permit(mon_dispatch, MONITOR_REQ_SIGN, 1);
2704 monitor_permit(mon_dispatch, MONITOR_REQ_TERM, 1);
2705+#ifdef GSSAPI
2706+ /* and for the GSSAPI key exchange */
2707+ monitor_permit(mon_dispatch, MONITOR_REQ_GSSSETUP, 1);
2708+#endif
2709
2710 if (auth_opts->permit_pty_flag) {
2711 monitor_permit(mon_dispatch, MONITOR_REQ_PTY, 1);
2712@@ -1725,6 +1742,17 @@ monitor_apply_keystate(struct ssh *ssh, struct monitor *pmonitor)
2713 # ifdef OPENSSL_HAS_ECC
2714 kex->kex[KEX_ECDH_SHA2] = kex_gen_server;
2715 # endif
2716+# ifdef GSSAPI
2717+ if (options.gss_keyex) {
2718+ kex->kex[KEX_GSS_GRP1_SHA1] = kexgss_server;
2719+ kex->kex[KEX_GSS_GRP14_SHA1] = kexgss_server;
2720+ kex->kex[KEX_GSS_GRP14_SHA256] = kexgss_server;
2721+ kex->kex[KEX_GSS_GRP16_SHA512] = kexgss_server;
2722+ kex->kex[KEX_GSS_GEX_SHA1] = kexgssgex_server;
2723+ kex->kex[KEX_GSS_NISTP256_SHA256] = kexgss_server;
2724+ kex->kex[KEX_GSS_C25519_SHA256] = kexgss_server;
2725+ }
2726+# endif
2727 #endif /* WITH_OPENSSL */
2728 kex->kex[KEX_C25519_SHA256] = kex_gen_server;
2729 kex->kex[KEX_KEM_SNTRUP4591761X25519_SHA512] = kex_gen_server;
2730@@ -1818,8 +1846,8 @@ mm_answer_gss_setup_ctx(struct ssh *ssh, int sock, struct sshbuf *m)
2731 u_char *p;
2732 int r;
2733
2734- if (!options.gss_authentication)
2735- fatal("%s: GSSAPI authentication not enabled", __func__);
2736+ if (!options.gss_authentication && !options.gss_keyex)
2737+ fatal("%s: GSSAPI not enabled", __func__);
2738
2739 if ((r = sshbuf_get_string(m, &p, &len)) != 0)
2740 fatal("%s: buffer error: %s", __func__, ssh_err(r));
2741@@ -1851,8 +1879,8 @@ mm_answer_gss_accept_ctx(struct ssh *ssh, int sock, struct sshbuf *m)
2742 OM_uint32 flags = 0; /* GSI needs this */
2743 int r;
2744
2745- if (!options.gss_authentication)
2746- fatal("%s: GSSAPI authentication not enabled", __func__);
2747+ if (!options.gss_authentication && !options.gss_keyex)
2748+ fatal("%s: GSSAPI not enabled", __func__);
2749
2750 if ((r = ssh_gssapi_get_buffer_desc(m, &in)) != 0)
2751 fatal("%s: buffer error: %s", __func__, ssh_err(r));
2752@@ -1872,6 +1900,7 @@ mm_answer_gss_accept_ctx(struct ssh *ssh, int sock, struct sshbuf *m)
2753 monitor_permit(mon_dispatch, MONITOR_REQ_GSSSTEP, 0);
2754 monitor_permit(mon_dispatch, MONITOR_REQ_GSSUSEROK, 1);
2755 monitor_permit(mon_dispatch, MONITOR_REQ_GSSCHECKMIC, 1);
2756+ monitor_permit(mon_dispatch, MONITOR_REQ_GSSSIGN, 1);
2757 }
2758 return (0);
2759 }
2760@@ -1883,8 +1912,8 @@ mm_answer_gss_checkmic(struct ssh *ssh, int sock, struct sshbuf *m)
2761 OM_uint32 ret;
2762 int r;
2763
2764- if (!options.gss_authentication)
2765- fatal("%s: GSSAPI authentication not enabled", __func__);
2766+ if (!options.gss_authentication && !options.gss_keyex)
2767+ fatal("%s: GSSAPI not enabled", __func__);
2768
2769 if ((r = ssh_gssapi_get_buffer_desc(m, &gssbuf)) != 0 ||
2770 (r = ssh_gssapi_get_buffer_desc(m, &mic)) != 0)
2771@@ -1910,13 +1939,17 @@ mm_answer_gss_checkmic(struct ssh *ssh, int sock, struct sshbuf *m)
2772 int
2773 mm_answer_gss_userok(struct ssh *ssh, int sock, struct sshbuf *m)
2774 {
2775- int r, authenticated;
2776+ int r, authenticated, kex;
2777 const char *displayname;
2778
2779- if (!options.gss_authentication)
2780- fatal("%s: GSSAPI authentication not enabled", __func__);
2781+ if (!options.gss_authentication && !options.gss_keyex)
2782+ fatal("%s: GSSAPI not enabled", __func__);
2783
2784- authenticated = authctxt->valid && ssh_gssapi_userok(authctxt->user);
2785+ if ((r = sshbuf_get_u32(m, &kex)) != 0)
2786+ fatal("%s: buffer error: %s", __func__, ssh_err(r));
2787+
2788+ authenticated = authctxt->valid &&
2789+ ssh_gssapi_userok(authctxt->user, authctxt->pw, kex);
2790
2791 sshbuf_reset(m);
2792 if ((r = sshbuf_put_u32(m, authenticated)) != 0)
2793@@ -1925,7 +1958,11 @@ mm_answer_gss_userok(struct ssh *ssh, int sock, struct sshbuf *m)
2794 debug3("%s: sending result %d", __func__, authenticated);
2795 mm_request_send(sock, MONITOR_ANS_GSSUSEROK, m);
2796
2797- auth_method = "gssapi-with-mic";
2798+ if (kex) {
2799+ auth_method = "gssapi-keyex";
2800+ } else {
2801+ auth_method = "gssapi-with-mic";
2802+ }
2803
2804 if ((displayname = ssh_gssapi_displayname()) != NULL)
2805 auth2_record_info(authctxt, "%s", displayname);
2806@@ -1933,5 +1970,85 @@ mm_answer_gss_userok(struct ssh *ssh, int sock, struct sshbuf *m)
2807 /* Monitor loop will terminate if authenticated */
2808 return (authenticated);
2809 }
2810+
2811+int
2812+mm_answer_gss_sign(struct ssh *ssh, int socket, struct sshbuf *m)
2813+{
2814+ gss_buffer_desc data;
2815+ gss_buffer_desc hash = GSS_C_EMPTY_BUFFER;
2816+ OM_uint32 major, minor;
2817+ size_t len;
2818+ u_char *p = NULL;
2819+ int r;
2820+
2821+ if (!options.gss_authentication && !options.gss_keyex)
2822+ fatal("%s: GSSAPI not enabled", __func__);
2823+
2824+ if ((r = sshbuf_get_string(m, &p, &len)) != 0)
2825+ fatal("%s: buffer error: %s", __func__, ssh_err(r));
2826+ data.value = p;
2827+ data.length = len;
2828+ /* Lengths of SHA-1, SHA-256 and SHA-512 hashes that are used */
2829+ if (data.length != 20 && data.length != 32 && data.length != 64)
2830+ fatal("%s: data length incorrect: %d", __func__,
2831+ (int) data.length);
2832+
2833+ /* Save the session ID on the first time around */
2834+ if (session_id2_len == 0) {
2835+ session_id2_len = data.length;
2836+ session_id2 = xmalloc(session_id2_len);
2837+ memcpy(session_id2, data.value, session_id2_len);
2838+ }
2839+ major = ssh_gssapi_sign(gsscontext, &data, &hash);
2840+
2841+ free(data.value);
2842+
2843+ sshbuf_reset(m);
2844+
2845+ if ((r = sshbuf_put_u32(m, major)) != 0 ||
2846+ (r = sshbuf_put_string(m, hash.value, hash.length)) != 0)
2847+ fatal("%s: buffer error: %s", __func__, ssh_err(r));
2848+
2849+ mm_request_send(socket, MONITOR_ANS_GSSSIGN, m);
2850+
2851+ gss_release_buffer(&minor, &hash);
2852+
2853+ /* Turn on getpwnam permissions */
2854+ monitor_permit(mon_dispatch, MONITOR_REQ_PWNAM, 1);
2855+
2856+ /* And credential updating, for when rekeying */
2857+ monitor_permit(mon_dispatch, MONITOR_REQ_GSSUPCREDS, 1);
2858+
2859+ return (0);
2860+}
2861+
2862+int
2863+mm_answer_gss_updatecreds(struct ssh *ssh, int socket, struct sshbuf *m) {
2864+ ssh_gssapi_ccache store;
2865+ int r, ok;
2866+
2867+ if (!options.gss_authentication && !options.gss_keyex)
2868+ fatal("%s: GSSAPI not enabled", __func__);
2869+
2870+ if ((r = sshbuf_get_string(m, (u_char **)&store.filename, NULL)) != 0 ||
2871+ (r = sshbuf_get_string(m, (u_char **)&store.envvar, NULL)) != 0 ||
2872+ (r = sshbuf_get_string(m, (u_char **)&store.envval, NULL)) != 0)
2873+ fatal("%s: buffer error: %s", __func__, ssh_err(r));
2874+
2875+ ok = ssh_gssapi_update_creds(&store);
2876+
2877+ free(store.filename);
2878+ free(store.envvar);
2879+ free(store.envval);
2880+
2881+ sshbuf_reset(m);
2882+ if ((r = sshbuf_put_u32(m, ok)) != 0)
2883+ fatal("%s: buffer error: %s", __func__, ssh_err(r));
2884+
2885+ mm_request_send(socket, MONITOR_ANS_GSSUPCREDS, m);
2886+
2887+ return(0);
2888+}
2889+
2890 #endif /* GSSAPI */
2891
2892diff --git a/monitor.h b/monitor.h
2893index 683e5e071..2b1a2d590 100644
2894--- a/monitor.h
2895+++ b/monitor.h
2896@@ -63,6 +63,8 @@ enum monitor_reqtype {
2897 MONITOR_REQ_PAM_FREE_CTX = 110, MONITOR_ANS_PAM_FREE_CTX = 111,
2898 MONITOR_REQ_AUDIT_EVENT = 112, MONITOR_REQ_AUDIT_COMMAND = 113,
2899
2900+ MONITOR_REQ_GSSSIGN = 150, MONITOR_ANS_GSSSIGN = 151,
2901+ MONITOR_REQ_GSSUPCREDS = 152, MONITOR_ANS_GSSUPCREDS = 153,
2902 };
2903
2904 struct ssh;
2905diff --git a/monitor_wrap.c b/monitor_wrap.c
2906index 5e38d83eb..0e78cd006 100644
2907--- a/monitor_wrap.c
2908+++ b/monitor_wrap.c
2909@@ -993,13 +993,15 @@ mm_ssh_gssapi_checkmic(Gssctxt *ctx, gss_buffer_t gssbuf, gss_buffer_t gssmic)
2910 }
2911
2912 int
2913-mm_ssh_gssapi_userok(char *user)
2914+mm_ssh_gssapi_userok(char *user, struct passwd *pw, int kex)
2915 {
2916 struct sshbuf *m;
2917 int r, authenticated = 0;
2918
2919 if ((m = sshbuf_new()) == NULL)
2920 fatal("%s: sshbuf_new failed", __func__);
2921+ if ((r = sshbuf_put_u32(m, kex)) != 0)
2922+ fatal("%s: buffer error: %s", __func__, ssh_err(r));
2923
2924 mm_request_send(pmonitor->m_recvfd, MONITOR_REQ_GSSUSEROK, m);
2925 mm_request_receive_expect(pmonitor->m_recvfd,
2926@@ -1012,4 +1014,57 @@ mm_ssh_gssapi_userok(char *user)
2927 debug3("%s: user %sauthenticated",__func__, authenticated ? "" : "not ");
2928 return (authenticated);
2929 }
2930+
2931+OM_uint32
2932+mm_ssh_gssapi_sign(Gssctxt *ctx, gss_buffer_desc *data, gss_buffer_desc *hash)
2933+{
2934+ struct sshbuf *m;
2935+ OM_uint32 major;
2936+ int r;
2937+
2938+ if ((m = sshbuf_new()) == NULL)
2939+ fatal("%s: sshbuf_new failed", __func__);
2940+ if ((r = sshbuf_put_string(m, data->value, data->length)) != 0)
2941+ fatal("%s: buffer error: %s", __func__, ssh_err(r));
2942+
2943+ mm_request_send(pmonitor->m_recvfd, MONITOR_REQ_GSSSIGN, m);
2944+ mm_request_receive_expect(pmonitor->m_recvfd, MONITOR_ANS_GSSSIGN, m);
2945+
2946+ if ((r = sshbuf_get_u32(m, &major)) != 0 ||
2947+ (r = ssh_gssapi_get_buffer_desc(m, hash)) != 0)
2948+ fatal("%s: buffer error: %s", __func__, ssh_err(r));
2949+
2950+ sshbuf_free(m);
2951+
2952+ return (major);
2953+}
2954+
2955+int
2956+mm_ssh_gssapi_update_creds(ssh_gssapi_ccache *store)
2957+{
2958+ struct sshbuf *m;
2959+ int r, ok;
2960+
2961+ if ((m = sshbuf_new()) == NULL)
2962+ fatal("%s: sshbuf_new failed", __func__);
2963+
2964+ if ((r = sshbuf_put_cstring(m,
2965+ store->filename ? store->filename : "")) != 0 ||
2966+ (r = sshbuf_put_cstring(m,
2967+ store->envvar ? store->envvar : "")) != 0 ||
2968+ (r = sshbuf_put_cstring(m,
2969+ store->envval ? store->envval : "")) != 0)
2970+ fatal("%s: buffer error: %s", __func__, ssh_err(r));
2971+
2972+ mm_request_send(pmonitor->m_recvfd, MONITOR_REQ_GSSUPCREDS, m);
2973+ mm_request_receive_expect(pmonitor->m_recvfd, MONITOR_ANS_GSSUPCREDS, m);
2974+
2975+ if ((r = sshbuf_get_u32(m, &ok)) != 0)
2976+ fatal("%s: buffer error: %s", __func__, ssh_err(r));
2977+
2978+ sshbuf_free(m);
2979+
2980+ return (ok);
2981+}
2982+
2983 #endif /* GSSAPI */
2984diff --git a/monitor_wrap.h b/monitor_wrap.h
2985index 0db38c206..75aef1c74 100644
2986--- a/monitor_wrap.h
2987+++ b/monitor_wrap.h
2988@@ -65,8 +65,10 @@ int mm_sshkey_verify(const struct sshkey *, const u_char *, size_t,
2989 OM_uint32 mm_ssh_gssapi_server_ctx(Gssctxt **, gss_OID);
2990 OM_uint32 mm_ssh_gssapi_accept_ctx(Gssctxt *,
2991 gss_buffer_desc *, gss_buffer_desc *, OM_uint32 *);
2992-int mm_ssh_gssapi_userok(char *user);
2993+int mm_ssh_gssapi_userok(char *user, struct passwd *, int kex);
2994 OM_uint32 mm_ssh_gssapi_checkmic(Gssctxt *, gss_buffer_t, gss_buffer_t);
2995+OM_uint32 mm_ssh_gssapi_sign(Gssctxt *, gss_buffer_t, gss_buffer_t);
2996+int mm_ssh_gssapi_update_creds(ssh_gssapi_ccache *);
2997 #endif
2998
2999 #ifdef USE_PAM
3000diff --git a/readconf.c b/readconf.c
3001index 554efd7c9..57dae55d1 100644
3002--- a/readconf.c
3003+++ b/readconf.c
3004@@ -67,6 +67,7 @@
3005 #include "uidswap.h"
3006 #include "myproposal.h"
3007 #include "digest.h"
3008+#include "ssh-gss.h"
3009
3010 /* Format of the configuration file:
3011
3012@@ -160,6 +161,8 @@ typedef enum {
3013 oClearAllForwardings, oNoHostAuthenticationForLocalhost,
3014 oEnableSSHKeysign, oRekeyLimit, oVerifyHostKeyDNS, oConnectTimeout,
3015 oAddressFamily, oGssAuthentication, oGssDelegateCreds,
3016+ oGssTrustDns, oGssKeyEx, oGssClientIdentity, oGssRenewalRekey,
3017+ oGssServerIdentity, oGssKexAlgorithms,
3018 oServerAliveInterval, oServerAliveCountMax, oIdentitiesOnly,
3019 oSendEnv, oSetEnv, oControlPath, oControlMaster, oControlPersist,
3020 oHashKnownHosts,
3021@@ -204,10 +207,22 @@ static struct {
3022 /* Sometimes-unsupported options */
3023 #if defined(GSSAPI)
3024 { "gssapiauthentication", oGssAuthentication },
3025+ { "gssapikeyexchange", oGssKeyEx },
3026 { "gssapidelegatecredentials", oGssDelegateCreds },
3027+ { "gssapitrustdns", oGssTrustDns },
3028+ { "gssapiclientidentity", oGssClientIdentity },
3029+ { "gssapiserveridentity", oGssServerIdentity },
3030+ { "gssapirenewalforcesrekey", oGssRenewalRekey },
3031+ { "gssapikexalgorithms", oGssKexAlgorithms },
3032 # else
3033 { "gssapiauthentication", oUnsupported },
3034+ { "gssapikeyexchange", oUnsupported },
3035 { "gssapidelegatecredentials", oUnsupported },
3036+ { "gssapitrustdns", oUnsupported },
3037+ { "gssapiclientidentity", oUnsupported },
3038+ { "gssapiserveridentity", oUnsupported },
3039+ { "gssapirenewalforcesrekey", oUnsupported },
3040+ { "gssapikexalgorithms", oUnsupported },
3041 #endif
3042 #ifdef ENABLE_PKCS11
3043 { "pkcs11provider", oPKCS11Provider },
3044@@ -1068,10 +1083,42 @@ parse_time:
3045 intptr = &options->gss_authentication;
3046 goto parse_flag;
3047
3048+ case oGssKeyEx:
3049+ intptr = &options->gss_keyex;
3050+ goto parse_flag;
3051+
3052 case oGssDelegateCreds:
3053 intptr = &options->gss_deleg_creds;
3054 goto parse_flag;
3055
3056+ case oGssTrustDns:
3057+ intptr = &options->gss_trust_dns;
3058+ goto parse_flag;
3059+
3060+ case oGssClientIdentity:
3061+ charptr = &options->gss_client_identity;
3062+ goto parse_string;
3063+
3064+ case oGssServerIdentity:
3065+ charptr = &options->gss_server_identity;
3066+ goto parse_string;
3067+
3068+ case oGssRenewalRekey:
3069+ intptr = &options->gss_renewal_rekey;
3070+ goto parse_flag;
3071+
3072+ case oGssKexAlgorithms:
3073+ arg = strdelim(&s);
3074+ if (!arg || *arg == '\0')
3075+ fatal("%.200s line %d: Missing argument.",
3076+ filename, linenum);
3077+ if (!kex_gss_names_valid(arg))
3078+ fatal("%.200s line %d: Bad GSSAPI KexAlgorithms '%s'.",
3079+ filename, linenum, arg ? arg : "<NONE>");
3080+ if (*activep && options->gss_kex_algorithms == NULL)
3081+ options->gss_kex_algorithms = xstrdup(arg);
3082+ break;
3083+
3084 case oBatchMode:
3085 intptr = &options->batch_mode;
3086 goto parse_flag;
3087@@ -1976,7 +2023,13 @@ initialize_options(Options * options)
3088 options->pubkey_authentication = -1;
3089 options->challenge_response_authentication = -1;
3090 options->gss_authentication = -1;
3091+ options->gss_keyex = -1;
3092 options->gss_deleg_creds = -1;
3093+ options->gss_trust_dns = -1;
3094+ options->gss_renewal_rekey = -1;
3095+ options->gss_client_identity = NULL;
3096+ options->gss_server_identity = NULL;
3097+ options->gss_kex_algorithms = NULL;
3098 options->password_authentication = -1;
3099 options->kbd_interactive_authentication = -1;
3100 options->kbd_interactive_devices = NULL;
3101@@ -2125,8 +2178,18 @@ fill_default_options(Options * options)
3102 options->challenge_response_authentication = 1;
3103 if (options->gss_authentication == -1)
3104 options->gss_authentication = 0;
3105+ if (options->gss_keyex == -1)
3106+ options->gss_keyex = 0;
3107 if (options->gss_deleg_creds == -1)
3108 options->gss_deleg_creds = 0;
3109+ if (options->gss_trust_dns == -1)
3110+ options->gss_trust_dns = 0;
3111+ if (options->gss_renewal_rekey == -1)
3112+ options->gss_renewal_rekey = 0;
3113+#ifdef GSSAPI
3114+ if (options->gss_kex_algorithms == NULL)
3115+ options->gss_kex_algorithms = strdup(GSS_KEX_DEFAULT_KEX);
3116+#endif
3117 if (options->password_authentication == -1)
3118 options->password_authentication = 1;
3119 if (options->kbd_interactive_authentication == -1)
3120@@ -2776,7 +2839,14 @@ dump_client_config(Options *o, const char *host)
3121 dump_cfg_fmtint(oGatewayPorts, o->fwd_opts.gateway_ports);
3122 #ifdef GSSAPI
3123 dump_cfg_fmtint(oGssAuthentication, o->gss_authentication);
3124+ dump_cfg_fmtint(oGssKeyEx, o->gss_keyex);
3125 dump_cfg_fmtint(oGssDelegateCreds, o->gss_deleg_creds);
3126+ dump_cfg_fmtint(oGssTrustDns, o->gss_trust_dns);
3127+ dump_cfg_fmtint(oGssRenewalRekey, o->gss_renewal_rekey);
3128+ dump_cfg_string(oGssClientIdentity, o->gss_client_identity);
3129+ dump_cfg_string(oGssServerIdentity, o->gss_server_identity);
3130+ dump_cfg_string(oGssKexAlgorithms, o->gss_kex_algorithms ?
3131+ o->gss_kex_algorithms : GSS_KEX_DEFAULT_KEX);
3132 #endif /* GSSAPI */
3133 dump_cfg_fmtint(oHashKnownHosts, o->hash_known_hosts);
3134 dump_cfg_fmtint(oHostbasedAuthentication, o->hostbased_authentication);
3135diff --git a/readconf.h b/readconf.h
3136index d6a15550d..3803eeddf 100644
3137--- a/readconf.h
3138+++ b/readconf.h
3139@@ -41,7 +41,13 @@ typedef struct {
3140 int challenge_response_authentication;
3141 /* Try S/Key or TIS, authentication. */
3142 int gss_authentication; /* Try GSS authentication */
3143+ int gss_keyex; /* Try GSS key exchange */
3144 int gss_deleg_creds; /* Delegate GSS credentials */
3145+ int gss_trust_dns; /* Trust DNS for GSS canonicalization */
3146+ int gss_renewal_rekey; /* Credential renewal forces rekey */
3147+ char *gss_client_identity; /* Principal to initiate GSSAPI with */
3148+ char *gss_server_identity; /* GSSAPI target principal */
3149+ char *gss_kex_algorithms; /* GSSAPI kex methods to be offered by client. */
3150 int password_authentication; /* Try password
3151 * authentication. */
3152 int kbd_interactive_authentication; /* Try keyboard-interactive auth. */
3153diff --git a/servconf.c b/servconf.c
3154index f08e37477..ded8f4a87 100644
3155--- a/servconf.c
3156+++ b/servconf.c
3157@@ -70,6 +70,7 @@
3158 #include "auth.h"
3159 #include "myproposal.h"
3160 #include "digest.h"
3161+#include "ssh-gss.h"
3162
3163 static void add_listen_addr(ServerOptions *, const char *,
3164 const char *, int);
3165@@ -134,8 +135,11 @@ initialize_server_options(ServerOptions *options)
3166 options->kerberos_ticket_cleanup = -1;
3167 options->kerberos_get_afs_token = -1;
3168 options->gss_authentication=-1;
3169+ options->gss_keyex = -1;
3170 options->gss_cleanup_creds = -1;
3171 options->gss_strict_acceptor = -1;
3172+ options->gss_store_rekey = -1;
3173+ options->gss_kex_algorithms = NULL;
3174 options->password_authentication = -1;
3175 options->kbd_interactive_authentication = -1;
3176 options->challenge_response_authentication = -1;
3177@@ -376,10 +380,18 @@ fill_default_server_options(ServerOptions *options)
3178 options->kerberos_get_afs_token = 0;
3179 if (options->gss_authentication == -1)
3180 options->gss_authentication = 0;
3181+ if (options->gss_keyex == -1)
3182+ options->gss_keyex = 0;
3183 if (options->gss_cleanup_creds == -1)
3184 options->gss_cleanup_creds = 1;
3185 if (options->gss_strict_acceptor == -1)
3186 options->gss_strict_acceptor = 1;
3187+ if (options->gss_store_rekey == -1)
3188+ options->gss_store_rekey = 0;
3189+#ifdef GSSAPI
3190+ if (options->gss_kex_algorithms == NULL)
3191+ options->gss_kex_algorithms = strdup(GSS_KEX_DEFAULT_KEX);
3192+#endif
3193 if (options->password_authentication == -1)
3194 options->password_authentication = 1;
3195 if (options->kbd_interactive_authentication == -1)
3196@@ -523,6 +535,7 @@ typedef enum {
3197 sHostKeyAlgorithms,
3198 sClientAliveInterval, sClientAliveCountMax, sAuthorizedKeysFile,
3199 sGssAuthentication, sGssCleanupCreds, sGssStrictAcceptor,
3200+ sGssKeyEx, sGssKexAlgorithms, sGssStoreRekey,
3201 sAcceptEnv, sSetEnv, sPermitTunnel,
3202 sMatch, sPermitOpen, sPermitListen, sForceCommand, sChrootDirectory,
3203 sUsePrivilegeSeparation, sAllowAgentForwarding,
3204@@ -600,12 +613,22 @@ static struct {
3205 #ifdef GSSAPI
3206 { "gssapiauthentication", sGssAuthentication, SSHCFG_ALL },
3207 { "gssapicleanupcredentials", sGssCleanupCreds, SSHCFG_GLOBAL },
3208+ { "gssapicleanupcreds", sGssCleanupCreds, SSHCFG_GLOBAL },
3209 { "gssapistrictacceptorcheck", sGssStrictAcceptor, SSHCFG_GLOBAL },
3210+ { "gssapikeyexchange", sGssKeyEx, SSHCFG_GLOBAL },
3211+ { "gssapistorecredentialsonrekey", sGssStoreRekey, SSHCFG_GLOBAL },
3212+ { "gssapikexalgorithms", sGssKexAlgorithms, SSHCFG_GLOBAL },
3213 #else
3214 { "gssapiauthentication", sUnsupported, SSHCFG_ALL },
3215 { "gssapicleanupcredentials", sUnsupported, SSHCFG_GLOBAL },
3216+ { "gssapicleanupcreds", sUnsupported, SSHCFG_GLOBAL },
3217 { "gssapistrictacceptorcheck", sUnsupported, SSHCFG_GLOBAL },
3218+ { "gssapikeyexchange", sUnsupported, SSHCFG_GLOBAL },
3219+ { "gssapistorecredentialsonrekey", sUnsupported, SSHCFG_GLOBAL },
3220+ { "gssapikexalgorithms", sUnsupported, SSHCFG_GLOBAL },
3221 #endif
3222+ { "gssusesessionccache", sUnsupported, SSHCFG_GLOBAL },
3223+ { "gssapiusesessioncredcache", sUnsupported, SSHCFG_GLOBAL },
3224 { "passwordauthentication", sPasswordAuthentication, SSHCFG_ALL },
3225 { "kbdinteractiveauthentication", sKbdInteractiveAuthentication, SSHCFG_ALL },
3226 { "challengeresponseauthentication", sChallengeResponseAuthentication, SSHCFG_GLOBAL },
3227@@ -1557,6 +1580,10 @@ process_server_config_line_depth(ServerOptions *options, char *line,
3228 intptr = &options->gss_authentication;
3229 goto parse_flag;
3230
3231+ case sGssKeyEx:
3232+ intptr = &options->gss_keyex;
3233+ goto parse_flag;
3234+
3235 case sGssCleanupCreds:
3236 intptr = &options->gss_cleanup_creds;
3237 goto parse_flag;
3238@@ -1565,6 +1592,22 @@ process_server_config_line_depth(ServerOptions *options, char *line,
3239 intptr = &options->gss_strict_acceptor;
3240 goto parse_flag;
3241
3242+ case sGssStoreRekey:
3243+ intptr = &options->gss_store_rekey;
3244+ goto parse_flag;
3245+
3246+ case sGssKexAlgorithms:
3247+ arg = strdelim(&cp);
3248+ if (!arg || *arg == '\0')
3249+ fatal("%.200s line %d: Missing argument.",
3250+ filename, linenum);
3251+ if (!kex_gss_names_valid(arg))
3252+ fatal("%.200s line %d: Bad GSSAPI KexAlgorithms '%s'.",
3253+ filename, linenum, arg ? arg : "<NONE>");
3254+ if (*activep && options->gss_kex_algorithms == NULL)
3255+ options->gss_kex_algorithms = xstrdup(arg);
3256+ break;
3257+
3258 case sPasswordAuthentication:
3259 intptr = &options->password_authentication;
3260 goto parse_flag;
3261@@ -2808,6 +2851,10 @@ dump_config(ServerOptions *o)
3262 #ifdef GSSAPI
3263 dump_cfg_fmtint(sGssAuthentication, o->gss_authentication);
3264 dump_cfg_fmtint(sGssCleanupCreds, o->gss_cleanup_creds);
3265+ dump_cfg_fmtint(sGssKeyEx, o->gss_keyex);
3266+ dump_cfg_fmtint(sGssStrictAcceptor, o->gss_strict_acceptor);
3267+ dump_cfg_fmtint(sGssStoreRekey, o->gss_store_rekey);
3268+ dump_cfg_string(sGssKexAlgorithms, o->gss_kex_algorithms);
3269 #endif
3270 dump_cfg_fmtint(sPasswordAuthentication, o->password_authentication);
3271 dump_cfg_fmtint(sKbdInteractiveAuthentication,
3272diff --git a/servconf.h b/servconf.h
3273index 1df8f3db8..f10908e5b 100644
3274--- a/servconf.h
3275+++ b/servconf.h
3276@@ -138,8 +138,11 @@ typedef struct {
3277 int kerberos_get_afs_token; /* If true, try to get AFS token if
3278 * authenticated with Kerberos. */
3279 int gss_authentication; /* If true, permit GSSAPI authentication */
3280+ int gss_keyex; /* If true, permit GSSAPI key exchange */
3281 int gss_cleanup_creds; /* If true, destroy cred cache on logout */
3282 int gss_strict_acceptor; /* If true, restrict the GSSAPI acceptor name */
3283+ int gss_store_rekey;
3284+ char *gss_kex_algorithms; /* GSSAPI kex methods to be offered by client. */
3285 int password_authentication; /* If true, permit password
3286 * authentication. */
3287 int kbd_interactive_authentication; /* If true, permit */
3288diff --git a/session.c b/session.c
3289index 27ca8a104..857f17b3c 100644
3290--- a/session.c
3291+++ b/session.c
3292@@ -2685,13 +2685,19 @@ do_cleanup(struct ssh *ssh, Authctxt *authctxt)
3293
3294 #ifdef KRB5
3295 if (options.kerberos_ticket_cleanup &&
3296- authctxt->krb5_ctx)
3297+ authctxt->krb5_ctx) {
3298+ temporarily_use_uid(authctxt->pw);
3299 krb5_cleanup_proc(authctxt);
3300+ restore_uid();
3301+ }
3302 #endif
3303
3304 #ifdef GSSAPI
3305- if (options.gss_cleanup_creds)
3306+ if (options.gss_cleanup_creds) {
3307+ temporarily_use_uid(authctxt->pw);
3308 ssh_gssapi_cleanup_creds();
3309+ restore_uid();
3310+ }
3311 #endif
3312
3313 /* remove agent socket */
3314diff --git a/ssh-gss.h b/ssh-gss.h
3315index 36180d07a..50d80bbca 100644
3316--- a/ssh-gss.h
3317+++ b/ssh-gss.h
3318@@ -1,6 +1,6 @@
3319 /* $OpenBSD: ssh-gss.h,v 1.14 2018/07/10 09:13:30 djm Exp $ */
3320 /*
3321- * Copyright (c) 2001-2003 Simon Wilkinson. All rights reserved.
3322+ * Copyright (c) 2001-2009 Simon Wilkinson. All rights reserved.
3323 *
3324 * Redistribution and use in source and binary forms, with or without
3325 * modification, are permitted provided that the following conditions
3326@@ -61,10 +61,34 @@
3327
3328 #define SSH_GSS_OIDTYPE 0x06
3329
3330+#define SSH2_MSG_KEXGSS_INIT 30
3331+#define SSH2_MSG_KEXGSS_CONTINUE 31
3332+#define SSH2_MSG_KEXGSS_COMPLETE 32
3333+#define SSH2_MSG_KEXGSS_HOSTKEY 33
3334+#define SSH2_MSG_KEXGSS_ERROR 34
3335+#define SSH2_MSG_KEXGSS_GROUPREQ 40
3336+#define SSH2_MSG_KEXGSS_GROUP 41
3337+#define KEX_GSS_GRP1_SHA1_ID "gss-group1-sha1-"
3338+#define KEX_GSS_GRP14_SHA1_ID "gss-group14-sha1-"
3339+#define KEX_GSS_GRP14_SHA256_ID "gss-group14-sha256-"
3340+#define KEX_GSS_GRP16_SHA512_ID "gss-group16-sha512-"
3341+#define KEX_GSS_GEX_SHA1_ID "gss-gex-sha1-"
3342+#define KEX_GSS_NISTP256_SHA256_ID "gss-nistp256-sha256-"
3343+#define KEX_GSS_C25519_SHA256_ID "gss-curve25519-sha256-"
3344+
3345+#define GSS_KEX_DEFAULT_KEX \
3346+ KEX_GSS_GRP14_SHA256_ID "," \
3347+ KEX_GSS_GRP16_SHA512_ID "," \
3348+ KEX_GSS_NISTP256_SHA256_ID "," \
3349+ KEX_GSS_C25519_SHA256_ID "," \
3350+ KEX_GSS_GRP14_SHA1_ID "," \
3351+ KEX_GSS_GEX_SHA1_ID
3352+
3353 typedef struct {
3354 char *filename;
3355 char *envvar;
3356 char *envval;
3357+ struct passwd *owner;
3358 void *data;
3359 } ssh_gssapi_ccache;
3360
3361@@ -72,8 +96,11 @@ typedef struct {
3362 gss_buffer_desc displayname;
3363 gss_buffer_desc exportedname;
3364 gss_cred_id_t creds;
3365+ gss_name_t name;
3366 struct ssh_gssapi_mech_struct *mech;
3367 ssh_gssapi_ccache store;
3368+ int used;
3369+ int updated;
3370 } ssh_gssapi_client;
3371
3372 typedef struct ssh_gssapi_mech_struct {
3373@@ -84,6 +111,7 @@ typedef struct ssh_gssapi_mech_struct {
3374 int (*userok) (ssh_gssapi_client *, char *);
3375 int (*localname) (ssh_gssapi_client *, char **);
3376 void (*storecreds) (ssh_gssapi_client *);
3377+ int (*updatecreds) (ssh_gssapi_ccache *, ssh_gssapi_client *);
3378 } ssh_gssapi_mech;
3379
3380 typedef struct {
3381@@ -94,10 +122,11 @@ typedef struct {
3382 gss_OID oid; /* client */
3383 gss_cred_id_t creds; /* server */
3384 gss_name_t client; /* server */
3385- gss_cred_id_t client_creds; /* server */
3386+ gss_cred_id_t client_creds; /* both */
3387 } Gssctxt;
3388
3389 extern ssh_gssapi_mech *supported_mechs[];
3390+extern Gssctxt *gss_kex_context;
3391
3392 int ssh_gssapi_check_oid(Gssctxt *, void *, size_t);
3393 void ssh_gssapi_set_oid_data(Gssctxt *, void *, size_t);
3394@@ -109,6 +138,7 @@ OM_uint32 ssh_gssapi_test_oid_supported(OM_uint32 *, gss_OID, int *);
3395
3396 struct sshbuf;
3397 int ssh_gssapi_get_buffer_desc(struct sshbuf *, gss_buffer_desc *);
3398+int ssh_gssapi_sshpkt_get_buffer_desc(struct ssh *, gss_buffer_desc *);
3399
3400 OM_uint32 ssh_gssapi_import_name(Gssctxt *, const char *);
3401 OM_uint32 ssh_gssapi_init_ctx(Gssctxt *, int,
3402@@ -123,17 +153,33 @@ void ssh_gssapi_delete_ctx(Gssctxt **);
3403 OM_uint32 ssh_gssapi_sign(Gssctxt *, gss_buffer_t, gss_buffer_t);
3404 void ssh_gssapi_buildmic(struct sshbuf *, const char *,
3405 const char *, const char *);
3406-int ssh_gssapi_check_mechanism(Gssctxt **, gss_OID, const char *);
3407+int ssh_gssapi_check_mechanism(Gssctxt **, gss_OID, const char *, const char *);
3408+OM_uint32 ssh_gssapi_client_identity(Gssctxt *, const char *);
3409+int ssh_gssapi_credentials_updated(Gssctxt *);
3410
3411 /* In the server */
3412+typedef int ssh_gssapi_check_fn(Gssctxt **, gss_OID, const char *,
3413+ const char *);
3414+char *ssh_gssapi_client_mechanisms(const char *, const char *, const char *);
3415+char *ssh_gssapi_kex_mechs(gss_OID_set, ssh_gssapi_check_fn *, const char *,
3416+ const char *, const char *);
3417+gss_OID ssh_gssapi_id_kex(Gssctxt *, char *, int);
3418+int ssh_gssapi_server_check_mech(Gssctxt **,gss_OID, const char *,
3419+ const char *);
3420 OM_uint32 ssh_gssapi_server_ctx(Gssctxt **, gss_OID);
3421-int ssh_gssapi_userok(char *name);
3422+int ssh_gssapi_userok(char *name, struct passwd *, int kex);
3423 OM_uint32 ssh_gssapi_checkmic(Gssctxt *, gss_buffer_t, gss_buffer_t);
3424 void ssh_gssapi_do_child(char ***, u_int *);
3425 void ssh_gssapi_cleanup_creds(void);
3426 void ssh_gssapi_storecreds(void);
3427 const char *ssh_gssapi_displayname(void);
3428
3429+char *ssh_gssapi_server_mechanisms(void);
3430+int ssh_gssapi_oid_table_ok(void);
3431+
3432+int ssh_gssapi_update_creds(ssh_gssapi_ccache *store);
3433+void ssh_gssapi_rekey_creds(void);
3434+
3435 #endif /* GSSAPI */
3436
3437 #endif /* _SSH_GSS_H */
3438diff --git a/ssh.1 b/ssh.1
3439index 555317887..be8e964f0 100644
3440--- a/ssh.1
3441+++ b/ssh.1
3442@@ -506,7 +506,13 @@ For full details of the options listed below, and their possible values, see
3443 .It GatewayPorts
3444 .It GlobalKnownHostsFile
3445 .It GSSAPIAuthentication
3446+.It GSSAPIKeyExchange
3447+.It GSSAPIClientIdentity
3448 .It GSSAPIDelegateCredentials
3449+.It GSSAPIKexAlgorithms
3450+.It GSSAPIRenewalForcesRekey
3451+.It GSSAPIServerIdentity
3452+.It GSSAPITrustDns
3453 .It HashKnownHosts
3454 .It Host
3455 .It HostbasedAuthentication
3456@@ -582,6 +588,8 @@ flag),
3457 (supported message integrity codes),
3458 .Ar kex
3459 (key exchange algorithms),
3460+.Ar kex-gss
3461+(GSSAPI key exchange algorithms),
3462 .Ar key
3463 (key types),
3464 .Ar key-cert
3465diff --git a/ssh.c b/ssh.c
3466index f34ca0d71..bb98a7e2d 100644
3467--- a/ssh.c
3468+++ b/ssh.c
3469@@ -801,6 +801,8 @@ main(int ac, char **av)
3470 else if (strcmp(optarg, "kex") == 0 ||
3471 strcasecmp(optarg, "KexAlgorithms") == 0)
3472 cp = kex_alg_list('\n');
3473+ else if (strcmp(optarg, "kex-gss") == 0)
3474+ cp = kex_gss_alg_list('\n');
3475 else if (strcmp(optarg, "key") == 0)
3476 cp = sshkey_alg_list(0, 0, 0, '\n');
3477 else if (strcmp(optarg, "key-cert") == 0)
3478@@ -826,8 +828,8 @@ main(int ac, char **av)
3479 } else if (strcmp(optarg, "help") == 0) {
3480 cp = xstrdup(
3481 "cipher\ncipher-auth\ncompression\nkex\n"
3482- "key\nkey-cert\nkey-plain\nkey-sig\nmac\n"
3483- "protocol-version\nsig");
3484+ "kex-gss\nkey\nkey-cert\nkey-plain\n"
3485+ "key-sig\nmac\nprotocol-version\nsig");
3486 }
3487 if (cp == NULL)
3488 fatal("Unsupported query \"%s\"", optarg);
3489diff --git a/ssh_config b/ssh_config
3490index 842ea866c..52aae8692 100644
3491--- a/ssh_config
3492+++ b/ssh_config
3493@@ -24,6 +24,8 @@
3494 # HostbasedAuthentication no
3495 # GSSAPIAuthentication no
3496 # GSSAPIDelegateCredentials no
3497+# GSSAPIKeyExchange no
3498+# GSSAPITrustDNS no
3499 # BatchMode no
3500 # CheckHostIP yes
3501 # AddressFamily any
3502diff --git a/ssh_config.5 b/ssh_config.5
3503index 6be1f1aa2..bd86d000c 100644
3504--- a/ssh_config.5
3505+++ b/ssh_config.5
3506@@ -779,10 +779,67 @@ The default is
3507 Specifies whether user authentication based on GSSAPI is allowed.
3508 The default is
3509 .Cm no .
3510+.It Cm GSSAPIClientIdentity
3511+If set, specifies the GSSAPI client identity that ssh should use when
3512+connecting to the server. The default is unset, which means that the default
3513+identity will be used.
3514 .It Cm GSSAPIDelegateCredentials
3515 Forward (delegate) credentials to the server.
3516 The default is
3517 .Cm no .
3518+.It Cm GSSAPIKeyExchange
3519+Specifies whether key exchange based on GSSAPI may be used. When using
3520+GSSAPI key exchange the server need not have a host key.
3521+The default is
3522+.Dq no .
3523+.It Cm GSSAPIRenewalForcesRekey
3524+If set to
3525+.Dq yes
3526+then renewal of the client's GSSAPI credentials will force the rekeying of the
3527+ssh connection. With a compatible server, this will delegate the renewed
3528+credentials to a session on the server.
3529+.Pp
3530+Checks are made to ensure that credentials are only propagated when the new
3531+credentials match the old ones on the originating client and where the
3532+receiving server still has the old set in its cache.
3533+.Pp
3534+The default is
3535+.Dq no .
3536+.Pp
3537+For this to work
3538+.Cm GSSAPIKeyExchange
3539+needs to be enabled in the server and also used by the client.
3540+.It Cm GSSAPIServerIdentity
3541+If set, specifies the GSSAPI server identity that ssh should expect when
3542+connecting to the server. The default is unset, which means that the
3543+expected GSSAPI server identity will be determined from the target
3544+hostname.
3545+.It Cm GSSAPITrustDns
3546+Set to
3547+.Dq yes
3548+to indicate that the DNS is trusted to securely canonicalize
3549+the name of the host being connected to. If
3550+.Dq no ,
3551+the hostname entered on the
3552+command line will be passed untouched to the GSSAPI library.
3553+The default is
3554+.Dq no .
3555+.It Cm GSSAPIKexAlgorithms
3556+The list of key exchange algorithms that are offered for GSSAPI
3557+key exchange. Possible values are
3558+.Bd -literal -offset 3n
3559+gss-gex-sha1-,
3560+gss-group1-sha1-,
3561+gss-group14-sha1-,
3562+gss-group14-sha256-,
3563+gss-group16-sha512-,
3564+gss-nistp256-sha256-,
3565+gss-curve25519-sha256-
3566+.Ed
3567+.Pp
3568+The default is
3569+.Dq gss-group14-sha256-,gss-group16-sha512-,gss-nistp256-sha256-,gss-curve25519-sha256-,gss-gex-sha1-,gss-group14-sha1- .
3570+This option only applies to connections using GSSAPI.
3571 .It Cm HashKnownHosts
3572 Indicates that
3573 .Xr ssh 1
3574diff --git a/sshconnect2.c b/sshconnect2.c
3575index f64aae66a..c47fc31a6 100644
3576--- a/sshconnect2.c
3577+++ b/sshconnect2.c
3578@@ -80,8 +80,6 @@
3579 #endif
3580
3581 /* import */
3582-extern char *client_version_string;
3583-extern char *server_version_string;
3584 extern Options options;
3585
3586 /*
3587@@ -210,6 +208,11 @@ ssh_kex2(struct ssh *ssh, char *host, struct sockaddr *hostaddr, u_short port)
3588 char *s, *all_key;
3589 int r, use_known_hosts_order = 0;
3590
3591+#if defined(GSSAPI) && defined(WITH_OPENSSL)
3592+ char *orig = NULL, *gss = NULL;
3593+ char *gss_host = NULL;
3594+#endif
3595+
3596 xxx_host = host;
3597 xxx_hostaddr = hostaddr;
3598
3599@@ -253,6 +256,41 @@ ssh_kex2(struct ssh *ssh, char *host, struct sockaddr *hostaddr, u_short port)
3600 compat_pkalg_proposal(options.hostkeyalgorithms);
3601 }
3602
3603+#if defined(GSSAPI) && defined(WITH_OPENSSL)
3604+ if (options.gss_keyex) {
3605+ /* Add the GSSAPI mechanisms currently supported on this
3606+ * client to the key exchange algorithm proposal */
3607+ orig = myproposal[PROPOSAL_KEX_ALGS];
3608+
3609+ if (options.gss_server_identity) {
3610+ gss_host = xstrdup(options.gss_server_identity);
3611+ } else if (options.gss_trust_dns) {
3612+ gss_host = remote_hostname(ssh);
3613+ /* Fall back to specified host if we are using proxy command
3614+ * and can not use DNS on that socket */
3615+ if (strcmp(gss_host, "UNKNOWN") == 0) {
3616+ gss_host = xstrdup(host);
3617+ }
3618+ } else {
3619+ gss_host = xstrdup(host);
3620+ }
3621+
3622+ gss = ssh_gssapi_client_mechanisms(gss_host,
3623+ options.gss_client_identity, options.gss_kex_algorithms);
3624+ if (gss) {
3625+ debug("Offering GSSAPI proposal: %s", gss);
3626+ xasprintf(&myproposal[PROPOSAL_KEX_ALGS],
3627+ "%s,%s", gss, orig);
3628+
3629+ /* If we've got GSSAPI algorithms, then we also support the
3630+ * 'null' hostkey, as a last resort */
3631+ orig = myproposal[PROPOSAL_SERVER_HOST_KEY_ALGS];
3632+ xasprintf(&myproposal[PROPOSAL_SERVER_HOST_KEY_ALGS],
3633+ "%s,null", orig);
3634+ }
3635+ }
3636+#endif
3637+
3638 if (options.rekey_limit || options.rekey_interval)
3639 ssh_packet_set_rekey_limits(ssh, options.rekey_limit,
3640 options.rekey_interval);
3641@@ -271,16 +309,46 @@ ssh_kex2(struct ssh *ssh, char *host, struct sockaddr *hostaddr, u_short port)
3642 # ifdef OPENSSL_HAS_ECC
3643 ssh->kex->kex[KEX_ECDH_SHA2] = kex_gen_client;
3644 # endif
3645-#endif
3646+# ifdef GSSAPI
3647+ if (options.gss_keyex) {
3648+ ssh->kex->kex[KEX_GSS_GRP1_SHA1] = kexgss_client;
3649+ ssh->kex->kex[KEX_GSS_GRP14_SHA1] = kexgss_client;
3650+ ssh->kex->kex[KEX_GSS_GRP14_SHA256] = kexgss_client;
3651+ ssh->kex->kex[KEX_GSS_GRP16_SHA512] = kexgss_client;
3652+ ssh->kex->kex[KEX_GSS_GEX_SHA1] = kexgssgex_client;
3653+ ssh->kex->kex[KEX_GSS_NISTP256_SHA256] = kexgss_client;
3654+ ssh->kex->kex[KEX_GSS_C25519_SHA256] = kexgss_client;
3655+ }
3656+# endif
3657+#endif /* WITH_OPENSSL */
3658 ssh->kex->kex[KEX_C25519_SHA256] = kex_gen_client;
3659 ssh->kex->kex[KEX_KEM_SNTRUP4591761X25519_SHA512] = kex_gen_client;
3660 ssh->kex->verify_host_key=&verify_host_key_callback;
3661
3662+#if defined(GSSAPI) && defined(WITH_OPENSSL)
3663+ if (options.gss_keyex) {
3664+ ssh->kex->gss_deleg_creds = options.gss_deleg_creds;
3665+ ssh->kex->gss_trust_dns = options.gss_trust_dns;
3666+ ssh->kex->gss_client = options.gss_client_identity;
3667+ ssh->kex->gss_host = gss_host;
3668+ }
3669+#endif
3670+
3671 ssh_dispatch_run_fatal(ssh, DISPATCH_BLOCK, &ssh->kex->done);
3672
3673 /* remove ext-info from the KEX proposals for rekeying */
3674 myproposal[PROPOSAL_KEX_ALGS] =
3675 compat_kex_proposal(options.kex_algorithms);
3676+#if defined(GSSAPI) && defined(WITH_OPENSSL)
3677+ /* repair myproposal after it was crumpled by the */
3678+ /* ext-info removal above */
3679+ if (gss) {
3680+ orig = myproposal[PROPOSAL_KEX_ALGS];
3681+ xasprintf(&myproposal[PROPOSAL_KEX_ALGS],
3682+ "%s,%s", gss, orig);
3683+ free(gss);
3684+ }
3685+#endif
3686 if ((r = kex_prop2buf(ssh->kex->my, myproposal)) != 0)
3687 fatal("kex_prop2buf: %s", ssh_err(r));
3688
3689@@ -377,6 +445,7 @@ static int input_gssapi_response(int type, u_int32_t, struct ssh *);
3690 static int input_gssapi_token(int type, u_int32_t, struct ssh *);
3691 static int input_gssapi_error(int, u_int32_t, struct ssh *);
3692 static int input_gssapi_errtok(int, u_int32_t, struct ssh *);
3693+static int userauth_gsskeyex(struct ssh *);
3694 #endif
3695
3696 void userauth(struct ssh *, char *);
3697@@ -393,6 +462,11 @@ static char *authmethods_get(void);
3698
3699 Authmethod authmethods[] = {
3700 #ifdef GSSAPI
3701+ {"gssapi-keyex",
3702+ userauth_gsskeyex,
3703+ NULL,
3704+ &options.gss_keyex,
3705+ NULL},
3706 {"gssapi-with-mic",
3707 userauth_gssapi,
3708 userauth_gssapi_cleanup,
3709@@ -763,12 +837,31 @@ userauth_gssapi(struct ssh *ssh)
3710 OM_uint32 min;
3711 int r, ok = 0;
3712 gss_OID mech = NULL;
3713+ char *gss_host;
3714+
3715+ if (options.gss_server_identity) {
3716+ gss_host = xstrdup(options.gss_server_identity);
3717+ } else if (options.gss_trust_dns) {
3718+ gss_host = remote_hostname(ssh);
3719+ /* Fall back to specified host if we are using proxy command
3720+ * and can not use DNS on that socket */
3721+ if (strcmp(gss_host, "UNKNOWN") == 0) {
3722+ gss_host = authctxt->host;
3723+ }
3724+ } else {
3725+ gss_host = xstrdup(authctxt->host);
3726+ }
3727
3728 /* Try one GSSAPI method at a time, rather than sending them all at
3729 * once. */
3730
3731 if (authctxt->gss_supported_mechs == NULL)
3732- gss_indicate_mechs(&min, &authctxt->gss_supported_mechs);
3733+ if (GSS_ERROR(gss_indicate_mechs(&min,
3734+ &authctxt->gss_supported_mechs))) {
3735+ authctxt->gss_supported_mechs = NULL;
3736+ free(gss_host);
3737+ return 0;
3738+ }
3739
3740 /* Check to see whether the mechanism is usable before we offer it */
3741 while (authctxt->mech_tried < authctxt->gss_supported_mechs->count &&
3742@@ -777,13 +870,15 @@ userauth_gssapi(struct ssh *ssh)
3743 elements[authctxt->mech_tried];
3744 /* My DER encoding requires length<128 */
3745 if (mech->length < 128 && ssh_gssapi_check_mechanism(&gssctxt,
3746- mech, authctxt->host)) {
3747+ mech, gss_host, options.gss_client_identity)) {
3748 ok = 1; /* Mechanism works */
3749 } else {
3750 authctxt->mech_tried++;
3751 }
3752 }
3753
3754+ free(gss_host);
3755+
3756 if (!ok || mech == NULL)
3757 return 0;
3758
3759@@ -1023,6 +1118,55 @@ input_gssapi_error(int type, u_int32_t plen, struct ssh *ssh)
3760 free(lang);
3761 return r;
3762 }
3763+
3764+int
3765+userauth_gsskeyex(struct ssh *ssh)
3766+{
3767+ struct sshbuf *b = NULL;
3768+ Authctxt *authctxt = ssh->authctxt;
3769+ gss_buffer_desc gssbuf;
3770+ gss_buffer_desc mic = GSS_C_EMPTY_BUFFER;
3771+ OM_uint32 ms;
3772+ int r;
3773+
3774+ static int attempt = 0;
3775+ if (attempt++ >= 1)
3776+ return (0);
3777+
3778+ if (gss_kex_context == NULL) {
3779+ debug("No valid Key exchange context");
3780+ return (0);
3781+ }
3782+
3783+ if ((b = sshbuf_new()) == NULL)
3784+ fatal("%s: sshbuf_new failed", __func__);
3785+
3786+ ssh_gssapi_buildmic(b, authctxt->server_user, authctxt->service,
3787+ "gssapi-keyex");
3788+
3789+ if ((gssbuf.value = sshbuf_mutable_ptr(b)) == NULL)
3790+ fatal("%s: sshbuf_mutable_ptr failed", __func__);
3791+ gssbuf.length = sshbuf_len(b);
3792+
3793+ if (GSS_ERROR(ssh_gssapi_sign(gss_kex_context, &gssbuf, &mic))) {
3794+ sshbuf_free(b);
3795+ return (0);
3796+ }
3797+
3798+ if ((r = sshpkt_start(ssh, SSH2_MSG_USERAUTH_REQUEST)) != 0 ||
3799+ (r = sshpkt_put_cstring(ssh, authctxt->server_user)) != 0 ||
3800+ (r = sshpkt_put_cstring(ssh, authctxt->service)) != 0 ||
3801+ (r = sshpkt_put_cstring(ssh, authctxt->method->name)) != 0 ||
3802+ (r = sshpkt_put_string(ssh, mic.value, mic.length)) != 0 ||
3803+ (r = sshpkt_send(ssh)) != 0)
3804+ fatal("%s: %s", __func__, ssh_err(r));
3805+
3806+ sshbuf_free(b);
3807+ gss_release_buffer(&ms, &mic);
3808+
3809+ return (1);
3810+}
3811+
3812 #endif /* GSSAPI */
3813
3814 static int
3815diff --git a/sshd.c b/sshd.c
3816index 8aa7f3df6..8c5d5822e 100644
3817--- a/sshd.c
3818+++ b/sshd.c
3819@@ -816,8 +816,8 @@ notify_hostkeys(struct ssh *ssh)
3820 }
3821 debug3("%s: sent %u hostkeys", __func__, nkeys);
3822 if (nkeys == 0)
3823- fatal("%s: no hostkeys", __func__);
3824- if ((r = sshpkt_send(ssh)) != 0)
3825+ debug3("%s: no hostkeys", __func__);
3826+ else if ((r = sshpkt_send(ssh)) != 0)
3827 sshpkt_fatal(ssh, r, "%s: send", __func__);
3828 sshbuf_free(buf);
3829 }
3830@@ -1901,7 +1901,8 @@ main(int ac, char **av)
3831 free(fp);
3832 }
3833 accumulate_host_timing_secret(cfg, NULL);
3834- if (!sensitive_data.have_ssh2_key) {
3835+ /* The GSSAPI key exchange can run without a host key */
3836+ if (!sensitive_data.have_ssh2_key && !options.gss_keyex) {
3837 logit("sshd: no hostkeys available -- exiting.");
3838 exit(1);
3839 }
3840@@ -2393,6 +2394,48 @@ do_ssh2_kex(struct ssh *ssh)
3841 myproposal[PROPOSAL_SERVER_HOST_KEY_ALGS] = compat_pkalg_proposal(
3842 list_hostkey_types());
3843
3844+#if defined(GSSAPI) && defined(WITH_OPENSSL)
3845+ {
3846+ char *orig;
3847+ char *gss = NULL;
3848+ char *newstr = NULL;
3849+ orig = myproposal[PROPOSAL_KEX_ALGS];
3850+
3851+ /*
3852+ * If we don't have a host key, then there's no point advertising
3853+ * the other key exchange algorithms
3854+ */
3855+
3856+ if (strlen(myproposal[PROPOSAL_SERVER_HOST_KEY_ALGS]) == 0)
3857+ orig = NULL;
3858+
3859+ if (options.gss_keyex)
3860+ gss = ssh_gssapi_server_mechanisms();
3861+ else
3862+ gss = NULL;
3863+
3864+ if (gss && orig)
3865+ xasprintf(&newstr, "%s,%s", gss, orig);
3866+ else if (gss)
3867+ newstr = gss;
3868+ else if (orig)
3869+ newstr = orig;
3870+
3871+ /*
3872+ * If we've got GSSAPI mechanisms, then we've got the 'null' host
3873+ * key alg, but we can't tell people about it unless its the only
3874+ * host key algorithm we support
3875+ */
3876+ if (gss && (strlen(myproposal[PROPOSAL_SERVER_HOST_KEY_ALGS])) == 0)
3877+ myproposal[PROPOSAL_SERVER_HOST_KEY_ALGS] = "null";
3878+
3879+ if (newstr)
3880+ myproposal[PROPOSAL_KEX_ALGS] = newstr;
3881+ else
3882+ fatal("No supported key exchange algorithms");
3883+ }
3884+#endif
3885+
3886 /* start key exchange */
3887 if ((r = kex_setup(ssh, myproposal)) != 0)
3888 fatal("kex_setup: %s", ssh_err(r));
3889@@ -2408,7 +2451,18 @@ do_ssh2_kex(struct ssh *ssh)
3890 # ifdef OPENSSL_HAS_ECC
3891 kex->kex[KEX_ECDH_SHA2] = kex_gen_server;
3892 # endif
3893-#endif
3894+# ifdef GSSAPI
3895+ if (options.gss_keyex) {
3896+ kex->kex[KEX_GSS_GRP1_SHA1] = kexgss_server;
3897+ kex->kex[KEX_GSS_GRP14_SHA1] = kexgss_server;
3898+ kex->kex[KEX_GSS_GRP14_SHA256] = kexgss_server;
3899+ kex->kex[KEX_GSS_GRP16_SHA512] = kexgss_server;
3900+ kex->kex[KEX_GSS_GEX_SHA1] = kexgssgex_server;
3901+ kex->kex[KEX_GSS_NISTP256_SHA256] = kexgss_server;
3902+ kex->kex[KEX_GSS_C25519_SHA256] = kexgss_server;
3903+ }
3904+# endif
3905+#endif /* WITH_OPENSSL */
3906 kex->kex[KEX_C25519_SHA256] = kex_gen_server;
3907 kex->kex[KEX_KEM_SNTRUP4591761X25519_SHA512] = kex_gen_server;
3908 kex->load_host_public_key=&get_hostkey_public_by_type;
3909diff --git a/sshd_config b/sshd_config
3910index 19b7c91a1..2c48105f8 100644
3911--- a/sshd_config
3912+++ b/sshd_config
3913@@ -69,6 +69,8 @@ AuthorizedKeysFile .ssh/authorized_keys
3914 # GSSAPI options
3915 #GSSAPIAuthentication no
3916 #GSSAPICleanupCredentials yes
3917+#GSSAPIStrictAcceptorCheck yes
3918+#GSSAPIKeyExchange no
3919
3920 # Set this to 'yes' to enable PAM authentication, account processing,
3921 # and session processing. If this is enabled, PAM authentication will
3922diff --git a/sshd_config.5 b/sshd_config.5
3923index 6fa421cae..eabbe9e73 100644
3924--- a/sshd_config.5
3925+++ b/sshd_config.5
3926@@ -644,6 +644,11 @@ Specifies whether to automatically destroy the user's credentials cache
3927 on logout.
3928 The default is
3929 .Cm yes .
3930+.It Cm GSSAPIKeyExchange
3931+Specifies whether key exchange based on GSSAPI is allowed. GSSAPI key exchange
3932+doesn't rely on ssh keys to verify host identity.
3933+The default is
3934+.Cm no .
3935 .It Cm GSSAPIStrictAcceptorCheck
3936 Determines whether to be strict about the identity of the GSSAPI acceptor
3937 a client authenticates against.
3938@@ -658,6 +663,31 @@ machine's default store.
3939 This facility is provided to assist with operation on multi homed machines.
3940 The default is
3941 .Cm yes .
3942+.It Cm GSSAPIStoreCredentialsOnRekey
3943+Controls whether the user's GSSAPI credentials should be updated following a
3944+successful connection rekeying. This option can be used to accepted renewed
3945+or updated credentials from a compatible client. The default is
3946+.Dq no .
3947+.Pp
3948+For this to work
3949+.Cm GSSAPIKeyExchange
3950+needs to be enabled in the server and also used by the client.
3951+.It Cm GSSAPIKexAlgorithms
3952+The list of key exchange algorithms that are accepted by GSSAPI
3953+key exchange. Possible values are
3954+.Bd -literal -offset 3n
3955+gss-gex-sha1-,
3956+gss-group1-sha1-,
3957+gss-group14-sha1-,
3958+gss-group14-sha256-,
3959+gss-group16-sha512-,
3960+gss-nistp256-sha256-,
3961+gss-curve25519-sha256-
3962+.Ed
3963+.Pp
3964+The default is
3965+.Dq gss-group14-sha256-,gss-group16-sha512-,gss-nistp256-sha256-,gss-curve25519-sha256-,gss-gex-sha1-,gss-group14-sha1- .
3966+This option only applies to connections using GSSAPI.
3967 .It Cm HostbasedAcceptedKeyTypes
3968 Specifies the key types that will be accepted for hostbased authentication
3969 as a list of comma-separated patterns.
3970diff --git a/sshkey.c b/sshkey.c
3971index ac451f1a8..b88282e19 100644
3972--- a/sshkey.c
3973+++ b/sshkey.c
3974@@ -156,6 +156,7 @@ static const struct keytype keytypes[] = {
3975 KEY_ECDSA_SK_CERT, NID_X9_62_prime256v1, 1, 0 },
3976 # endif /* OPENSSL_HAS_ECC */
3977 #endif /* WITH_OPENSSL */
3978+ { "null", "null", NULL, KEY_NULL, 0, 0, 0 },
3979 { NULL, NULL, NULL, -1, -1, 0, 0 }
3980 };
3981
3982@@ -257,7 +258,7 @@ sshkey_alg_list(int certs_only, int plain_only, int include_sigonly, char sep)
3983 const struct keytype *kt;
3984
3985 for (kt = keytypes; kt->type != -1; kt++) {
3986- if (kt->name == NULL)
3987+ if (kt->name == NULL || kt->type == KEY_NULL)
3988 continue;
3989 if (!include_sigonly && kt->sigonly)
3990 continue;
3991diff --git a/sshkey.h b/sshkey.h
3992index 2d8b62497..dc1c10597 100644
3993--- a/sshkey.h
3994+++ b/sshkey.h
3995@@ -69,6 +69,7 @@ enum sshkey_types {
3996 KEY_ECDSA_SK_CERT,
3997 KEY_ED25519_SK,
3998 KEY_ED25519_SK_CERT,
3999+ KEY_NULL,
4000 KEY_UNSPEC
4001 };
4002
diff --git a/debian/patches/keepalive-extensions.patch b/debian/patches/keepalive-extensions.patch
new file mode 100644
index 000000000..c9bc83267
--- /dev/null
+++ b/debian/patches/keepalive-extensions.patch
@@ -0,0 +1,135 @@
1From 164d1c9f11309d38273ac64e30eda2baa3733f78 Mon Sep 17 00:00:00 2001
2From: Richard Kettlewell <rjk@greenend.org.uk>
3Date: Sun, 9 Feb 2014 16:09:52 +0000
4Subject: Various keepalive extensions
5
6Add compatibility aliases for ProtocolKeepAlives and SetupTimeOut, supported
7in previous versions of Debian's OpenSSH package but since superseded by
8ServerAliveInterval. (We're probably stuck with this bit for
9compatibility.)
10
11In batch mode, default ServerAliveInterval to five minutes.
12
13Adjust documentation to match and to give some more advice on use of
14keepalives.
15
16Author: Ian Jackson <ian@chiark.greenend.org.uk>
17Author: Matthew Vernon <matthew@debian.org>
18Author: Colin Watson <cjwatson@debian.org>
19Last-Update: 2020-02-21
20
21Patch-Name: keepalive-extensions.patch
22---
23 readconf.c | 14 ++++++++++++--
24 ssh_config.5 | 21 +++++++++++++++++++--
25 sshd_config.5 | 3 +++
26 3 files changed, 34 insertions(+), 4 deletions(-)
27
28diff --git a/readconf.c b/readconf.c
29index b069333fa..3d0a812b3 100644
30--- a/readconf.c
31+++ b/readconf.c
32@@ -176,6 +176,7 @@ typedef enum {
33 oFingerprintHash, oUpdateHostkeys, oHostbasedKeyTypes,
34 oPubkeyAcceptedKeyTypes, oCASignatureAlgorithms, oProxyJump,
35 oSecurityKeyProvider,
36+ oProtocolKeepAlives, oSetupTimeOut,
37 oIgnore, oIgnoredUnknownOption, oDeprecated, oUnsupported
38 } OpCodes;
39
40@@ -326,6 +327,8 @@ static struct {
41 { "ignoreunknown", oIgnoreUnknown },
42 { "proxyjump", oProxyJump },
43 { "securitykeyprovider", oSecurityKeyProvider },
44+ { "protocolkeepalives", oProtocolKeepAlives },
45+ { "setuptimeout", oSetupTimeOut },
46
47 { NULL, oBadOption }
48 };
49@@ -1534,6 +1537,8 @@ parse_keytypes:
50 goto parse_flag;
51
52 case oServerAliveInterval:
53+ case oProtocolKeepAlives: /* Debian-specific compatibility alias */
54+ case oSetupTimeOut: /* Debian-specific compatibility alias */
55 intptr = &options->server_alive_interval;
56 goto parse_time;
57
58@@ -2266,8 +2271,13 @@ fill_default_options(Options * options)
59 options->rekey_interval = 0;
60 if (options->verify_host_key_dns == -1)
61 options->verify_host_key_dns = 0;
62- if (options->server_alive_interval == -1)
63- options->server_alive_interval = 0;
64+ if (options->server_alive_interval == -1) {
65+ /* in batch mode, default is 5mins */
66+ if (options->batch_mode == 1)
67+ options->server_alive_interval = 300;
68+ else
69+ options->server_alive_interval = 0;
70+ }
71 if (options->server_alive_count_max == -1)
72 options->server_alive_count_max = 3;
73 if (options->control_master == -1)
74diff --git a/ssh_config.5 b/ssh_config.5
75index bd86d000c..3ceb800ba 100644
76--- a/ssh_config.5
77+++ b/ssh_config.5
78@@ -275,9 +275,13 @@ If set to
79 .Cm yes ,
80 user interaction such as password prompts and host key confirmation requests
81 will be disabled.
82+In addition, the
83+.Cm ServerAliveInterval
84+option will be set to 300 seconds by default (Debian-specific).
85 This option is useful in scripts and other batch jobs where no user
86 is present to interact with
87-.Xr ssh 1 .
88+.Xr ssh 1 ,
89+and where it is desirable to detect a broken network swiftly.
90 The argument must be
91 .Cm yes
92 or
93@@ -1624,7 +1628,14 @@ from the server,
94 will send a message through the encrypted
95 channel to request a response from the server.
96 The default
97-is 0, indicating that these messages will not be sent to the server.
98+is 0, indicating that these messages will not be sent to the server,
99+or 300 if the
100+.Cm BatchMode
101+option is set (Debian-specific).
102+.Cm ProtocolKeepAlives
103+and
104+.Cm SetupTimeOut
105+are Debian-specific compatibility aliases for this option.
106 .It Cm SetEnv
107 Directly specify one or more environment variables and their contents to
108 be sent to the server.
109@@ -1704,6 +1715,12 @@ Specifies whether the system should send TCP keepalive messages to the
110 other side.
111 If they are sent, death of the connection or crash of one
112 of the machines will be properly noticed.
113+This option only uses TCP keepalives (as opposed to using ssh level
114+keepalives), so takes a long time to notice when the connection dies.
115+As such, you probably want
116+the
117+.Cm ServerAliveInterval
118+option as well.
119 However, this means that
120 connections will die if the route is down temporarily, and some people
121 find it annoying.
122diff --git a/sshd_config.5 b/sshd_config.5
123index eabbe9e73..6457620bb 100644
124--- a/sshd_config.5
125+++ b/sshd_config.5
126@@ -1691,6 +1691,9 @@ This avoids infinitely hanging sessions.
127 .Pp
128 To disable TCP keepalive messages, the value should be set to
129 .Cm no .
130+.Pp
131+This option was formerly called
132+.Cm KeepAlive .
133 .It Cm TrustedUserCAKeys
134 Specifies a file containing public keys of certificate authorities that are
135 trusted to sign user certificates for authentication, or
diff --git a/debian/patches/mention-ssh-keygen-on-keychange.patch b/debian/patches/mention-ssh-keygen-on-keychange.patch
new file mode 100644
index 000000000..cb227f839
--- /dev/null
+++ b/debian/patches/mention-ssh-keygen-on-keychange.patch
@@ -0,0 +1,44 @@
1From c8da63c601b5d44fd233548385809c9c3a2fa0b8 Mon Sep 17 00:00:00 2001
2From: Scott Moser <smoser@ubuntu.com>
3Date: Sun, 9 Feb 2014 16:10:03 +0000
4Subject: Mention ssh-keygen in ssh fingerprint changed warning
5
6Author: Chris Lamb <lamby@debian.org>
7Bug: https://bugzilla.mindrot.org/show_bug.cgi?id=1843
8Bug-Ubuntu: https://bugs.launchpad.net/bugs/686607
9Last-Update: 2017-08-22
10
11Patch-Name: mention-ssh-keygen-on-keychange.patch
12---
13 sshconnect.c | 9 ++++++++-
14 1 file changed, 8 insertions(+), 1 deletion(-)
15
16diff --git a/sshconnect.c b/sshconnect.c
17index 5f8c81b84..3ae20b74e 100644
18--- a/sshconnect.c
19+++ b/sshconnect.c
20@@ -994,9 +994,13 @@ check_host_key(char *hostname, struct sockaddr *hostaddr, u_short port,
21 error("%s. This could either mean that", key_msg);
22 error("DNS SPOOFING is happening or the IP address for the host");
23 error("and its host key have changed at the same time.");
24- if (ip_status != HOST_NEW)
25+ if (ip_status != HOST_NEW) {
26 error("Offending key for IP in %s:%lu",
27 ip_found->file, ip_found->line);
28+ error(" remove with:");
29+ error(" ssh-keygen -f \"%s\" -R \"%s\"",
30+ ip_found->file, ip);
31+ }
32 }
33 /* The host key has changed. */
34 warn_changed_key(host_key);
35@@ -1005,6 +1009,9 @@ check_host_key(char *hostname, struct sockaddr *hostaddr, u_short port,
36 error("Offending %s key in %s:%lu",
37 sshkey_type(host_found->key),
38 host_found->file, host_found->line);
39+ error(" remove with:");
40+ error(" ssh-keygen -f \"%s\" -R \"%s\"",
41+ host_found->file, host);
42
43 /*
44 * If strict host key checking is in use, the user will have
diff --git a/debian/patches/no-openssl-version-status.patch b/debian/patches/no-openssl-version-status.patch
new file mode 100644
index 000000000..e383375c6
--- /dev/null
+++ b/debian/patches/no-openssl-version-status.patch
@@ -0,0 +1,62 @@
1From cf3ffd6a25d425bed33dd698f92e64953d9769eb Mon Sep 17 00:00:00 2001
2From: Kurt Roeckx <kurt@roeckx.be>
3Date: Sun, 9 Feb 2014 16:10:14 +0000
4Subject: Don't check the status field of the OpenSSL version
5
6There is no reason to check the version of OpenSSL (in Debian). If it's
7not compatible the soname will change. OpenSSH seems to want to do a
8check for the soname based on the version number, but wants to keep the
9status of the release the same. Remove that check on the status since
10it doesn't tell you anything about how compatible that version is.
11
12Author: Colin Watson <cjwatson@debian.org>
13Bug-Debian: https://bugs.debian.org/93581
14Bug-Debian: https://bugs.debian.org/664383
15Bug-Debian: https://bugs.debian.org/732940
16Forwarded: not-needed
17Last-Update: 2014-10-07
18
19Patch-Name: no-openssl-version-status.patch
20---
21 openbsd-compat/openssl-compat.c | 6 +++---
22 openbsd-compat/regress/opensslvertest.c | 1 +
23 2 files changed, 4 insertions(+), 3 deletions(-)
24
25diff --git a/openbsd-compat/openssl-compat.c b/openbsd-compat/openssl-compat.c
26index a37ca61bf..c1749210d 100644
27--- a/openbsd-compat/openssl-compat.c
28+++ b/openbsd-compat/openssl-compat.c
29@@ -34,7 +34,7 @@
30 /*
31 * OpenSSL version numbers: MNNFFPPS: major minor fix patch status
32 * We match major, minor, fix and status (not patch) for <1.0.0.
33- * After that, we acceptable compatible fix versions (so we
34+ * After that, we accept compatible fix and status versions (so we
35 * allow 1.0.1 to work with 1.0.0). Going backwards is only allowed
36 * within a patch series.
37 */
38@@ -55,10 +55,10 @@ ssh_compatible_openssl(long headerver, long libver)
39 }
40
41 /*
42- * For versions >= 1.0.0, major,minor,status must match and library
43+ * For versions >= 1.0.0, major,minor must match and library
44 * fix version must be equal to or newer than the header.
45 */
46- mask = 0xfff0000fL; /* major,minor,status */
47+ mask = 0xfff00000L; /* major,minor */
48 hfix = (headerver & 0x000ff000) >> 12;
49 lfix = (libver & 0x000ff000) >> 12;
50 if ( (headerver & mask) == (libver & mask) && lfix >= hfix)
51diff --git a/openbsd-compat/regress/opensslvertest.c b/openbsd-compat/regress/opensslvertest.c
52index 5d019b598..58474873d 100644
53--- a/openbsd-compat/regress/opensslvertest.c
54+++ b/openbsd-compat/regress/opensslvertest.c
55@@ -35,6 +35,7 @@ struct version_test {
56
57 /* built with 1.0.1b release headers */
58 { 0x1000101fL, 0x1000101fL, 1},/* exact match */
59+ { 0x1000101fL, 0x10001010L, 1}, /* different status: ok */
60 { 0x1000101fL, 0x1000102fL, 1}, /* newer library patch version: ok */
61 { 0x1000101fL, 0x1000100fL, 1}, /* older library patch version: ok */
62 { 0x1000101fL, 0x1000201fL, 1}, /* newer library fix version: ok */
diff --git a/debian/patches/openbsd-docs.patch b/debian/patches/openbsd-docs.patch
new file mode 100644
index 000000000..64405d578
--- /dev/null
+++ b/debian/patches/openbsd-docs.patch
@@ -0,0 +1,148 @@
1From 6bcbfca92b58917dba48b696dd63529fa5dcbb82 Mon Sep 17 00:00:00 2001
2From: Colin Watson <cjwatson@debian.org>
3Date: Sun, 9 Feb 2014 16:10:09 +0000
4Subject: Adjust various OpenBSD-specific references in manual pages
5
6No single bug reference for this patch, but history includes:
7 http://bugs.debian.org/154434 (login.conf(5))
8 http://bugs.debian.org/513417 (/etc/rc)
9 http://bugs.debian.org/530692 (ssl(8))
10 https://bugs.launchpad.net/bugs/456660 (ssl(8))
11
12Forwarded: not-needed
13Last-Update: 2017-10-04
14
15Patch-Name: openbsd-docs.patch
16---
17 moduli.5 | 4 ++--
18 ssh-keygen.1 | 12 ++++--------
19 ssh.1 | 4 ++++
20 sshd.8 | 5 ++---
21 sshd_config.5 | 3 +--
22 5 files changed, 13 insertions(+), 15 deletions(-)
23
24diff --git a/moduli.5 b/moduli.5
25index ef0de0850..149846c8c 100644
26--- a/moduli.5
27+++ b/moduli.5
28@@ -21,7 +21,7 @@
29 .Nd Diffie-Hellman moduli
30 .Sh DESCRIPTION
31 The
32-.Pa /etc/moduli
33+.Pa /etc/ssh/moduli
34 file contains prime numbers and generators for use by
35 .Xr sshd 8
36 in the Diffie-Hellman Group Exchange key exchange method.
37@@ -110,7 +110,7 @@ first estimates the size of the modulus required to produce enough
38 Diffie-Hellman output to sufficiently key the selected symmetric cipher.
39 .Xr sshd 8
40 then randomly selects a modulus from
41-.Fa /etc/moduli
42+.Fa /etc/ssh/moduli
43 that best meets the size requirement.
44 .Sh SEE ALSO
45 .Xr ssh-keygen 1 ,
46diff --git a/ssh-keygen.1 b/ssh-keygen.1
47index 3ae596caa..836174fb6 100644
48--- a/ssh-keygen.1
49+++ b/ssh-keygen.1
50@@ -202,9 +202,7 @@ key in
51 .Pa ~/.ssh/id_ed25519_sk
52 or
53 .Pa ~/.ssh/id_rsa .
54-Additionally, the system administrator may use this to generate host keys,
55-as seen in
56-.Pa /etc/rc .
57+Additionally, the system administrator may use this to generate host keys.
58 .Pp
59 Normally this program generates the key and asks for a file in which
60 to store the private key.
61@@ -269,9 +267,7 @@ If
62 .Fl f
63 has also been specified, its argument is used as a prefix to the
64 default path for the resulting host key files.
65-This is used by
66-.Pa /etc/rc
67-to generate new host keys.
68+This is used by system administration scripts to generate new host keys.
69 .It Fl a Ar rounds
70 When saving a private key, this option specifies the number of KDF
71 (key derivation function) rounds used.
72@@ -804,7 +800,7 @@ option.
73 Valid generator values are 2, 3, and 5.
74 .Pp
75 Screened DH groups may be installed in
76-.Pa /etc/moduli .
77+.Pa /etc/ssh/moduli .
78 It is important that this file contains moduli of a range of bit lengths and
79 that both ends of a connection share common moduli.
80 .Pp
81@@ -1185,7 +1181,7 @@ on all machines
82 where the user wishes to log in using public key authentication.
83 There is no need to keep the contents of this file secret.
84 .Pp
85-.It Pa /etc/moduli
86+.It Pa /etc/ssh/moduli
87 Contains Diffie-Hellman groups used for DH-GEX.
88 The file format is described in
89 .Xr moduli 5 .
90diff --git a/ssh.1 b/ssh.1
91index 5d613076c..1880c032d 100644
92--- a/ssh.1
93+++ b/ssh.1
94@@ -890,6 +890,10 @@ implements public key authentication protocol automatically,
95 using one of the DSA, ECDSA, Ed25519 or RSA algorithms.
96 The HISTORY section of
97 .Xr ssl 8
98+(on non-OpenBSD systems, see
99+.nh
100+http://www.openbsd.org/cgi\-bin/man.cgi?query=ssl&sektion=8#HISTORY)
101+.hy
102 contains a brief discussion of the DSA and RSA algorithms.
103 .Pp
104 The file
105diff --git a/sshd.8 b/sshd.8
106index 97d547ffa..7895a6a94 100644
107--- a/sshd.8
108+++ b/sshd.8
109@@ -65,7 +65,7 @@ over an insecure network.
110 .Nm
111 listens for connections from clients.
112 It is normally started at boot from
113-.Pa /etc/rc .
114+.Pa /etc/init.d/ssh .
115 It forks a new
116 daemon for each incoming connection.
117 The forked daemons handle
118@@ -911,7 +911,7 @@ This file is for host-based authentication (see
119 .Xr ssh 1 ) .
120 It should only be writable by root.
121 .Pp
122-.It Pa /etc/moduli
123+.It Pa /etc/ssh/moduli
124 Contains Diffie-Hellman groups used for the "Diffie-Hellman Group Exchange"
125 key exchange method.
126 The file format is described in
127@@ -1009,7 +1009,6 @@ The content of this file is not sensitive; it can be world-readable.
128 .Xr ssh-keyscan 1 ,
129 .Xr chroot 2 ,
130 .Xr hosts_access 5 ,
131-.Xr login.conf 5 ,
132 .Xr moduli 5 ,
133 .Xr sshd_config 5 ,
134 .Xr inetd 8 ,
135diff --git a/sshd_config.5 b/sshd_config.5
136index 33dc0c675..32ae46476 100644
137--- a/sshd_config.5
138+++ b/sshd_config.5
139@@ -385,8 +385,7 @@ Certificates signed using other algorithms will not be accepted for
140 public key or host-based authentication.
141 .It Cm ChallengeResponseAuthentication
142 Specifies whether challenge-response authentication is allowed (e.g. via
143-PAM or through authentication styles supported in
144-.Xr login.conf 5 )
145+PAM).
146 The default is
147 .Cm yes .
148 .It Cm ChrootDirectory
diff --git a/debian/patches/package-versioning.patch b/debian/patches/package-versioning.patch
new file mode 100644
index 000000000..daa1473db
--- /dev/null
+++ b/debian/patches/package-versioning.patch
@@ -0,0 +1,47 @@
1From 707144d399b9fc959a4f6be3fd8e239c208c88ff Mon Sep 17 00:00:00 2001
2From: Matthew Vernon <matthew@debian.org>
3Date: Sun, 9 Feb 2014 16:10:05 +0000
4Subject: Include the Debian version in our identification
5
6This makes it easier to audit networks for versions patched against security
7vulnerabilities. It has little detrimental effect, as attackers will
8generally just try attacks rather than bothering to scan for
9vulnerable-looking version strings. (However, see debian-banner.patch.)
10
11Forwarded: not-needed
12Last-Update: 2019-06-05
13
14Patch-Name: package-versioning.patch
15---
16 kex.c | 2 +-
17 version.h | 7 ++++++-
18 2 files changed, 7 insertions(+), 2 deletions(-)
19
20diff --git a/kex.c b/kex.c
21index 751cfc710..ce7bb5b3b 100644
22--- a/kex.c
23+++ b/kex.c
24@@ -1243,7 +1243,7 @@ kex_exchange_identification(struct ssh *ssh, int timeout_ms,
25 if (version_addendum != NULL && *version_addendum == '\0')
26 version_addendum = NULL;
27 if ((r = sshbuf_putf(our_version, "SSH-%d.%d-%.100s%s%s\r\n",
28- PROTOCOL_MAJOR_2, PROTOCOL_MINOR_2, SSH_VERSION,
29+ PROTOCOL_MAJOR_2, PROTOCOL_MINOR_2, SSH_RELEASE,
30 version_addendum == NULL ? "" : " ",
31 version_addendum == NULL ? "" : version_addendum)) != 0) {
32 oerrno = errno;
33diff --git a/version.h b/version.h
34index c2f9c55bb..480cd59e1 100644
35--- a/version.h
36+++ b/version.h
37@@ -3,4 +3,9 @@
38 #define SSH_VERSION "OpenSSH_8.4"
39
40 #define SSH_PORTABLE "p1"
41-#define SSH_RELEASE SSH_VERSION SSH_PORTABLE
42+#define SSH_RELEASE_MINIMUM SSH_VERSION SSH_PORTABLE
43+#ifdef SSH_EXTRAVERSION
44+#define SSH_RELEASE SSH_RELEASE_MINIMUM " " SSH_EXTRAVERSION
45+#else
46+#define SSH_RELEASE SSH_RELEASE_MINIMUM
47+#endif
diff --git a/debian/patches/restore-authorized_keys2.patch b/debian/patches/restore-authorized_keys2.patch
new file mode 100644
index 000000000..a1f52056f
--- /dev/null
+++ b/debian/patches/restore-authorized_keys2.patch
@@ -0,0 +1,35 @@
1From 8dc9bb0d9cf53a35d6003623f1e7c91326d79875 Mon Sep 17 00:00:00 2001
2From: Colin Watson <cjwatson@debian.org>
3Date: Sun, 5 Mar 2017 02:02:11 +0000
4Subject: Restore reading authorized_keys2 by default
5
6Upstream seems to intend to gradually phase this out, so don't assume
7that this will remain the default forever. However, we were late in
8adopting the upstream sshd_config changes, so it makes sense to extend
9the grace period.
10
11Bug-Debian: https://bugs.debian.org/852320
12Forwarded: not-needed
13Last-Update: 2017-03-05
14
15Patch-Name: restore-authorized_keys2.patch
16---
17 sshd_config | 5 ++---
18 1 file changed, 2 insertions(+), 3 deletions(-)
19
20diff --git a/sshd_config b/sshd_config
21index 459c1b230..dc0db5706 100644
22--- a/sshd_config
23+++ b/sshd_config
24@@ -38,9 +38,8 @@ Include /etc/ssh/sshd_config.d/*.conf
25
26 #PubkeyAuthentication yes
27
28-# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
29-# but this is overridden so installations will only check .ssh/authorized_keys
30-AuthorizedKeysFile .ssh/authorized_keys
31+# Expect .ssh/authorized_keys2 to be disregarded by default in future.
32+#AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2
33
34 #AuthorizedPrincipalsFile none
35
diff --git a/debian/patches/restore-tcp-wrappers.patch b/debian/patches/restore-tcp-wrappers.patch
new file mode 100644
index 000000000..7388fadff
--- /dev/null
+++ b/debian/patches/restore-tcp-wrappers.patch
@@ -0,0 +1,172 @@
1From 6806b85f30244d186206004386a9faddc16b8738 Mon Sep 17 00:00:00 2001
2From: Colin Watson <cjwatson@debian.org>
3Date: Tue, 7 Oct 2014 13:22:41 +0100
4Subject: Restore TCP wrappers support
5
6Support for TCP wrappers was dropped in OpenSSH 6.7. See this message
7and thread:
8
9 https://lists.mindrot.org/pipermail/openssh-unix-dev/2014-April/032497.html
10
11It is true that this reduces preauth attack surface in sshd. On the
12other hand, this support seems to be quite widely used, and abruptly
13dropping it (from the perspective of users who don't read
14openssh-unix-dev) could easily cause more serious problems in practice.
15
16It's not entirely clear what the right long-term answer for Debian is,
17but it at least probably doesn't involve dropping this feature shortly
18before a freeze.
19
20Forwarded: not-needed
21Last-Update: 2019-06-05
22
23Patch-Name: restore-tcp-wrappers.patch
24---
25 configure.ac | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++
26 sshd.8 | 7 +++++++
27 sshd.c | 25 +++++++++++++++++++++++
28 3 files changed, 89 insertions(+)
29
30diff --git a/configure.ac b/configure.ac
31index c8a96deb4..bb435ec1f 100644
32--- a/configure.ac
33+++ b/configure.ac
34@@ -1571,6 +1571,62 @@ else
35 AC_MSG_RESULT([no])
36 fi
37
38+# Check whether user wants TCP wrappers support
39+TCPW_MSG="no"
40+AC_ARG_WITH([tcp-wrappers],
41+ [ --with-tcp-wrappers[[=PATH]] Enable tcpwrappers support (optionally in PATH)],
42+ [
43+ if test "x$withval" != "xno" ; then
44+ saved_LIBS="$LIBS"
45+ saved_LDFLAGS="$LDFLAGS"
46+ saved_CPPFLAGS="$CPPFLAGS"
47+ if test -n "${withval}" && \
48+ test "x${withval}" != "xyes"; then
49+ if test -d "${withval}/lib"; then
50+ if test -n "${need_dash_r}"; then
51+ LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
52+ else
53+ LDFLAGS="-L${withval}/lib ${LDFLAGS}"
54+ fi
55+ else
56+ if test -n "${need_dash_r}"; then
57+ LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
58+ else
59+ LDFLAGS="-L${withval} ${LDFLAGS}"
60+ fi
61+ fi
62+ if test -d "${withval}/include"; then
63+ CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
64+ else
65+ CPPFLAGS="-I${withval} ${CPPFLAGS}"
66+ fi
67+ fi
68+ LIBS="-lwrap $LIBS"
69+ AC_MSG_CHECKING([for libwrap])
70+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
71+#include <sys/types.h>
72+#include <sys/socket.h>
73+#include <netinet/in.h>
74+#include <tcpd.h>
75+int deny_severity = 0, allow_severity = 0;
76+ ]], [[
77+ hosts_access(0);
78+ ]])], [
79+ AC_MSG_RESULT([yes])
80+ AC_DEFINE([LIBWRAP], [1],
81+ [Define if you want
82+ TCP Wrappers support])
83+ SSHDLIBS="$SSHDLIBS -lwrap"
84+ TCPW_MSG="yes"
85+ ], [
86+ AC_MSG_ERROR([*** libwrap missing])
87+
88+ ])
89+ LIBS="$saved_LIBS"
90+ fi
91+ ]
92+)
93+
94 # Check whether user wants to use ldns
95 LDNS_MSG="no"
96 AC_ARG_WITH(ldns,
97@@ -5536,6 +5592,7 @@ echo " PAM support: $PAM_MSG"
98 echo " OSF SIA support: $SIA_MSG"
99 echo " KerberosV support: $KRB5_MSG"
100 echo " SELinux support: $SELINUX_MSG"
101+echo " TCP Wrappers support: $TCPW_MSG"
102 echo " MD5 password support: $MD5_MSG"
103 echo " libedit support: $LIBEDIT_MSG"
104 echo " libldns support: $LDNS_MSG"
105diff --git a/sshd.8 b/sshd.8
106index b2fad56d3..97d547ffa 100644
107--- a/sshd.8
108+++ b/sshd.8
109@@ -900,6 +900,12 @@ the user's home directory becomes accessible.
110 This file should be writable only by the user, and need not be
111 readable by anyone else.
112 .Pp
113+.It Pa /etc/hosts.allow
114+.It Pa /etc/hosts.deny
115+Access controls that should be enforced by tcp-wrappers are defined here.
116+Further details are described in
117+.Xr hosts_access 5 .
118+.Pp
119 .It Pa /etc/hosts.equiv
120 This file is for host-based authentication (see
121 .Xr ssh 1 ) .
122@@ -1002,6 +1008,7 @@ The content of this file is not sensitive; it can be world-readable.
123 .Xr ssh-keygen 1 ,
124 .Xr ssh-keyscan 1 ,
125 .Xr chroot 2 ,
126+.Xr hosts_access 5 ,
127 .Xr login.conf 5 ,
128 .Xr moduli 5 ,
129 .Xr sshd_config 5 ,
130diff --git a/sshd.c b/sshd.c
131index 8c5d5822e..a50ec3584 100644
132--- a/sshd.c
133+++ b/sshd.c
134@@ -124,6 +124,13 @@
135 #include "ssherr.h"
136 #include "sk-api.h"
137
138+#ifdef LIBWRAP
139+#include <tcpd.h>
140+#include <syslog.h>
141+int allow_severity;
142+int deny_severity;
143+#endif /* LIBWRAP */
144+
145 /* Re-exec fds */
146 #define REEXEC_DEVCRYPTO_RESERVED_FD (STDERR_FILENO + 1)
147 #define REEXEC_STARTUP_PIPE_FD (STDERR_FILENO + 2)
148@@ -2183,6 +2190,24 @@ main(int ac, char **av)
149 #ifdef SSH_AUDIT_EVENTS
150 audit_connection_from(remote_ip, remote_port);
151 #endif
152+#ifdef LIBWRAP
153+ allow_severity = options.log_facility|LOG_INFO;
154+ deny_severity = options.log_facility|LOG_WARNING;
155+ /* Check whether logins are denied from this host. */
156+ if (ssh_packet_connection_is_on_socket(ssh)) {
157+ struct request_info req;
158+
159+ request_init(&req, RQ_DAEMON, __progname, RQ_FILE, sock_in, 0);
160+ fromhost(&req);
161+
162+ if (!hosts_access(&req)) {
163+ debug("Connection refused by tcp wrapper");
164+ refuse(&req);
165+ /* NOTREACHED */
166+ fatal("libwrap refuse returns");
167+ }
168+ }
169+#endif /* LIBWRAP */
170
171 rdomain = ssh_packet_rdomain_in(ssh);
172
diff --git a/debian/patches/revert-ipqos-defaults.patch b/debian/patches/revert-ipqos-defaults.patch
new file mode 100644
index 000000000..b84cef134
--- /dev/null
+++ b/debian/patches/revert-ipqos-defaults.patch
@@ -0,0 +1,93 @@
1From 3728919292c05983372954d27426f7d966813139 Mon Sep 17 00:00:00 2001
2From: Colin Watson <cjwatson@debian.org>
3Date: Mon, 8 Apr 2019 10:46:29 +0100
4Subject: Revert "upstream: Update default IPQoS in ssh(1), sshd(8) to DSCP
5 AF21 for"
6
7This reverts commit 5ee8448ad7c306f05a9f56769f95336a8269f379.
8
9The IPQoS default changes have some unfortunate interactions with
10iptables (see https://bugs.debian.org/923880) and VMware, so I'm
11temporarily reverting them until those have been fixed.
12
13Bug-Debian: https://bugs.debian.org/923879
14Bug-Debian: https://bugs.debian.org/926229
15Bug-Ubuntu: https://bugs.launchpad.net/bugs/1822370
16Last-Update: 2019-04-08
17
18Patch-Name: revert-ipqos-defaults.patch
19---
20 readconf.c | 4 ++--
21 servconf.c | 4 ++--
22 ssh_config.5 | 6 ++----
23 sshd_config.5 | 6 ++----
24 4 files changed, 8 insertions(+), 12 deletions(-)
25
26diff --git a/readconf.c b/readconf.c
27index e676b6be6..c60df5602 100644
28--- a/readconf.c
29+++ b/readconf.c
30@@ -2298,9 +2298,9 @@ fill_default_options(Options * options)
31 if (options->visual_host_key == -1)
32 options->visual_host_key = 0;
33 if (options->ip_qos_interactive == -1)
34- options->ip_qos_interactive = IPTOS_DSCP_AF21;
35+ options->ip_qos_interactive = IPTOS_LOWDELAY;
36 if (options->ip_qos_bulk == -1)
37- options->ip_qos_bulk = IPTOS_DSCP_CS1;
38+ options->ip_qos_bulk = IPTOS_THROUGHPUT;
39 if (options->request_tty == -1)
40 options->request_tty = REQUEST_TTY_AUTO;
41 if (options->proxy_use_fdpass == -1)
42diff --git a/servconf.c b/servconf.c
43index f9eb778d6..98afcfcec 100644
44--- a/servconf.c
45+++ b/servconf.c
46@@ -453,9 +453,9 @@ fill_default_server_options(ServerOptions *options)
47 if (options->permit_tun == -1)
48 options->permit_tun = SSH_TUNMODE_NO;
49 if (options->ip_qos_interactive == -1)
50- options->ip_qos_interactive = IPTOS_DSCP_AF21;
51+ options->ip_qos_interactive = IPTOS_LOWDELAY;
52 if (options->ip_qos_bulk == -1)
53- options->ip_qos_bulk = IPTOS_DSCP_CS1;
54+ options->ip_qos_bulk = IPTOS_THROUGHPUT;
55 if (options->version_addendum == NULL)
56 options->version_addendum = xstrdup("");
57 if (options->fwd_opts.streamlocal_bind_mask == (mode_t)-1)
58diff --git a/ssh_config.5 b/ssh_config.5
59index 6d6c59521..080d289a7 100644
60--- a/ssh_config.5
61+++ b/ssh_config.5
62@@ -1156,11 +1156,9 @@ If one argument is specified, it is used as the packet class unconditionally.
63 If two values are specified, the first is automatically selected for
64 interactive sessions and the second for non-interactive sessions.
65 The default is
66-.Cm af21
67-(Low-Latency Data)
68+.Cm lowdelay
69 for interactive sessions and
70-.Cm cs1
71-(Lower Effort)
72+.Cm throughput
73 for non-interactive sessions.
74 .It Cm KbdInteractiveAuthentication
75 Specifies whether to use keyboard-interactive authentication.
76diff --git a/sshd_config.5 b/sshd_config.5
77index 472001dd1..a555e7ec3 100644
78--- a/sshd_config.5
79+++ b/sshd_config.5
80@@ -925,11 +925,9 @@ If one argument is specified, it is used as the packet class unconditionally.
81 If two values are specified, the first is automatically selected for
82 interactive sessions and the second for non-interactive sessions.
83 The default is
84-.Cm af21
85-(Low-Latency Data)
86+.Cm lowdelay
87 for interactive sessions and
88-.Cm cs1
89-(Lower Effort)
90+.Cm throughput
91 for non-interactive sessions.
92 .It Cm KbdInteractiveAuthentication
93 Specifies whether to allow keyboard-interactive authentication.
diff --git a/debian/patches/scp-quoting.patch b/debian/patches/scp-quoting.patch
new file mode 100644
index 000000000..604e831b3
--- /dev/null
+++ b/debian/patches/scp-quoting.patch
@@ -0,0 +1,41 @@
1From 94f06f8888f2e11267120eeebdb931d95bbfb7fd Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Nicolas=20Valc=C3=A1rcel?= <nvalcarcel@ubuntu.com>
3Date: Sun, 9 Feb 2014 16:09:59 +0000
4Subject: Adjust scp quoting in verbose mode
5
6Tweak scp's reporting of filenames in verbose mode to be a bit less
7confusing with spaces.
8
9This should be revised to mimic real shell quoting.
10
11Bug-Ubuntu: https://bugs.launchpad.net/bugs/89945
12Last-Update: 2010-02-27
13
14Patch-Name: scp-quoting.patch
15---
16 scp.c | 12 ++++++++++--
17 1 file changed, 10 insertions(+), 2 deletions(-)
18
19diff --git a/scp.c b/scp.c
20index 6ae17061d..2d1b8e9b9 100644
21--- a/scp.c
22+++ b/scp.c
23@@ -201,8 +201,16 @@ do_local_cmd(arglist *a)
24
25 if (verbose_mode) {
26 fprintf(stderr, "Executing:");
27- for (i = 0; i < a->num; i++)
28- fmprintf(stderr, " %s", a->list[i]);
29+ for (i = 0; i < a->num; i++) {
30+ if (i == 0)
31+ fmprintf(stderr, " %s", a->list[i]);
32+ else
33+ /*
34+ * TODO: misbehaves if a->list[i] contains a
35+ * single quote
36+ */
37+ fmprintf(stderr, " '%s'", a->list[i]);
38+ }
39 fprintf(stderr, "\n");
40 }
41 if ((pid = fork()) == -1)
diff --git a/debian/patches/selinux-role.patch b/debian/patches/selinux-role.patch
new file mode 100644
index 000000000..3161999a9
--- /dev/null
+++ b/debian/patches/selinux-role.patch
@@ -0,0 +1,472 @@
1From c574865182e2c5dfa183b577f49ac602d16df5c0 Mon Sep 17 00:00:00 2001
2From: Manoj Srivastava <srivasta@debian.org>
3Date: Sun, 9 Feb 2014 16:09:49 +0000
4Subject: Handle SELinux authorisation roles
5
6Rejected upstream due to discomfort with magic usernames; a better approach
7will need an SSH protocol change. In the meantime, this came from Debian's
8SELinux maintainer, so we'll keep it until we have something better.
9
10Bug: https://bugzilla.mindrot.org/show_bug.cgi?id=1641
11Bug-Debian: http://bugs.debian.org/394795
12Last-Update: 2020-10-18
13
14Patch-Name: selinux-role.patch
15---
16 auth.h | 1 +
17 auth2.c | 10 ++++++++--
18 monitor.c | 37 +++++++++++++++++++++++++++++++++----
19 monitor.h | 2 ++
20 monitor_wrap.c | 27 ++++++++++++++++++++++++---
21 monitor_wrap.h | 3 ++-
22 openbsd-compat/port-linux.c | 21 ++++++++++++++-------
23 openbsd-compat/port-linux.h | 4 ++--
24 platform.c | 4 ++--
25 platform.h | 2 +-
26 session.c | 10 +++++-----
27 session.h | 2 +-
28 sshd.c | 2 +-
29 sshpty.c | 4 ++--
30 sshpty.h | 2 +-
31 15 files changed, 99 insertions(+), 32 deletions(-)
32
33diff --git a/auth.h b/auth.h
34index becc672b5..5da9fe75f 100644
35--- a/auth.h
36+++ b/auth.h
37@@ -63,6 +63,7 @@ struct Authctxt {
38 char *service;
39 struct passwd *pw; /* set if 'valid' */
40 char *style;
41+ char *role;
42
43 /* Method lists for multiple authentication */
44 char **auth_methods; /* modified from server config */
45diff --git a/auth2.c b/auth2.c
46index 9fa1404b3..d8363bdba 100644
47--- a/auth2.c
48+++ b/auth2.c
49@@ -265,7 +265,7 @@ input_userauth_request(int type, u_int32_t seq, struct ssh *ssh)
50 {
51 Authctxt *authctxt = ssh->authctxt;
52 Authmethod *m = NULL;
53- char *user = NULL, *service = NULL, *method = NULL, *style = NULL;
54+ char *user = NULL, *service = NULL, *method = NULL, *style = NULL, *role = NULL;
55 int r, authenticated = 0;
56 double tstart = monotime_double();
57
58@@ -279,8 +279,13 @@ input_userauth_request(int type, u_int32_t seq, struct ssh *ssh)
59 debug("userauth-request for user %s service %s method %s", user, service, method);
60 debug("attempt %d failures %d", authctxt->attempt, authctxt->failures);
61
62+ if ((role = strchr(user, '/')) != NULL)
63+ *role++ = 0;
64+
65 if ((style = strchr(user, ':')) != NULL)
66 *style++ = 0;
67+ else if (role && (style = strchr(role, ':')) != NULL)
68+ *style++ = '\0';
69
70 if (authctxt->attempt++ == 0) {
71 /* setup auth context */
72@@ -307,8 +312,9 @@ input_userauth_request(int type, u_int32_t seq, struct ssh *ssh)
73 use_privsep ? " [net]" : "");
74 authctxt->service = xstrdup(service);
75 authctxt->style = style ? xstrdup(style) : NULL;
76+ authctxt->role = role ? xstrdup(role) : NULL;
77 if (use_privsep)
78- mm_inform_authserv(service, style);
79+ mm_inform_authserv(service, style, role);
80 userauth_banner(ssh);
81 if (auth2_setup_methods_lists(authctxt) != 0)
82 ssh_packet_disconnect(ssh,
83diff --git a/monitor.c b/monitor.c
84index 11868952b..98362948f 100644
85--- a/monitor.c
86+++ b/monitor.c
87@@ -118,6 +118,7 @@ int mm_answer_sign(struct ssh *, int, struct sshbuf *);
88 int mm_answer_pwnamallow(struct ssh *, int, struct sshbuf *);
89 int mm_answer_auth2_read_banner(struct ssh *, int, struct sshbuf *);
90 int mm_answer_authserv(struct ssh *, int, struct sshbuf *);
91+int mm_answer_authrole(struct ssh *, int, struct sshbuf *);
92 int mm_answer_authpassword(struct ssh *, int, struct sshbuf *);
93 int mm_answer_bsdauthquery(struct ssh *, int, struct sshbuf *);
94 int mm_answer_bsdauthrespond(struct ssh *, int, struct sshbuf *);
95@@ -198,6 +199,7 @@ struct mon_table mon_dispatch_proto20[] = {
96 {MONITOR_REQ_SIGN, MON_ONCE, mm_answer_sign},
97 {MONITOR_REQ_PWNAM, MON_ONCE, mm_answer_pwnamallow},
98 {MONITOR_REQ_AUTHSERV, MON_ONCE, mm_answer_authserv},
99+ {MONITOR_REQ_AUTHROLE, MON_ONCE, mm_answer_authrole},
100 {MONITOR_REQ_AUTH2_READ_BANNER, MON_ONCE, mm_answer_auth2_read_banner},
101 {MONITOR_REQ_AUTHPASSWORD, MON_AUTH, mm_answer_authpassword},
102 #ifdef USE_PAM
103@@ -820,6 +822,7 @@ mm_answer_pwnamallow(struct ssh *ssh, int sock, struct sshbuf *m)
104
105 /* Allow service/style information on the auth context */
106 monitor_permit(mon_dispatch, MONITOR_REQ_AUTHSERV, 1);
107+ monitor_permit(mon_dispatch, MONITOR_REQ_AUTHROLE, 1);
108 monitor_permit(mon_dispatch, MONITOR_REQ_AUTH2_READ_BANNER, 1);
109
110 #ifdef USE_PAM
111@@ -853,16 +856,42 @@ mm_answer_authserv(struct ssh *ssh, int sock, struct sshbuf *m)
112 monitor_permit_authentications(1);
113
114 if ((r = sshbuf_get_cstring(m, &authctxt->service, NULL)) != 0 ||
115- (r = sshbuf_get_cstring(m, &authctxt->style, NULL)) != 0)
116+ (r = sshbuf_get_cstring(m, &authctxt->style, NULL)) != 0 ||
117+ (r = sshbuf_get_cstring(m, &authctxt->role, NULL)) != 0)
118 fatal("%s: buffer error: %s", __func__, ssh_err(r));
119- debug3("%s: service=%s, style=%s",
120- __func__, authctxt->service, authctxt->style);
121+ debug3("%s: service=%s, style=%s, role=%s",
122+ __func__, authctxt->service, authctxt->style, authctxt->role);
123
124 if (strlen(authctxt->style) == 0) {
125 free(authctxt->style);
126 authctxt->style = NULL;
127 }
128
129+ if (strlen(authctxt->role) == 0) {
130+ free(authctxt->role);
131+ authctxt->role = NULL;
132+ }
133+
134+ return (0);
135+}
136+
137+int
138+mm_answer_authrole(struct ssh *ssh, int sock, struct sshbuf *m)
139+{
140+ int r;
141+
142+ monitor_permit_authentications(1);
143+
144+ if ((r = sshbuf_get_cstring(m, &authctxt->role, NULL)) != 0)
145+ fatal("%s: buffer error: %s", __func__, ssh_err(r));
146+ debug3("%s: role=%s",
147+ __func__, authctxt->role);
148+
149+ if (strlen(authctxt->role) == 0) {
150+ free(authctxt->role);
151+ authctxt->role = NULL;
152+ }
153+
154 return (0);
155 }
156
157@@ -1566,7 +1595,7 @@ mm_answer_pty(struct ssh *ssh, int sock, struct sshbuf *m)
158 res = pty_allocate(&s->ptyfd, &s->ttyfd, s->tty, sizeof(s->tty));
159 if (res == 0)
160 goto error;
161- pty_setowner(authctxt->pw, s->tty);
162+ pty_setowner(authctxt->pw, s->tty, authctxt->role);
163
164 if ((r = sshbuf_put_u32(m, 1)) != 0 ||
165 (r = sshbuf_put_cstring(m, s->tty)) != 0)
166diff --git a/monitor.h b/monitor.h
167index 2b1a2d590..4d87284aa 100644
168--- a/monitor.h
169+++ b/monitor.h
170@@ -65,6 +65,8 @@ enum monitor_reqtype {
171
172 MONITOR_REQ_GSSSIGN = 150, MONITOR_ANS_GSSSIGN = 151,
173 MONITOR_REQ_GSSUPCREDS = 152, MONITOR_ANS_GSSUPCREDS = 153,
174+
175+ MONITOR_REQ_AUTHROLE = 154,
176 };
177
178 struct ssh;
179diff --git a/monitor_wrap.c b/monitor_wrap.c
180index 0e78cd006..d41d3949d 100644
181--- a/monitor_wrap.c
182+++ b/monitor_wrap.c
183@@ -364,10 +364,10 @@ mm_auth2_read_banner(void)
184 return (banner);
185 }
186
187-/* Inform the privileged process about service and style */
188+/* Inform the privileged process about service, style, and role */
189
190 void
191-mm_inform_authserv(char *service, char *style)
192+mm_inform_authserv(char *service, char *style, char *role)
193 {
194 struct sshbuf *m;
195 int r;
196@@ -377,7 +377,8 @@ mm_inform_authserv(char *service, char *style)
197 if ((m = sshbuf_new()) == NULL)
198 fatal("%s: sshbuf_new failed", __func__);
199 if ((r = sshbuf_put_cstring(m, service)) != 0 ||
200- (r = sshbuf_put_cstring(m, style ? style : "")) != 0)
201+ (r = sshbuf_put_cstring(m, style ? style : "")) != 0 ||
202+ (r = sshbuf_put_cstring(m, role ? role : "")) != 0)
203 fatal("%s: buffer error: %s", __func__, ssh_err(r));
204
205 mm_request_send(pmonitor->m_recvfd, MONITOR_REQ_AUTHSERV, m);
206@@ -385,6 +386,26 @@ mm_inform_authserv(char *service, char *style)
207 sshbuf_free(m);
208 }
209
210+/* Inform the privileged process about role */
211+
212+void
213+mm_inform_authrole(char *role)
214+{
215+ struct sshbuf *m;
216+ int r;
217+
218+ debug3("%s entering", __func__);
219+
220+ if ((m = sshbuf_new()) == NULL)
221+ fatal("%s: sshbuf_new failed", __func__);
222+ if ((r = sshbuf_put_cstring(m, role ? role : "")) != 0)
223+ fatal("%s: buffer error: %s", __func__, ssh_err(r));
224+
225+ mm_request_send(pmonitor->m_recvfd, MONITOR_REQ_AUTHROLE, m);
226+
227+ sshbuf_free(m);
228+}
229+
230 /* Do the password authentication */
231 int
232 mm_auth_password(struct ssh *ssh, char *password)
233diff --git a/monitor_wrap.h b/monitor_wrap.h
234index 75aef1c74..c39e5dd8b 100644
235--- a/monitor_wrap.h
236+++ b/monitor_wrap.h
237@@ -48,7 +48,8 @@ DH *mm_choose_dh(int, int, int);
238 int mm_sshkey_sign(struct ssh *, struct sshkey *, u_char **, size_t *,
239 const u_char *, size_t, const char *, const char *,
240 const char *, u_int compat);
241-void mm_inform_authserv(char *, char *);
242+void mm_inform_authserv(char *, char *, char *);
243+void mm_inform_authrole(char *);
244 struct passwd *mm_getpwnamallow(struct ssh *, const char *);
245 char *mm_auth2_read_banner(void);
246 int mm_auth_password(struct ssh *, char *);
247diff --git a/openbsd-compat/port-linux.c b/openbsd-compat/port-linux.c
248index f46094faf..56f1d2c1e 100644
249--- a/openbsd-compat/port-linux.c
250+++ b/openbsd-compat/port-linux.c
251@@ -56,7 +56,7 @@ ssh_selinux_enabled(void)
252
253 /* Return the default security context for the given username */
254 static security_context_t
255-ssh_selinux_getctxbyname(char *pwname)
256+ssh_selinux_getctxbyname(char *pwname, const char *role)
257 {
258 security_context_t sc = NULL;
259 char *sename = NULL, *lvl = NULL;
260@@ -71,9 +71,16 @@ ssh_selinux_getctxbyname(char *pwname)
261 #endif
262
263 #ifdef HAVE_GET_DEFAULT_CONTEXT_WITH_LEVEL
264- r = get_default_context_with_level(sename, lvl, NULL, &sc);
265+ if (role != NULL && role[0])
266+ r = get_default_context_with_rolelevel(sename, role, lvl, NULL,
267+ &sc);
268+ else
269+ r = get_default_context_with_level(sename, lvl, NULL, &sc);
270 #else
271- r = get_default_context(sename, NULL, &sc);
272+ if (role != NULL && role[0])
273+ r = get_default_context_with_role(sename, role, NULL, &sc);
274+ else
275+ r = get_default_context(sename, NULL, &sc);
276 #endif
277
278 if (r != 0) {
279@@ -103,7 +110,7 @@ ssh_selinux_getctxbyname(char *pwname)
280
281 /* Set the execution context to the default for the specified user */
282 void
283-ssh_selinux_setup_exec_context(char *pwname)
284+ssh_selinux_setup_exec_context(char *pwname, const char *role)
285 {
286 security_context_t user_ctx = NULL;
287
288@@ -112,7 +119,7 @@ ssh_selinux_setup_exec_context(char *pwname)
289
290 debug3("%s: setting execution context", __func__);
291
292- user_ctx = ssh_selinux_getctxbyname(pwname);
293+ user_ctx = ssh_selinux_getctxbyname(pwname, role);
294 if (setexeccon(user_ctx) != 0) {
295 switch (security_getenforce()) {
296 case -1:
297@@ -134,7 +141,7 @@ ssh_selinux_setup_exec_context(char *pwname)
298
299 /* Set the TTY context for the specified user */
300 void
301-ssh_selinux_setup_pty(char *pwname, const char *tty)
302+ssh_selinux_setup_pty(char *pwname, const char *tty, const char *role)
303 {
304 security_context_t new_tty_ctx = NULL;
305 security_context_t user_ctx = NULL;
306@@ -146,7 +153,7 @@ ssh_selinux_setup_pty(char *pwname, const char *tty)
307
308 debug3("%s: setting TTY context on %s", __func__, tty);
309
310- user_ctx = ssh_selinux_getctxbyname(pwname);
311+ user_ctx = ssh_selinux_getctxbyname(pwname, role);
312
313 /* XXX: should these calls fatal() upon failure in enforcing mode? */
314
315diff --git a/openbsd-compat/port-linux.h b/openbsd-compat/port-linux.h
316index 3c22a854d..c88129428 100644
317--- a/openbsd-compat/port-linux.h
318+++ b/openbsd-compat/port-linux.h
319@@ -19,8 +19,8 @@
320
321 #ifdef WITH_SELINUX
322 int ssh_selinux_enabled(void);
323-void ssh_selinux_setup_pty(char *, const char *);
324-void ssh_selinux_setup_exec_context(char *);
325+void ssh_selinux_setup_pty(char *, const char *, const char *);
326+void ssh_selinux_setup_exec_context(char *, const char *);
327 void ssh_selinux_change_context(const char *);
328 void ssh_selinux_setfscreatecon(const char *);
329 #endif
330diff --git a/platform.c b/platform.c
331index 44ba71dc5..2defe9425 100644
332--- a/platform.c
333+++ b/platform.c
334@@ -143,7 +143,7 @@ platform_setusercontext(struct passwd *pw)
335 * called if sshd is running as root.
336 */
337 void
338-platform_setusercontext_post_groups(struct passwd *pw)
339+platform_setusercontext_post_groups(struct passwd *pw, const char *role)
340 {
341 #if !defined(HAVE_LOGIN_CAP) && defined(USE_PAM)
342 /*
343@@ -184,7 +184,7 @@ platform_setusercontext_post_groups(struct passwd *pw)
344 }
345 #endif /* HAVE_SETPCRED */
346 #ifdef WITH_SELINUX
347- ssh_selinux_setup_exec_context(pw->pw_name);
348+ ssh_selinux_setup_exec_context(pw->pw_name, role);
349 #endif
350 }
351
352diff --git a/platform.h b/platform.h
353index ea4f9c584..60d72ffe7 100644
354--- a/platform.h
355+++ b/platform.h
356@@ -25,7 +25,7 @@ void platform_post_fork_parent(pid_t child_pid);
357 void platform_post_fork_child(void);
358 int platform_privileged_uidswap(void);
359 void platform_setusercontext(struct passwd *);
360-void platform_setusercontext_post_groups(struct passwd *);
361+void platform_setusercontext_post_groups(struct passwd *, const char *);
362 char *platform_get_krb5_client(const char *);
363 char *platform_krb5_get_principal_name(const char *);
364 int platform_sys_dir_uid(uid_t);
365diff --git a/session.c b/session.c
366index 857f17b3c..b1796a803 100644
367--- a/session.c
368+++ b/session.c
369@@ -1364,7 +1364,7 @@ safely_chroot(const char *path, uid_t uid)
370
371 /* Set login name, uid, gid, and groups. */
372 void
373-do_setusercontext(struct passwd *pw)
374+do_setusercontext(struct passwd *pw, const char *role)
375 {
376 char uidstr[32], *chroot_path, *tmp;
377
378@@ -1392,7 +1392,7 @@ do_setusercontext(struct passwd *pw)
379 endgrent();
380 #endif
381
382- platform_setusercontext_post_groups(pw);
383+ platform_setusercontext_post_groups(pw, role);
384
385 if (!in_chroot && options.chroot_directory != NULL &&
386 strcasecmp(options.chroot_directory, "none") != 0) {
387@@ -1536,7 +1536,7 @@ do_child(struct ssh *ssh, Session *s, const char *command)
388
389 /* Force a password change */
390 if (s->authctxt->force_pwchange) {
391- do_setusercontext(pw);
392+ do_setusercontext(pw, s->authctxt->role);
393 child_close_fds(ssh);
394 do_pwchange(s);
395 exit(1);
396@@ -1554,7 +1554,7 @@ do_child(struct ssh *ssh, Session *s, const char *command)
397 /* When PAM is enabled we rely on it to do the nologin check */
398 if (!options.use_pam)
399 do_nologin(pw);
400- do_setusercontext(pw);
401+ do_setusercontext(pw, s->authctxt->role);
402 /*
403 * PAM session modules in do_setusercontext may have
404 * generated messages, so if this in an interactive
405@@ -1953,7 +1953,7 @@ session_pty_req(struct ssh *ssh, Session *s)
406 sshpkt_fatal(ssh, r, "%s: parse packet", __func__);
407
408 if (!use_privsep)
409- pty_setowner(s->pw, s->tty);
410+ pty_setowner(s->pw, s->tty, s->authctxt->role);
411
412 /* Set window size from the packet. */
413 pty_change_window_size(s->ptyfd, s->row, s->col, s->xpixel, s->ypixel);
414diff --git a/session.h b/session.h
415index ce59dabd9..675c91146 100644
416--- a/session.h
417+++ b/session.h
418@@ -77,7 +77,7 @@ void session_pty_cleanup2(Session *);
419 Session *session_new(void);
420 Session *session_by_tty(char *);
421 void session_close(struct ssh *, Session *);
422-void do_setusercontext(struct passwd *);
423+void do_setusercontext(struct passwd *, const char *);
424
425 const char *session_get_remote_name_or_ip(struct ssh *, u_int, int);
426
427diff --git a/sshd.c b/sshd.c
428index a50ec3584..38d281ab4 100644
429--- a/sshd.c
430+++ b/sshd.c
431@@ -594,7 +594,7 @@ privsep_postauth(struct ssh *ssh, Authctxt *authctxt)
432 reseed_prngs();
433
434 /* Drop privileges */
435- do_setusercontext(authctxt->pw);
436+ do_setusercontext(authctxt->pw, authctxt->role);
437
438 skip:
439 /* It is safe now to apply the key state */
440diff --git a/sshpty.c b/sshpty.c
441index bce09e255..308449b37 100644
442--- a/sshpty.c
443+++ b/sshpty.c
444@@ -162,7 +162,7 @@ pty_change_window_size(int ptyfd, u_int row, u_int col,
445 }
446
447 void
448-pty_setowner(struct passwd *pw, const char *tty)
449+pty_setowner(struct passwd *pw, const char *tty, const char *role)
450 {
451 struct group *grp;
452 gid_t gid;
453@@ -186,7 +186,7 @@ pty_setowner(struct passwd *pw, const char *tty)
454 strerror(errno));
455
456 #ifdef WITH_SELINUX
457- ssh_selinux_setup_pty(pw->pw_name, tty);
458+ ssh_selinux_setup_pty(pw->pw_name, tty, role);
459 #endif
460
461 if (st.st_uid != pw->pw_uid || st.st_gid != gid) {
462diff --git a/sshpty.h b/sshpty.h
463index 9ec7e9a15..de7e000ae 100644
464--- a/sshpty.h
465+++ b/sshpty.h
466@@ -24,5 +24,5 @@ int pty_allocate(int *, int *, char *, size_t);
467 void pty_release(const char *);
468 void pty_make_controlling_tty(int *, const char *);
469 void pty_change_window_size(int, u_int, u_int, u_int, u_int);
470-void pty_setowner(struct passwd *, const char *);
471+void pty_setowner(struct passwd *, const char *, const char *);
472 void disconnect_controlling_tty(void);
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 000000000..8c1046a74
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,25 @@
1gssapi.patch
2restore-tcp-wrappers.patch
3selinux-role.patch
4ssh-vulnkey-compat.patch
5keepalive-extensions.patch
6syslog-level-silent.patch
7user-group-modes.patch
8scp-quoting.patch
9shell-path.patch
10dnssec-sshfp.patch
11mention-ssh-keygen-on-keychange.patch
12package-versioning.patch
13debian-banner.patch
14authorized-keys-man-symlink.patch
15openbsd-docs.patch
16ssh-argv0.patch
17doc-hash-tab-completion.patch
18ssh-agent-setgid.patch
19no-openssl-version-status.patch
20gnome-ssh-askpass2-icon.patch
21systemd-readiness.patch
22debian-config.patch
23restore-authorized_keys2.patch
24conch-old-privkey-format.patch
25revert-ipqos-defaults.patch
diff --git a/debian/patches/shell-path.patch b/debian/patches/shell-path.patch
new file mode 100644
index 000000000..503b08dda
--- /dev/null
+++ b/debian/patches/shell-path.patch
@@ -0,0 +1,39 @@
1From a7d2f23b7b86f97749856482233cdc9dd970d1d3 Mon Sep 17 00:00:00 2001
2From: Colin Watson <cjwatson@debian.org>
3Date: Sun, 9 Feb 2014 16:10:00 +0000
4Subject: Look for $SHELL on the path for ProxyCommand/LocalCommand
5
6There's some debate on the upstream bug about whether POSIX requires this.
7I (Colin Watson) agree with Vincent and think it does.
8
9Bug: https://bugzilla.mindrot.org/show_bug.cgi?id=1494
10Bug-Debian: http://bugs.debian.org/492728
11Last-Update: 2020-02-21
12
13Patch-Name: shell-path.patch
14---
15 sshconnect.c | 4 ++--
16 1 file changed, 2 insertions(+), 2 deletions(-)
17
18diff --git a/sshconnect.c b/sshconnect.c
19index 9ec0618a9..5f8c81b84 100644
20--- a/sshconnect.c
21+++ b/sshconnect.c
22@@ -263,7 +263,7 @@ ssh_proxy_connect(struct ssh *ssh, const char *host, const char *host_arg,
23 /* Execute the proxy command. Note that we gave up any
24 extra privileges above. */
25 ssh_signal(SIGPIPE, SIG_DFL);
26- execv(argv[0], argv);
27+ execvp(argv[0], argv);
28 perror(argv[0]);
29 exit(1);
30 }
31@@ -1392,7 +1392,7 @@ ssh_local_cmd(const char *args)
32 if (pid == 0) {
33 ssh_signal(SIGPIPE, SIG_DFL);
34 debug3("Executing %s -c \"%s\"", shell, args);
35- execl(shell, shell, "-c", args, (char *)NULL);
36+ execlp(shell, shell, "-c", args, (char *)NULL);
37 error("Couldn't execute %s -c \"%s\": %s",
38 shell, args, strerror(errno));
39 _exit(1);
diff --git a/debian/patches/ssh-agent-setgid.patch b/debian/patches/ssh-agent-setgid.patch
new file mode 100644
index 000000000..5d7a6c0fb
--- /dev/null
+++ b/debian/patches/ssh-agent-setgid.patch
@@ -0,0 +1,40 @@
1From 7a305ed4a0cba43d0d1bc6ebf5737521a0854a9d Mon Sep 17 00:00:00 2001
2From: Colin Watson <cjwatson@debian.org>
3Date: Sun, 9 Feb 2014 16:10:13 +0000
4Subject: Document consequences of ssh-agent being setgid in ssh-agent(1)
5
6Bug-Debian: http://bugs.debian.org/711623
7Forwarded: no
8Last-Update: 2020-02-21
9
10Patch-Name: ssh-agent-setgid.patch
11---
12 ssh-agent.1 | 15 +++++++++++++++
13 1 file changed, 15 insertions(+)
14
15diff --git a/ssh-agent.1 b/ssh-agent.1
16index 2cf46160b..272da79b3 100644
17--- a/ssh-agent.1
18+++ b/ssh-agent.1
19@@ -206,6 +206,21 @@ socket and stores its pathname in this variable.
20 It is accessible only to the current user,
21 but is easily abused by root or another instance of the same user.
22 .El
23+.Pp
24+In Debian,
25+.Nm
26+is installed with the set-group-id bit set, to prevent
27+.Xr ptrace 2
28+attacks retrieving private key material.
29+This has the side-effect of causing the run-time linker to remove certain
30+environment variables which might have security implications for set-id
31+programs, including
32+.Ev LD_PRELOAD ,
33+.Ev LD_LIBRARY_PATH ,
34+and
35+.Ev TMPDIR .
36+If you need to set any of these environment variables, you will need to do
37+so in the program executed by ssh-agent.
38 .Sh FILES
39 .Bl -tag -width Ds
40 .It Pa $TMPDIR/ssh-XXXXXXXXXX/agent.<ppid>
diff --git a/debian/patches/ssh-argv0.patch b/debian/patches/ssh-argv0.patch
new file mode 100644
index 000000000..12f8c1b90
--- /dev/null
+++ b/debian/patches/ssh-argv0.patch
@@ -0,0 +1,31 @@
1From 0e71b467fd84b0972c6aa2762d93af1c3defc0dc Mon Sep 17 00:00:00 2001
2From: Colin Watson <cjwatson@debian.org>
3Date: Sun, 9 Feb 2014 16:10:10 +0000
4Subject: ssh(1): Refer to ssh-argv0(1)
5
6Old versions of OpenSSH (up to 2.5 or thereabouts) allowed creating symlinks
7to ssh with the name of the host you want to connect to. Debian ships an
8ssh-argv0 script restoring this feature; this patch refers to its manual
9page from ssh(1).
10
11Bug-Debian: http://bugs.debian.org/111341
12Forwarded: not-needed
13Last-Update: 2013-09-14
14
15Patch-Name: ssh-argv0.patch
16---
17 ssh.1 | 1 +
18 1 file changed, 1 insertion(+)
19
20diff --git a/ssh.1 b/ssh.1
21index 1880c032d..76ddd89b5 100644
22--- a/ssh.1
23+++ b/ssh.1
24@@ -1632,6 +1632,7 @@ if an error occurred.
25 .Xr sftp 1 ,
26 .Xr ssh-add 1 ,
27 .Xr ssh-agent 1 ,
28+.Xr ssh-argv0 1 ,
29 .Xr ssh-keygen 1 ,
30 .Xr ssh-keyscan 1 ,
31 .Xr tun 4 ,
diff --git a/debian/patches/ssh-vulnkey-compat.patch b/debian/patches/ssh-vulnkey-compat.patch
new file mode 100644
index 000000000..f4bedfd7b
--- /dev/null
+++ b/debian/patches/ssh-vulnkey-compat.patch
@@ -0,0 +1,42 @@
1From 61b4d4c07d19cd0816ab5d48da81a75f7adbdf24 Mon Sep 17 00:00:00 2001
2From: Colin Watson <cjwatson@ubuntu.com>
3Date: Sun, 9 Feb 2014 16:09:50 +0000
4Subject: Accept obsolete ssh-vulnkey configuration options
5
6These options were used as part of Debian's response to CVE-2008-0166.
7Nearly six years later, we no longer need to continue carrying the bulk
8of that patch, but we do need to avoid failing when the associated
9configuration options are still present.
10
11Last-Update: 2014-02-09
12
13Patch-Name: ssh-vulnkey-compat.patch
14---
15 readconf.c | 1 +
16 servconf.c | 1 +
17 2 files changed, 2 insertions(+)
18
19diff --git a/readconf.c b/readconf.c
20index 57dae55d1..b069333fa 100644
21--- a/readconf.c
22+++ b/readconf.c
23@@ -191,6 +191,7 @@ static struct {
24 { "fallbacktorsh", oDeprecated },
25 { "globalknownhostsfile2", oDeprecated },
26 { "rhostsauthentication", oDeprecated },
27+ { "useblacklistedkeys", oDeprecated },
28 { "userknownhostsfile2", oDeprecated },
29 { "useroaming", oDeprecated },
30 { "usersh", oDeprecated },
31diff --git a/servconf.c b/servconf.c
32index ded8f4a87..21abe41ac 100644
33--- a/servconf.c
34+++ b/servconf.c
35@@ -649,6 +649,7 @@ static struct {
36 { "x11uselocalhost", sX11UseLocalhost, SSHCFG_ALL },
37 { "xauthlocation", sXAuthLocation, SSHCFG_GLOBAL },
38 { "strictmodes", sStrictModes, SSHCFG_GLOBAL },
39+ { "permitblacklistedkeys", sDeprecated, SSHCFG_GLOBAL },
40 { "permitemptypasswords", sEmptyPasswd, SSHCFG_ALL },
41 { "permituserenvironment", sPermitUserEnvironment, SSHCFG_GLOBAL },
42 { "uselogin", sDeprecated, SSHCFG_GLOBAL },
diff --git a/debian/patches/syslog-level-silent.patch b/debian/patches/syslog-level-silent.patch
new file mode 100644
index 000000000..d6215dea6
--- /dev/null
+++ b/debian/patches/syslog-level-silent.patch
@@ -0,0 +1,47 @@
1From 33a5f7aadea15899586710c615408045eaaecebd Mon Sep 17 00:00:00 2001
2From: Natalie Amery <nmamery@chiark.greenend.org.uk>
3Date: Sun, 9 Feb 2014 16:09:54 +0000
4Subject: "LogLevel SILENT" compatibility
5
6"LogLevel SILENT" (-qq) was introduced in Debian openssh 1:3.0.1p1-1 to
7match the behaviour of non-free SSH, in which -q does not suppress fatal
8errors. However, this was unintentionally broken in 1:4.6p1-2 and nobody
9complained, so we've dropped most of it. The parts that remain are basic
10configuration file compatibility, and an adjustment to "Pseudo-terminal will
11not be allocated ..." which should be split out into a separate patch.
12
13Author: Matthew Vernon <matthew@debian.org>
14Author: Colin Watson <cjwatson@debian.org>
15Last-Update: 2013-09-14
16
17Patch-Name: syslog-level-silent.patch
18---
19 log.c | 1 +
20 ssh.c | 2 +-
21 2 files changed, 2 insertions(+), 1 deletion(-)
22
23diff --git a/log.c b/log.c
24index 6b1a7a314..5ebae1480 100644
25--- a/log.c
26+++ b/log.c
27@@ -93,6 +93,7 @@ static struct {
28 LogLevel val;
29 } log_levels[] =
30 {
31+ { "SILENT", SYSLOG_LEVEL_QUIET }, /* compatibility */
32 { "QUIET", SYSLOG_LEVEL_QUIET },
33 { "FATAL", SYSLOG_LEVEL_FATAL },
34 { "ERROR", SYSLOG_LEVEL_ERROR },
35diff --git a/ssh.c b/ssh.c
36index bb98a7e2d..aa15b8a1f 100644
37--- a/ssh.c
38+++ b/ssh.c
39@@ -1373,7 +1373,7 @@ main(int ac, char **av)
40 /* Do not allocate a tty if stdin is not a tty. */
41 if ((!isatty(fileno(stdin)) || stdin_null_flag) &&
42 options.request_tty != REQUEST_TTY_FORCE) {
43- if (tty_flag)
44+ if (tty_flag && options.log_level != SYSLOG_LEVEL_QUIET)
45 logit("Pseudo-terminal will not be allocated because "
46 "stdin is not a terminal.");
47 tty_flag = 0;
diff --git a/debian/patches/systemd-readiness.patch b/debian/patches/systemd-readiness.patch
new file mode 100644
index 000000000..37e98c1dc
--- /dev/null
+++ b/debian/patches/systemd-readiness.patch
@@ -0,0 +1,84 @@
1From e8453621b2a26f8d6afec405ff60201749b01e5e Mon Sep 17 00:00:00 2001
2From: Michael Biebl <biebl@debian.org>
3Date: Mon, 21 Dec 2015 16:08:47 +0000
4Subject: Add systemd readiness notification support
5
6Bug-Debian: https://bugs.debian.org/778913
7Forwarded: no
8Last-Update: 2017-08-22
9
10Patch-Name: systemd-readiness.patch
11---
12 configure.ac | 24 ++++++++++++++++++++++++
13 sshd.c | 9 +++++++++
14 2 files changed, 33 insertions(+)
15
16diff --git a/configure.ac b/configure.ac
17index bb435ec1f..5944299fa 100644
18--- a/configure.ac
19+++ b/configure.ac
20@@ -4785,6 +4785,29 @@ AC_ARG_WITH([kerberos5],
21 AC_SUBST([GSSLIBS])
22 AC_SUBST([K5LIBS])
23
24+# Check whether user wants systemd support
25+SYSTEMD_MSG="no"
26+AC_ARG_WITH(systemd,
27+ [ --with-systemd Enable systemd support],
28+ [ if test "x$withval" != "xno" ; then
29+ AC_PATH_TOOL([PKGCONFIG], [pkg-config], [no])
30+ if test "$PKGCONFIG" != "no"; then
31+ AC_MSG_CHECKING([for libsystemd])
32+ if $PKGCONFIG --exists libsystemd; then
33+ SYSTEMD_CFLAGS=`$PKGCONFIG --cflags libsystemd`
34+ SYSTEMD_LIBS=`$PKGCONFIG --libs libsystemd`
35+ CPPFLAGS="$CPPFLAGS $SYSTEMD_CFLAGS"
36+ SSHDLIBS="$SSHDLIBS $SYSTEMD_LIBS"
37+ AC_MSG_RESULT([yes])
38+ AC_DEFINE(HAVE_SYSTEMD, 1, [Define if you want systemd support.])
39+ SYSTEMD_MSG="yes"
40+ else
41+ AC_MSG_RESULT([no])
42+ fi
43+ fi
44+ fi ]
45+)
46+
47 # Looking for programs, paths and files
48
49 PRIVSEP_PATH=/var/empty
50@@ -5599,6 +5622,7 @@ echo " libldns support: $LDNS_MSG"
51 echo " Solaris process contract support: $SPC_MSG"
52 echo " Solaris project support: $SP_MSG"
53 echo " Solaris privilege support: $SPP_MSG"
54+echo " systemd support: $SYSTEMD_MSG"
55 echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
56 echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
57 echo " BSD Auth support: $BSD_AUTH_MSG"
58diff --git a/sshd.c b/sshd.c
59index 50f2726bf..fb9b7b7fb 100644
60--- a/sshd.c
61+++ b/sshd.c
62@@ -85,6 +85,10 @@
63 #include <prot.h>
64 #endif
65
66+#ifdef HAVE_SYSTEMD
67+#include <systemd/sd-daemon.h>
68+#endif
69+
70 #include "xmalloc.h"
71 #include "ssh.h"
72 #include "ssh2.h"
73@@ -2076,6 +2080,11 @@ main(int ac, char **av)
74 }
75 }
76
77+#ifdef HAVE_SYSTEMD
78+ /* Signal systemd that we are ready to accept connections */
79+ sd_notify(0, "READY=1");
80+#endif
81+
82 /* Accept a connection and return in a forked child */
83 server_accept_loop(&sock_in, &sock_out,
84 &newsock, config_s);
diff --git a/debian/patches/user-group-modes.patch b/debian/patches/user-group-modes.patch
new file mode 100644
index 000000000..8f5a8a383
--- /dev/null
+++ b/debian/patches/user-group-modes.patch
@@ -0,0 +1,210 @@
1From d08cd2b0cfbedf3ccd2ec3adaef850b8d9a87e85 Mon Sep 17 00:00:00 2001
2From: Colin Watson <cjwatson@debian.org>
3Date: Sun, 9 Feb 2014 16:09:58 +0000
4Subject: Allow harmless group-writability
5
6Allow secure files (~/.ssh/config, ~/.ssh/authorized_keys, etc.) to be
7group-writable, provided that the group in question contains only the file's
8owner. Rejected upstream for IMO incorrect reasons (e.g. a misunderstanding
9about the contents of gr->gr_mem). Given that per-user groups and umask 002
10are the default setup in Debian (for good reasons - this makes operating in
11setgid directories with other groups much easier), we need to permit this by
12default.
13
14Bug: https://bugzilla.mindrot.org/show_bug.cgi?id=1060
15Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=314347
16Last-Update: 2019-10-09
17
18Patch-Name: user-group-modes.patch
19---
20 auth-rhosts.c | 6 ++----
21 auth.c | 3 +--
22 misc.c | 58 ++++++++++++++++++++++++++++++++++++++++++++++-----
23 misc.h | 2 ++
24 readconf.c | 3 +--
25 ssh.1 | 2 ++
26 ssh_config.5 | 2 ++
27 7 files changed, 63 insertions(+), 13 deletions(-)
28
29diff --git a/auth-rhosts.c b/auth-rhosts.c
30index e81321b49..3bcc73766 100644
31--- a/auth-rhosts.c
32+++ b/auth-rhosts.c
33@@ -260,8 +260,7 @@ auth_rhosts2(struct passwd *pw, const char *client_user, const char *hostname,
34 return 0;
35 }
36 if (options.strict_modes &&
37- ((st.st_uid != 0 && st.st_uid != pw->pw_uid) ||
38- (st.st_mode & 022) != 0)) {
39+ !secure_permissions(&st, pw->pw_uid)) {
40 logit("Rhosts authentication refused for %.100s: "
41 "bad ownership or modes for home directory.", pw->pw_name);
42 auth_debug_add("Rhosts authentication refused for %.100s: "
43@@ -287,8 +286,7 @@ auth_rhosts2(struct passwd *pw, const char *client_user, const char *hostname,
44 * allowing access to their account by anyone.
45 */
46 if (options.strict_modes &&
47- ((st.st_uid != 0 && st.st_uid != pw->pw_uid) ||
48- (st.st_mode & 022) != 0)) {
49+ !secure_permissions(&st, pw->pw_uid)) {
50 logit("Rhosts authentication refused for %.100s: bad modes for %.200s",
51 pw->pw_name, buf);
52 auth_debug_add("Bad file modes for %.200s", buf);
53diff --git a/auth.c b/auth.c
54index 3d31ec860..4152d9c44 100644
55--- a/auth.c
56+++ b/auth.c
57@@ -474,8 +474,7 @@ check_key_in_hostfiles(struct passwd *pw, struct sshkey *key, const char *host,
58 user_hostfile = tilde_expand_filename(userfile, pw->pw_uid);
59 if (options.strict_modes &&
60 (stat(user_hostfile, &st) == 0) &&
61- ((st.st_uid != 0 && st.st_uid != pw->pw_uid) ||
62- (st.st_mode & 022) != 0)) {
63+ !secure_permissions(&st, pw->pw_uid)) {
64 logit("Authentication refused for %.100s: "
65 "bad owner or modes for %.200s",
66 pw->pw_name, user_hostfile);
67diff --git a/misc.c b/misc.c
68index 4623b5755..c75a795c2 100644
69--- a/misc.c
70+++ b/misc.c
71@@ -55,8 +55,9 @@
72 #include <netdb.h>
73 #ifdef HAVE_PATHS_H
74 # include <paths.h>
75-#include <pwd.h>
76 #endif
77+#include <pwd.h>
78+#include <grp.h>
79 #ifdef SSH_TUN_OPENBSD
80 #include <net/if.h>
81 #endif
82@@ -1271,6 +1272,55 @@ percent_dollar_expand(const char *string, ...)
83 return ret;
84 }
85
86+int
87+secure_permissions(struct stat *st, uid_t uid)
88+{
89+ if (!platform_sys_dir_uid(st->st_uid) && st->st_uid != uid)
90+ return 0;
91+ if ((st->st_mode & 002) != 0)
92+ return 0;
93+ if ((st->st_mode & 020) != 0) {
94+ /* If the file is group-writable, the group in question must
95+ * have exactly one member, namely the file's owner.
96+ * (Zero-member groups are typically used by setgid
97+ * binaries, and are unlikely to be suitable.)
98+ */
99+ struct passwd *pw;
100+ struct group *gr;
101+ int members = 0;
102+
103+ gr = getgrgid(st->st_gid);
104+ if (!gr)
105+ return 0;
106+
107+ /* Check primary group memberships. */
108+ while ((pw = getpwent()) != NULL) {
109+ if (pw->pw_gid == gr->gr_gid) {
110+ ++members;
111+ if (pw->pw_uid != uid)
112+ return 0;
113+ }
114+ }
115+ endpwent();
116+
117+ pw = getpwuid(st->st_uid);
118+ if (!pw)
119+ return 0;
120+
121+ /* Check supplementary group memberships. */
122+ if (gr->gr_mem[0]) {
123+ ++members;
124+ if (strcmp(pw->pw_name, gr->gr_mem[0]) ||
125+ gr->gr_mem[1])
126+ return 0;
127+ }
128+
129+ if (!members)
130+ return 0;
131+ }
132+ return 1;
133+}
134+
135 int
136 tun_open(int tun, int mode, char **ifname)
137 {
138@@ -2056,8 +2106,7 @@ safe_path(const char *name, struct stat *stp, const char *pw_dir,
139 snprintf(err, errlen, "%s is not a regular file", buf);
140 return -1;
141 }
142- if ((!platform_sys_dir_uid(stp->st_uid) && stp->st_uid != uid) ||
143- (stp->st_mode & 022) != 0) {
144+ if (!secure_permissions(stp, uid)) {
145 snprintf(err, errlen, "bad ownership or modes for file %s",
146 buf);
147 return -1;
148@@ -2072,8 +2121,7 @@ safe_path(const char *name, struct stat *stp, const char *pw_dir,
149 strlcpy(buf, cp, sizeof(buf));
150
151 if (stat(buf, &st) == -1 ||
152- (!platform_sys_dir_uid(st.st_uid) && st.st_uid != uid) ||
153- (st.st_mode & 022) != 0) {
154+ !secure_permissions(&st, uid)) {
155 snprintf(err, errlen,
156 "bad ownership or modes for directory %s", buf);
157 return -1;
158diff --git a/misc.h b/misc.h
159index ab94a79c0..b34c798e7 100644
160--- a/misc.h
161+++ b/misc.h
162@@ -192,6 +192,8 @@ struct notifier_ctx *notify_start(int, const char *, ...)
163 __attribute__((format(printf, 2, 3)));
164 void notify_complete(struct notifier_ctx *);
165
166+int secure_permissions(struct stat *st, uid_t uid);
167+
168 #define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
169 #define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
170 #define ROUNDUP(x, y) ((((x)+((y)-1))/(y))*(y))
171diff --git a/readconf.c b/readconf.c
172index 3d0a812b3..f4f273c96 100644
173--- a/readconf.c
174+++ b/readconf.c
175@@ -1967,8 +1967,7 @@ read_config_file_depth(const char *filename, struct passwd *pw,
176
177 if (fstat(fileno(f), &sb) == -1)
178 fatal("fstat %s: %s", filename, strerror(errno));
179- if (((sb.st_uid != 0 && sb.st_uid != getuid()) ||
180- (sb.st_mode & 022) != 0))
181+ if (!secure_permissions(&sb, getuid()))
182 fatal("Bad owner or permissions on %s", filename);
183 }
184
185diff --git a/ssh.1 b/ssh.1
186index be8e964f0..5d613076c 100644
187--- a/ssh.1
188+++ b/ssh.1
189@@ -1528,6 +1528,8 @@ The file format and configuration options are described in
190 .Xr ssh_config 5 .
191 Because of the potential for abuse, this file must have strict permissions:
192 read/write for the user, and not writable by others.
193+It may be group-writable provided that the group in question contains only
194+the user.
195 .Pp
196 .It Pa ~/.ssh/environment
197 Contains additional definitions for environment variables; see
198diff --git a/ssh_config.5 b/ssh_config.5
199index 3ceb800ba..190e1d927 100644
200--- a/ssh_config.5
201+++ b/ssh_config.5
202@@ -2010,6 +2010,8 @@ The format of this file is described above.
203 This file is used by the SSH client.
204 Because of the potential for abuse, this file must have strict permissions:
205 read/write for the user, and not writable by others.
206+It may be group-writable provided that the group in question contains only
207+the user.
208 .It Pa /etc/ssh/ssh_config
209 Systemwide configuration file.
210 This file provides defaults for those
diff --git a/debian/po/POTFILES.in b/debian/po/POTFILES.in
new file mode 100644
index 000000000..c619f3451
--- /dev/null
+++ b/debian/po/POTFILES.in
@@ -0,0 +1 @@
[type: gettext/rfc822deb] openssh-server.templates
diff --git a/debian/po/cs.po b/debian/po/cs.po
new file mode 100644
index 000000000..d01e0ffdc
--- /dev/null
+++ b/debian/po/cs.po
@@ -0,0 +1,55 @@
1# Czech PO debconf template translation of openssh.
2# Copyright (C) 2014 Michal Simunek <michal.simunek@gmail.com>
3# This file is distributed under the same license as the openssh package.
4# Michal Simunek <michal.simunek@gmail.com>, 2014.
5#
6msgid ""
7msgstr ""
8"Project-Id-Version: openssh 1:6.6p1-1\n"
9"Report-Msgid-Bugs-To: openssh@packages.debian.org\n"
10"POT-Creation-Date: 2014-03-20 02:06+0000\n"
11"PO-Revision-Date: 2014-06-12 12:25+0200\n"
12"Last-Translator: Michal Simunek <michal.simunek@gmail.com>\n"
13"Language-Team: Czech <debian-l10n-czech@lists.debian.org>\n"
14"Language: cs\n"
15"MIME-Version: 1.0\n"
16"Content-Type: text/plain; charset=utf-8\n"
17"Content-Transfer-Encoding: 8bit\n"
18
19#. Type: boolean
20#. Description
21#: ../openssh-server.templates:1001
22msgid "Disable SSH password authentication for root?"
23msgstr "Zakázat ověřování heslem pro uživatele root?"
24
25#. Type: boolean
26#. Description
27#: ../openssh-server.templates:1001
28msgid ""
29"Previous versions of openssh-server permitted logging in as root over SSH "
30"using password authentication. The default for new installations is now "
31"\"PermitRootLogin prohibit-password\", which disables password "
32"authentication for root without breaking systems that have explicitly "
33"configured SSH public key authentication for root."
34msgstr ""
35"Předchozí verze openssh-server dovolovala přihlašovat se přes SSH jako root "
36"pomocí ověřování heslem. Výchozí volba pro nové instalace je nyní "
37"\"PermitRootLogin prohibit-password\", která zakazuje ověřování heslem pro "
38"uživatele root, aniž by to omezilo systémy, které mají explicitně nastaveno "
39"ověřování veřejným SSH klíčem pro uživatele root."
40
41#. Type: boolean
42#. Description
43#: ../openssh-server.templates:1001
44msgid ""
45"This change makes systems more secure against brute-force password "
46"dictionary attacks on the root user (a very common target for such attacks). "
47"However, it may break systems that are set up with the expectation of being "
48"able to SSH as root using password authentication. You should only make this "
49"change if you do not need to do that."
50msgstr ""
51"Tato změna činí systémy zabezpečenějšími proti útokům hrubou silou na heslo "
52"uživatele root pomocí slovníku (velmi častý cíl útoků). Nicméně, to může "
53"poškodit systémy, které jsou nastaveny s předpokladem, že bude možné se "
54"přihlašovat přes SSH jako root pomocí ověřování heslem. Změnu této volby "
55"byste měli provést pouze pokud ověřování heslem potřebujete."
diff --git a/debian/po/da.po b/debian/po/da.po
new file mode 100644
index 000000000..70d576d7b
--- /dev/null
+++ b/debian/po/da.po
@@ -0,0 +1,55 @@
1# Danish translation openssh.
2# Copyright (C) 2014 openssh og nedenstående oversættere.
3# This file is distributed under the same license as the openssh package.
4# Joe Hansen <joedalton2@yahoo.dk>, 2014.
5#
6msgid ""
7msgstr ""
8"Project-Id-Version: openssh\n"
9"Report-Msgid-Bugs-To: openssh@packages.debian.org\n"
10"POT-Creation-Date: 2014-03-20 02:06+0000\n"
11"PO-Revision-Date: 2014-03-21 23:51+0200\n"
12"Last-Translator: Joe Hansen <joedalton2@yahoo.dk>\n"
13"Language-Team: Danish <debian-l10n-danish@lists.debian.org>\n"
14"Language: da\n"
15"MIME-Version: 1.0\n"
16"Content-Type: text/plain; charset=UTF-8\n"
17"Content-Transfer-Encoding: 8bit\n"
18
19#. Type: boolean
20#. Description
21#: ../openssh-server.templates:1001
22msgid "Disable SSH password authentication for root?"
23msgstr "Deaktiver SSH-adgangskodegodkendelse for root?"
24
25#. Type: boolean
26#. Description
27#: ../openssh-server.templates:1001
28msgid ""
29"Previous versions of openssh-server permitted logging in as root over SSH "
30"using password authentication. The default for new installations is now "
31"\"PermitRootLogin prohibit-password\", which disables password "
32"authentication for root without breaking systems that have explicitly "
33"configured SSH public key authentication for root."
34msgstr ""
35"Tidligere versioner af openssh-server tillod indlogning som root over SSH "
36"med brug af adgangskodegodkendelse. Standarden for nye installationer er nu "
37"»PermitRootLogin prohibit-password«, som deaktiverer adgangskodegodkendelse "
38"for root uden at ødelægge systemer, som eksplicit har konfigureret SSH-"
39"offentlig nøglegodkendelse for root."
40
41#. Type: boolean
42#. Description
43#: ../openssh-server.templates:1001
44msgid ""
45"This change makes systems more secure against brute-force password "
46"dictionary attacks on the root user (a very common target for such attacks). "
47"However, it may break systems that are set up with the expectation of being "
48"able to SSH as root using password authentication. You should only make this "
49"change if you do not need to do that."
50msgstr ""
51"Denne ændring gør systemer mere sikre mod brute-force angreb vis ordlister "
52"med adgangskoder på root-brugeren (et meget ofte mål for sådanne angreb). "
53"Det kan dog ødelægge systemer, som er opsat med forventning om at kunne SSH "
54"som root via brug af adgangskodegodkendelse. Du skal kun lave denne ændring, "
55"hvis du ikke har brug for dette."
diff --git a/debian/po/de.po b/debian/po/de.po
new file mode 100644
index 000000000..ecba54b6c
--- /dev/null
+++ b/debian/po/de.po
@@ -0,0 +1,61 @@
1# openssh.
2# Copyright (C) 2014 Colin Watson
3# Copyright (C) 2014 Stephan Beck
4# This file is distributed under the same license as the openssh package.
5# Stephan Beck <sbeck@mailbox.org>, 2014.
6#
7msgid ""
8msgstr ""
9"Project-Id-Version: openssh_1:6.6p1-1\n"
10"Report-Msgid-Bugs-To: openssh@packages.debian.org\n"
11"POT-Creation-Date: 2014-03-20 02:06+0000\n"
12"PO-Revision-Date: 2014-03-24 22:21+0100\n"
13"Last-Translator: Stephan Beck <sbeck@mailbox.org>\n"
14"Language-Team: Debian German translation team <debian-l10n-german@lists."
15"debian.org>\n"
16"Language: de\n"
17"MIME-Version: 1.0\n"
18"Content-Type: text/plain; charset=UTF-8\n"
19"Content-Transfer-Encoding: 8bit\n"
20
21#. Type: boolean
22#. Description
23#: ../openssh-server.templates:1001
24msgid "Disable SSH password authentication for root?"
25msgstr "SSH Passwort-Authentifizierung für »root« deaktivieren?"
26
27#. Type: boolean
28#. Description
29#: ../openssh-server.templates:1001
30msgid ""
31"Previous versions of openssh-server permitted logging in as root over SSH "
32"using password authentication. The default for new installations is now "
33"\"PermitRootLogin prohibit-password\", which disables password "
34"authentication for root without breaking systems that have explicitly "
35"configured SSH public key authentication for root."
36msgstr ""
37"Vorherige Versionen von openssh-server erlaubten das Anmelden als »root« "
38"über SSH unter Verwendung von Passwort-Authentifizierung. Die "
39"Standardeinstellung für Neuinstallationen lautet nun »PermitRootLogin "
40"prohibit-password«, wodurch die Passwort-Authentifizierung für »root« "
41"deaktiviert wird, und Systeme dennoch funktionsfähig bleiben, bei denen "
42"ausdrücklich die Authentifizierung als »root« mittels öffentlichem SSH-"
43"Schlüssel konfiguriert ist."
44
45#. Type: boolean
46#. Description
47#: ../openssh-server.templates:1001
48msgid ""
49"This change makes systems more secure against brute-force password "
50"dictionary attacks on the root user (a very common target for such attacks). "
51"However, it may break systems that are set up with the expectation of being "
52"able to SSH as root using password authentication. You should only make this "
53"change if you do not need to do that."
54msgstr ""
55"Diese Änderung sichert Systeme besser gegen jene Angriffe auf den Benutzer "
56"»root« (ein verbreitetes Ziel solcher Angriffe) ab, die das Passwort durch "
57"simples Ausprobieren aller Einträge von Wörterbüchern zu erraten versuchen. "
58"Sie kann allerdings dazu führen, dass Systeme nicht mehr funktionieren, die "
59"in der Absicht konfiguriert wurden, die Anmeldung als »root« über SSH unter "
60"Verwendung von Passwort-Authentifizierung zuzulassen. Sie sollten diese "
61"Änderung nur vornehmen, wenn Sie auf Letzteres verzichten können."
diff --git a/debian/po/es.po b/debian/po/es.po
new file mode 100644
index 000000000..de8a67ace
--- /dev/null
+++ b/debian/po/es.po
@@ -0,0 +1,80 @@
1# openssh po-debconf translation to Spanish
2# Copyright (C) 2014 Software in the Public Interest
3# This file is distributed under the same license as the openssh package.
4#
5# Changes:
6# - Initial translation
7# Matías A. Bellone <matiasbellone+debian@gmail.com>, 2014
8#
9# Traductores, si no conocen el formato PO, merece la pena leer la
10# de gettext, especialmente las secciones dedicadas a este
11# formato, por ejemplo ejecutando:
12# info -n '(gettext)PO Files'
13# info -n '(gettext)Header Entry'
14#
15# Equipo de traducción al español, por favor, lean antes de traducir
16# los siguientes documentos:
17#
18# - El proyecto de traducción de Debian al español
19# http://www.debian.org/intl/spanish/
20# especialmente las notas de traducción en
21# http://www.debian.org/intl/spanish/notas
22#
23# - La guía de traducción de po's de debconf:
24# /usr/share/doc/po-debconf/README-trans
25# o http://www.debian.org/intl/l10n/po-debconf/README-trans
26#
27msgid ""
28msgstr ""
29"Project-Id-Version: openssh\n"
30"Report-Msgid-Bugs-To: openssh@packages.debian.org\n"
31"POT-Creation-Date: 2014-03-20 02:06+0000\n"
32"PO-Revision-Date: 2014-03-23 20:43-0300\n"
33"Last-Translator: Matías Bellone <matiasbellone+debian@gmail.com>\n"
34"Language-Team: Debian l10n Spanish <debian-l10n-spanish@lists.debian.org>\n"
35"Language: es\n"
36"MIME-Version: 1.0\n"
37"Content-Type: text/plain; charset=UTF-8\n"
38"Content-Transfer-Encoding: 8bit\n"
39
40#. Type: boolean
41#. Description
42#: ../openssh-server.templates:1001
43msgid "Disable SSH password authentication for root?"
44msgstr ""
45"¿Desea desactivar la autenticación SSH mediante contraseña para el usuario "
46"root?"
47
48#. Type: boolean
49#. Description
50#: ../openssh-server.templates:1001
51msgid ""
52"Previous versions of openssh-server permitted logging in as root over SSH "
53"using password authentication. The default for new installations is now "
54"\"PermitRootLogin prohibit-password\", which disables password "
55"authentication for root without breaking systems that have explicitly "
56"configured SSH public key authentication for root."
57msgstr ""
58"Las versiones anteriores de openssh-server permitían iniciar sesión como "
59"usuario root utilizando autenticación con contraseña. La configuración "
60"predeterminada para las nuevas instalaciones ahora incluye «PermitRootLogin "
61"prohibit-password», lo que desactiva la autenticación con contraseña para el "
62"usuario root sin romper los sistemas que tienen configurado explícitamente "
63"la autenticación SSH utilizando claves públicas para el usuario root."
64
65#. Type: boolean
66#. Description
67#: ../openssh-server.templates:1001
68msgid ""
69"This change makes systems more secure against brute-force password "
70"dictionary attacks on the root user (a very common target for such attacks). "
71"However, it may break systems that are set up with the expectation of being "
72"able to SSH as root using password authentication. You should only make this "
73"change if you do not need to do that."
74msgstr ""
75"Este cambio hace que los sistemas sean más resistentes contra ataques de "
76"fuerza bruta basados en diccionarios sobre el usuario root (un objetivo muy "
77"común para este tipo de ataques). Sin embargo, podría romper sistemas cuya "
78"configuración permite que el usuario root inicie sesión a través de SSH "
79"utilizando una contraseña. Sólo debería realizar este cambio si no necesita "
80"este comportamiento."
diff --git a/debian/po/fr.po b/debian/po/fr.po
new file mode 100644
index 000000000..f7125e9a3
--- /dev/null
+++ b/debian/po/fr.po
@@ -0,0 +1,59 @@
1# Translation of openssh debconf template to French
2# Copyright (C) 2014
3# This file is distributed under the same license as the openssh package.
4# Étienne Gilli <etienne.gilli@gmail.com>, 2014.
5#
6msgid ""
7msgstr ""
8"Project-Id-Version: openssh_1:6.5p1-6\n"
9"Report-Msgid-Bugs-To: openssh@packages.debian.org\n"
10"POT-Creation-Date: 2014-03-20 02:06+0000\n"
11"PO-Revision-Date: 2014-03-22 08:26+0100\n"
12"Last-Translator: Étienne Gilli <etienne.gilli@gmail.com>\n"
13"Language-Team: French <debian-l10n-french@lists.debian.org>\n"
14"Language: fr\n"
15"MIME-Version: 1.0\n"
16"Content-Type: text/plain; charset=UTF-8\n"
17"Content-Transfer-Encoding: 8bit\n"
18
19#. Type: boolean
20#. Description
21#: ../openssh-server.templates:1001
22msgid "Disable SSH password authentication for root?"
23msgstr ""
24"Désactiver l’authentification SSH par mot de passe pour le superutilisateur ?"
25
26#. Type: boolean
27#. Description
28#: ../openssh-server.templates:1001
29msgid ""
30"Previous versions of openssh-server permitted logging in as root over SSH "
31"using password authentication. The default for new installations is now "
32"\"PermitRootLogin prohibit-password\", which disables password "
33"authentication for root without breaking systems that have explicitly "
34"configured SSH public key authentication for root."
35msgstr ""
36"Les versions précédentes du paquet openssh-server autorisaient la connexion "
37"par SSH du superutilisateur (root) en utilisant l’authentification par mot "
38"de passe. Par défaut, les nouvelles installations ont maintenant l’option "
39"« PermitRootLogin prohibit-password », qui désactive l’authentification par "
40"mot de passe pour le compte « root », sans casser les systèmes qui ont "
41"configuré explicitement l’authentification SSH par clé publique pour ce "
42"compte."
43
44#. Type: boolean
45#. Description
46#: ../openssh-server.templates:1001
47msgid ""
48"This change makes systems more secure against brute-force password "
49"dictionary attacks on the root user (a very common target for such attacks). "
50"However, it may break systems that are set up with the expectation of being "
51"able to SSH as root using password authentication. You should only make this "
52"change if you do not need to do that."
53msgstr ""
54"Cette modification rend les systèmes plus robustes face aux attaques par "
55"force brute et par dictionnaire contre le superutilisateur (très souvent "
56"pris pour cible par ce type d’attaque). Cependant, cela peut rendre "
57"inutilisables les systèmes reposant sur la possibilité de se connecter au "
58"compte « root » par SSH avec authentification par mot de passe. Vous ne "
59"devriez appliquer cette modification que si ce n’est pas votre cas."
diff --git a/debian/po/it.po b/debian/po/it.po
new file mode 100644
index 000000000..dd7106090
--- /dev/null
+++ b/debian/po/it.po
@@ -0,0 +1,58 @@
1# Italian translation of openssh debconf messages.
2# Copyright (C) 2014, openssh package copyright holder
3# This file is distributed under the same license as the openssh package.
4# Beatrice Torracca <beatricet@libero.it>, 2014.
5msgid ""
6msgstr ""
7"Project-Id-Version: openssh\n"
8"Report-Msgid-Bugs-To: openssh@packages.debian.org\n"
9"POT-Creation-Date: 2014-03-20 02:06+0000\n"
10"PO-Revision-Date: 2014-03-28 11:12+0200\n"
11"Last-Translator: Beatrice Torracca <beatricet@libero.it>\n"
12"Language-Team: Italian <debian-l10n-italian@lists.debian.org>\n"
13"Language: it\n"
14"MIME-Version: 1.0\n"
15"Content-Type: text/plain; charset=UTF-8\n"
16"Content-Transfer-Encoding: 8bit\n"
17"Plural-Forms: nplurals=2; plural=(n != 1);\n"
18"X-Generator: Virtaal 0.7.1\n"
19
20#. Type: boolean
21#. Description
22#: ../openssh-server.templates:1001
23msgid "Disable SSH password authentication for root?"
24msgstr "Disabilitare l'autenticazione SSH con password per root?"
25
26#. Type: boolean
27#. Description
28#: ../openssh-server.templates:1001
29msgid ""
30"Previous versions of openssh-server permitted logging in as root over SSH "
31"using password authentication. The default for new installations is now "
32"\"PermitRootLogin prohibit-password\", which disables password "
33"authentication for root without breaking systems that have explicitly "
34"configured SSH public key authentication for root."
35msgstr ""
36"Le versioni precedenti di openssh-server permettevano il login come root via "
37"SSH, usando l'autenticazione con password. Il comportamento predefinito "
38"delle nuove installazioni è «PermitRootLogin prohibit-password» che "
39"disabilita l'autenticazione con password per root, senza rendere non "
40"funzionanti sistemi che hanno esplicitamente configurato l'autenticazione "
41"SSH con chiave pubblica per root."
42
43#. Type: boolean
44#. Description
45#: ../openssh-server.templates:1001
46msgid ""
47"This change makes systems more secure against brute-force password "
48"dictionary attacks on the root user (a very common target for such attacks). "
49"However, it may break systems that are set up with the expectation of being "
50"able to SSH as root using password authentication. You should only make this "
51"change if you do not need to do that."
52msgstr ""
53"Questo cambiamento rende i sistemi più al sicuro da attacchi di forza bruta "
54"a dizionario sulle password per l'utente root (un obiettivo molto comune per "
55"tali attacchi). Tuttavia, può rendere non funzionanti sistemi che sono "
56"impostati facendo affidamento sulla possibilità di autenticazione SSH come "
57"root usando la password. Si dovrebbe fare questo cambiamento solo se non si "
58"ha bisogno di tale comportamento."
diff --git a/debian/po/ja.po b/debian/po/ja.po
new file mode 100644
index 000000000..db382f19a
--- /dev/null
+++ b/debian/po/ja.po
@@ -0,0 +1,55 @@
1# SOME DESCRIPTIVE TITLE.
2# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3# This file is distributed under the same license as the openssh package.
4# victory <victory.deb@gmail.com>, 2014.
5#
6msgid ""
7msgstr ""
8"Project-Id-Version: openssh\n"
9"Report-Msgid-Bugs-To: openssh@packages.debian.org\n"
10"POT-Creation-Date: 2014-03-20 02:06+0000\n"
11"PO-Revision-Date: 2014-03-20 11:06+0900\n"
12"Last-Translator: victory <victory.deb@gmail.com>\n"
13"Language-Team: Japanese <debian-japanese@lists.debian.org>\n"
14"Language: ja\n"
15"MIME-Version: 1.0\n"
16"Content-Type: text/plain; charset=UTF-8\n"
17"Content-Transfer-Encoding: 8bit\n"
18
19#. Type: boolean
20#. Description
21#: ../openssh-server.templates:1001
22msgid "Disable SSH password authentication for root?"
23msgstr "root での SSH パスワード認証を無効にしますか?"
24
25#. Type: boolean
26#. Description
27#: ../openssh-server.templates:1001
28msgid ""
29"Previous versions of openssh-server permitted logging in as root over SSH "
30"using password authentication. The default for new installations is now "
31"\"PermitRootLogin prohibit-password\", which disables password "
32"authentication for root without breaking systems that have explicitly "
33"configured SSH public key authentication for root."
34msgstr ""
35"openssh-server の以前のバージョンではパスワード認証を利用した SSH 経由の "
36"root のログインを許可していました。新しくインストールした場合のデフォルト値が"
37"現在は「PermitRootLogin prohibit-password」になり、root のパスワード認証を無"
38"効化しますが SSH の公開鍵認証を root 用に明示的に設定しているシステムでは特に"
39"問題はありません。"
40
41#. Type: boolean
42#. Description
43#: ../openssh-server.templates:1001
44msgid ""
45"This change makes systems more secure against brute-force password "
46"dictionary attacks on the root user (a very common target for such attacks). "
47"However, it may break systems that are set up with the expectation of being "
48"able to SSH as root using password authentication. You should only make this "
49"change if you do not need to do that."
50msgstr ""
51"この変更によりシステムは root ユーザ (こういった攻撃ではとても一般的な攻撃対"
52"象です) へのブルートフォースによるパスワード辞書攻撃に対してはより安全になり"
53"ます。しかしパスワード認証により root で SSH 接続できることを前提として構成し"
54"たシステムでは問題が発生する可能性があります。そういった必要のない場合にのみ"
55"この変更を行うようにしてください。"
diff --git a/debian/po/nl.po b/debian/po/nl.po
new file mode 100644
index 000000000..3afd6171e
--- /dev/null
+++ b/debian/po/nl.po
@@ -0,0 +1,60 @@
1# Dutch translation of openssh debconf templates.
2# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3# This file is distributed under the same license as the openssh package.
4# Frans Spiesschaert <Frans.Spiesschaert@yucom.be>, 2014.
5#
6msgid ""
7msgstr ""
8"Project-Id-Version: openssh\n"
9"Report-Msgid-Bugs-To: openssh@packages.debian.org\n"
10"POT-Creation-Date: 2014-03-20 02:06+0000\n"
11"PO-Revision-Date: 2014-10-03 23:54+0200\n"
12"Last-Translator: Frans Spiesschaert <Frans.Spiesschaert@yucom.be>\n"
13"Language-Team: Debian Dutch l10n Team <debian-l10n-dutch@lists.debian.org>\n"
14"Language: nl\n"
15"MIME-Version: 1.0\n"
16"Content-Type: text/plain; charset=UTF-8\n"
17"Content-Transfer-Encoding: 8bit\n"
18"Plural-Forms: nplurals=2; plural=(n != 1);\n"
19
20#. Type: boolean
21#. Description
22#: ../openssh-server.templates:1001
23msgid "Disable SSH password authentication for root?"
24msgstr ""
25"Wachtwoordauthenticatie over SSH voor de systeembeheerder uitschakelen?"
26
27#. Type: boolean
28#. Description
29#: ../openssh-server.templates:1001
30msgid ""
31"Previous versions of openssh-server permitted logging in as root over SSH "
32"using password authentication. The default for new installations is now "
33"\"PermitRootLogin prohibit-password\", which disables password "
34"authentication for root without breaking systems that have explicitly "
35"configured SSH public key authentication for root."
36msgstr ""
37"Eerdere versies van de openssh-server lieten de systeembeheerder toe om zich "
38"over SSH te authenticeren met een wachtwoord. Voor nieuwe installaties is de "
39"standaard nu \"PermitRootLogin prohibit-password\". Deze standaardinstelling "
40"maakt het voor de systeembeheerder onmogelijk om zich via een wachtwoord te "
41"authenticeren. Deze instelling heeft geen impact op systemen waarbij de SSH-"
42"configuratie expliciet vereist dat de systeembeheerder zich authenticeert "
43"via een publieke sleutel."
44
45#. Type: boolean
46#. Description
47#: ../openssh-server.templates:1001
48msgid ""
49"This change makes systems more secure against brute-force password "
50"dictionary attacks on the root user (a very common target for such attacks). "
51"However, it may break systems that are set up with the expectation of being "
52"able to SSH as root using password authentication. You should only make this "
53"change if you do not need to do that."
54msgstr ""
55"Deze wijziging maakt systemen veiliger tegenover aanvallen met brute kracht "
56"(met een wachtwoordenwoordenboek) op de systeembeheerder, een zeer courant "
57"doelwit voor zulke aanvallen. Maar het kan systemen onbruikbaar maken die "
58"ingesteld werden vanuit de verwachting dat de systeembeheerder SSH kan "
59"gebruiken met authenticatie via wachtwoord. Enkel wanneer u dit laatste niet "
60"nodig heeft, zou u deze wijziging kunnen doorvoeren."
diff --git a/debian/po/pt.po b/debian/po/pt.po
new file mode 100644
index 000000000..2dab84ccf
--- /dev/null
+++ b/debian/po/pt.po
@@ -0,0 +1,59 @@
1# Translation of openssh's debconf messages to European Portuguese
2# Copyright (C) 2014 YEAR THE openssh'S COPYRIGHT HOLDER
3# This file is distributed under the same license as the openssh package.
4#
5# Américo Monteiro <a_monteiro@gmx.com>, 2014.
6msgid ""
7msgstr ""
8"Project-Id-Version: openssh 1:6.6p1-1\n"
9"Report-Msgid-Bugs-To: openssh@packages.debian.org\n"
10"POT-Creation-Date: 2014-03-20 02:06+0000\n"
11"PO-Revision-Date: 2014-03-21 21:13+0000\n"
12"Last-Translator: Américo Monteiro <a_monteiro@gmx.com>\n"
13"Language-Team: Portuguese <traduz@debianpt.org>\n"
14"Language: pt\n"
15"MIME-Version: 1.0\n"
16"Content-Type: text/plain; charset=UTF-8\n"
17"Content-Transfer-Encoding: 8bit\n"
18"Plural-Forms: nplurals=2; plural=(n != 1);\n"
19"X-Generator: Lokalize 1.4\n"
20
21#. Type: boolean
22#. Description
23#: ../openssh-server.templates:1001
24msgid "Disable SSH password authentication for root?"
25msgstr "Desactivar a autenticação SSH por palavra passe para o root?"
26
27#. Type: boolean
28#. Description
29#: ../openssh-server.templates:1001
30msgid ""
31"Previous versions of openssh-server permitted logging in as root over SSH "
32"using password authentication. The default for new installations is now "
33"\"PermitRootLogin prohibit-password\", which disables password "
34"authentication for root without breaking systems that have explicitly "
35"configured SSH public key authentication for root."
36msgstr ""
37"As versões anteriores do servidor openssh permitiam iniciar sessão como root "
38"sobre SSH usando autenticação por palavra-passe. A predefinição para novas "
39"instalações é agora \"PermitRootLogin prohibit-password\", a qual desactiva "
40"a autenticação por palavra-passe para o root sem danificar os sistemas que "
41"têm configurados explicitamente autenticação SSH por chave pública para o "
42"root."
43
44#. Type: boolean
45#. Description
46#: ../openssh-server.templates:1001
47msgid ""
48"This change makes systems more secure against brute-force password "
49"dictionary attacks on the root user (a very common target for such attacks). "
50"However, it may break systems that are set up with the expectation of being "
51"able to SSH as root using password authentication. You should only make this "
52"change if you do not need to do that."
53msgstr ""
54"Esta alteração torna os sistemas mais seguros contra ataques em que se "
55"forçam dicionários de palavras-passe no utilizador root (um alvo muito comum "
56"para tais ataques). No entanto, pode danificar sistemas que estão "
57"configurados com a expectativa de serem capazes de SSH como root usando "
58"autenticação por palavra-passe. Apenas deverá fazer esta alteração se não "
59"precisa de tal método de autenticação."
diff --git a/debian/po/pt_BR.po b/debian/po/pt_BR.po
new file mode 100644
index 000000000..99b1182f1
--- /dev/null
+++ b/debian/po/pt_BR.po
@@ -0,0 +1,57 @@
1# Debconf translations for openssh.
2# Copyright (C) 2014 THE openssh'S COPYRIGHT HOLDER
3# This file is distributed under the same license as the openssh package.
4# José de Figueiredo <deb.gnulinux@gmail.com>, 2014.
5#
6#
7msgid ""
8msgstr ""
9"Project-Id-Version: openssh\n"
10"Report-Msgid-Bugs-To: openssh@packages.debian.org\n"
11"POT-Creation-Date: 2014-03-20 02:06+0000\n"
12"PO-Revision-Date: 2014-11-23 23:49-0200\n"
13"Last-Translator: José de Figueiredo <deb.gnulinux@gmail.com>\n"
14"Language-Team: Brazilian Portuguese <debian-l10n-portuguese@lists.debian."
15"org>\n"
16"Language: pt_BR\n"
17"MIME-Version: 1.0\n"
18"Content-Type: text/plain; charset=UTF-8\n"
19"Content-Transfer-Encoding: 8bit\n"
20
21#. Type: boolean
22#. Description
23#: ../openssh-server.templates:1001
24msgid "Disable SSH password authentication for root?"
25msgstr "Desabilitar autenticação por senha do SSH para root?"
26
27#. Type: boolean
28#. Description
29#: ../openssh-server.templates:1001
30msgid ""
31"Previous versions of openssh-server permitted logging in as root over SSH "
32"using password authentication. The default for new installations is now "
33"\"PermitRootLogin prohibit-password\", which disables password "
34"authentication for root without breaking systems that have explicitly "
35"configured SSH public key authentication for root."
36msgstr ""
37"Versões anteriores do openssh-server permitiam login como root sobre SSH "
38"usando autenticação por senha. O padrão para as novas instalações agora é "
39"\"PermitRootLogin prohibit-password\", que desabilita a autenticação por "
40"senha para root sem quebrar sistemas que tenham configurado explicitamente o "
41"SSH para autenticação por chave pública para root."
42
43#. Type: boolean
44#. Description
45#: ../openssh-server.templates:1001
46msgid ""
47"This change makes systems more secure against brute-force password "
48"dictionary attacks on the root user (a very common target for such attacks). "
49"However, it may break systems that are set up with the expectation of being "
50"able to SSH as root using password authentication. You should only make this "
51"change if you do not need to do that."
52msgstr ""
53"Esta alteração torna sistemas mais seguros contra ataques de força bruta por "
54"dicionário de senhas no usuário root (um alvo muito comum destes ataques). "
55"Entretanto, ela pode quebrar sistemas que foram configurados com a "
56"expectativa de acesso SSH com root usando autenticação por senha. Você deve "
57"fazer esta mudança somente se você não precisa fazer isso."
diff --git a/debian/po/ru.po b/debian/po/ru.po
new file mode 100644
index 000000000..f2e1dafc4
--- /dev/null
+++ b/debian/po/ru.po
@@ -0,0 +1,57 @@
1# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
2# This file is distributed under the same license as the openssh package.
3#
4# Yuri Kozlov <yuray@komyakino.ru>, 2014.
5msgid ""
6msgstr ""
7"Project-Id-Version: openssh 1:6.6p1-1\n"
8"Report-Msgid-Bugs-To: openssh@packages.debian.org\n"
9"POT-Creation-Date: 2014-03-20 02:06+0000\n"
10"PO-Revision-Date: 2014-03-22 10:04+0400\n"
11"Last-Translator: Yuri Kozlov <yuray@komyakino.ru>\n"
12"Language-Team: Russian <debian-l10n-russian@lists.debian.org>\n"
13"Language: ru\n"
14"MIME-Version: 1.0\n"
15"Content-Type: text/plain; charset=UTF-8\n"
16"Content-Transfer-Encoding: 8bit\n"
17"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
18"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
19"X-Generator: Lokalize 1.4\n"
20
21#. Type: boolean
22#. Description
23#: ../openssh-server.templates:1001
24msgid "Disable SSH password authentication for root?"
25msgstr "Выключить в SSH аутентификацию по паролю для root?"
26
27#. Type: boolean
28#. Description
29#: ../openssh-server.templates:1001
30msgid ""
31"Previous versions of openssh-server permitted logging in as root over SSH "
32"using password authentication. The default for new installations is now "
33"\"PermitRootLogin prohibit-password\", which disables password "
34"authentication for root without breaking systems that have explicitly "
35"configured SSH public key authentication for root."
36msgstr ""
37"В предыдущих версиях openssh-server разрешён вход с правами пользователя "
38"root через SSH с помощью аутентификации по паролю. При новых установках по "
39"умолчанию теперь используется настройка «PermitRootLogin prohibit-password», "
40"которая отключает аутентификацию по паролю для root, что не вредит системам, "
41"у которых в SSH для root настроена аутентификация по открытому ключу."
42
43#. Type: boolean
44#. Description
45#: ../openssh-server.templates:1001
46msgid ""
47"This change makes systems more secure against brute-force password "
48"dictionary attacks on the root user (a very common target for such attacks). "
49"However, it may break systems that are set up with the expectation of being "
50"able to SSH as root using password authentication. You should only make this "
51"change if you do not need to do that."
52msgstr ""
53"Это изменение делает системы более стойкими к атакам методом перебора "
54"словарных паролей для пользователя root (самая распространённая цель таких "
55"атак). Однако, это вредит системам, в которых специально настроен вход для "
56"root по SSH с парольной аутентификацией. Если это не ваш случай, то ответьте "
57"утвердительно."
diff --git a/debian/po/sv.po b/debian/po/sv.po
new file mode 100644
index 000000000..278b0ccbf
--- /dev/null
+++ b/debian/po/sv.po
@@ -0,0 +1,58 @@
1# Swedish translations for openssh package
2# Svenska översättningar för paket openssh.
3# Copyright (C) 2014 THE openssh'S COPYRIGHT HOLDER
4# This file is distributed under the same license as the openssh package.
5# Andreas Rönnquist <gusnan@gusnan.se>, 2014.
6#
7msgid ""
8msgstr ""
9"Project-Id-Version: openssh\n"
10"Report-Msgid-Bugs-To: openssh@packages.debian.org\n"
11"POT-Creation-Date: 2014-03-20 02:06+0000\n"
12"PO-Revision-Date: 2014-03-21 21:36+0100\n"
13"Last-Translator: Andreas Rönnquist <gusnan@gusnan.se>\n"
14"Language-Team: Swedish\n"
15"Language: sv\n"
16"MIME-Version: 1.0\n"
17"Content-Type: text/plain; charset=UTF-8\n"
18"Content-Transfer-Encoding: 8bit\n"
19"Plural-Forms: nplurals=2; plural=(n != 1);\n"
20
21#. Type: boolean
22#. Description
23#: ../openssh-server.templates:1001
24msgid "Disable SSH password authentication for root?"
25msgstr "Inaktivera SSH-lösenordsautentisering för root?"
26
27#. Type: boolean
28#. Description
29#: ../openssh-server.templates:1001
30msgid ""
31"Previous versions of openssh-server permitted logging in as root over SSH "
32"using password authentication. The default for new installations is now "
33"\"PermitRootLogin prohibit-password\", which disables password "
34"authentication for root without breaking systems that have explicitly "
35"configured SSH public key authentication for root."
36msgstr ""
37"Tidigare versioner av openssh-server tillät inloggning som root över SSH med "
38"hjälp av lösenordsautentisering. Standardinställningen för nya "
39"installationer är nu \"PermitRootLogin prohibit-password\", vilket "
40"inaktiverar lösenordsautentisering för root utan att förstöra system som "
41"explicit har konfigurerat nyckelautentisering med hjälp av publika nycklar "
42"för root."
43
44#. Type: boolean
45#. Description
46#: ../openssh-server.templates:1001
47msgid ""
48"This change makes systems more secure against brute-force password "
49"dictionary attacks on the root user (a very common target for such attacks). "
50"However, it may break systems that are set up with the expectation of being "
51"able to SSH as root using password authentication. You should only make this "
52"change if you do not need to do that."
53msgstr ""
54"Denna förändring gör system säkrare mot brute-force-angrepp med hjälp av "
55"ordlistor med lösenord på root-användaren (ett väldigt vanligt mål för "
56"sådana angrepp). Dock så kan detta förstöra system som förväntas kunna "
57"använda SSH som root med hjälp av lösenordsautentisering. Du skall endast "
58"göra denna förändring om du inte har ett behov av att kunna göra detta."
diff --git a/debian/po/templates.pot b/debian/po/templates.pot
new file mode 100644
index 000000000..47c9e3686
--- /dev/null
+++ b/debian/po/templates.pot
@@ -0,0 +1,46 @@
1# SOME DESCRIPTIVE TITLE.
2# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3# This file is distributed under the same license as the PACKAGE package.
4# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5#
6#, fuzzy
7msgid ""
8msgstr ""
9"Project-Id-Version: openssh\n"
10"Report-Msgid-Bugs-To: openssh@packages.debian.org\n"
11"POT-Creation-Date: 2014-03-20 02:06+0000\n"
12"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14"Language-Team: LANGUAGE <LL@li.org>\n"
15"Language: \n"
16"MIME-Version: 1.0\n"
17"Content-Type: text/plain; charset=CHARSET\n"
18"Content-Transfer-Encoding: 8bit\n"
19
20#. Type: boolean
21#. Description
22#: ../openssh-server.templates:1001
23msgid "Disable SSH password authentication for root?"
24msgstr ""
25
26#. Type: boolean
27#. Description
28#: ../openssh-server.templates:1001
29msgid ""
30"Previous versions of openssh-server permitted logging in as root over SSH "
31"using password authentication. The default for new installations is now "
32"\"PermitRootLogin prohibit-password\", which disables password "
33"authentication for root without breaking systems that have explicitly "
34"configured SSH public key authentication for root."
35msgstr ""
36
37#. Type: boolean
38#. Description
39#: ../openssh-server.templates:1001
40msgid ""
41"This change makes systems more secure against brute-force password "
42"dictionary attacks on the root user (a very common target for such attacks). "
43"However, it may break systems that are set up with the expectation of being "
44"able to SSH as root using password authentication. You should only make this "
45"change if you do not need to do that."
46msgstr ""
diff --git a/debian/po/tr.po b/debian/po/tr.po
new file mode 100644
index 000000000..1ada04101
--- /dev/null
+++ b/debian/po/tr.po
@@ -0,0 +1,58 @@
1# Turkish translation of openssh package
2# Copyright (C) 2014 Mert Dirik
3# This file is distributed under the same license as the openssh package.
4# Mert Dirik <mertdirik@gmail.com>, 2014.
5#
6msgid ""
7msgstr ""
8"Project-Id-Version: openssh-server\n"
9"Report-Msgid-Bugs-To: openssh@packages.debian.org\n"
10"POT-Creation-Date: 2014-03-20 02:06+0000\n"
11"PO-Revision-Date: 2014-08-01 14:44+0200\n"
12"Last-Translator: Mert Dirik <mertdirik@gmail.com>\n"
13"Language-Team: Debian L10n Turkish <debian-l10n-turkish@lists.debian.org>\n"
14"MIME-Version: 1.0\n"
15"Content-Type: text/plain; charset=UTF-8\n"
16"Content-Transfer-Encoding: 8bit\n"
17"X-Generator: Poedit 1.5.4\n"
18"Language: tr\n"
19
20#. Type: boolean
21#. Description
22#: ../openssh-server.templates:1001
23msgid "Disable SSH password authentication for root?"
24msgstr "root kullanıcısının parola ile kimlik doğrulaması engellensin mi?"
25
26#. Type: boolean
27#. Description
28#: ../openssh-server.templates:1001
29msgid ""
30"Previous versions of openssh-server permitted logging in as root over SSH "
31"using password authentication. The default for new installations is now "
32"\"PermitRootLogin prohibit-password\", which disables password "
33"authentication for root without breaking systems that have explicitly "
34"configured SSH public key authentication for root."
35msgstr ""
36"openssh-server'ın önceki sürümleri parola ile kimlik doğrulama kullanılarak "
37"root kullanıcısının SSH üzerinden oturum açmasına izin veriyordu. Artık yeni "
38"kurulumların öntanımlı ayarı \"PermitRootLogin prohibit-password\" "
39"şeklindedir. Bu ayar root kullanıcısının parola kullanarak oturum açmasını "
40"yasaklar. SSH genel anahtar doğrulama yöntemine ayrıca izin veren mevcut "
41"sistemler bu ayardan etkilenmez."
42
43#. Type: boolean
44#. Description
45#: ../openssh-server.templates:1001
46msgid ""
47"This change makes systems more secure against brute-force password "
48"dictionary attacks on the root user (a very common target for such attacks). "
49"However, it may break systems that are set up with the expectation of being "
50"able to SSH as root using password authentication. You should only make this "
51"change if you do not need to do that."
52msgstr ""
53"Bu ayar sistemleri kaba kuvvet sözlükten parola saldırılarına karşı güvenli "
54"hale getirir (root kullanıcısı bu tarz saldırıların en büyük "
55"hedeflerindendir). Fakat bu ayarın etkinleştirilmesi, root kullanıcısına "
56"parola doğrulama yöntemiyle oturum açılabileceği varsayımıyla hareket eden "
57"sistemlerde eskiden çalışan düzenin bozulmasına sebep olacaktır. Bu "
58"değişikliği yalnızca sorun çıkarmayacağından eminseniz yapın."
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 000000000..73a53c309
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,229 @@
1#!/usr/bin/make -f
2
3export DEB_BUILD_MAINT_OPTIONS := hardening=+all
4
5include /usr/share/dpkg/default.mk
6
7# Uncomment this to turn on verbose mode.
8# export DH_VERBOSE=1
9
10# This has to be exported to make some magic below work.
11export DH_OPTIONS
12
13ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
14 RUN_TESTS := yes
15else
16 RUN_TESTS :=
17endif
18
19ifeq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
20 PARALLEL :=
21else
22 PARALLEL := \
23 -j$(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
24endif
25
26ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
27 CC := gcc
28 PKG_CONFIG = pkg-config
29else
30 CC := $(DEB_HOST_GNU_TYPE)-gcc
31 PKG_CONFIG = $(DEB_HOST_GNU_TYPE)-pkg-config
32 RUN_TESTS :=
33endif
34
35# Change the version string to reflect distribution
36SSH_EXTRAVERSION := $(DEB_VENDOR)-$(shell echo '$(DEB_VERSION)' | sed -e 's/.*-//')
37
38UBUNTU := $(shell $(call dpkg_vendor_derives_from,Ubuntu))
39ifeq ($(UBUNTU),yes)
40DEFAULT_PATH := /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
41else
42DEFAULT_PATH := /usr/local/bin:/usr/bin:/bin:/usr/games
43endif
44SUPERUSER_PATH := /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
45
46ifeq ($(UBUNTU),yes)
47server_recommends := ssh-import-id
48else
49server_recommends :=
50endif
51
52# Common path configuration.
53confflags += --sysconfdir=/etc/ssh
54confflags += --libexecdir=\$${prefix}/lib/openssh
55
56# Common build options.
57confflags += --disable-strip
58confflags += --with-mantype=doc
59confflags += --with-4in6
60confflags += --with-privsep-path=/run/sshd
61confflags += --with-pid-dir=/run
62
63# The Hurd needs libcrypt for res_query et al.
64ifeq ($(DEB_HOST_ARCH_OS),hurd)
65confflags += --with-libs=-lcrypt
66endif
67
68# Everything above here is common to the deb and udeb builds.
69confflags_udeb := $(confflags)
70
71# Options specific to the deb build.
72confflags += --with-tcp-wrappers
73confflags += --with-pam
74confflags += --with-libedit
75confflags += --with-kerberos5=/usr
76confflags += --with-ssl-engine
77ifeq ($(DEB_HOST_ARCH_OS),linux)
78confflags += --with-selinux
79confflags += --with-audit=linux
80confflags += --with-systemd
81confflags += --with-security-key-builtin
82endif
83
84# The deb build wants xauth; the udeb build doesn't.
85confflags += --with-xauth=/usr/bin/xauth
86confflags_udeb += --without-xauth
87
88# Default paths. The udeb build has /usr/games removed.
89confflags += --with-default-path=$(DEFAULT_PATH) --with-superuser-path=$(SUPERUSER_PATH)
90confflags_udeb += --with-default-path=/usr/local/bin:/usr/bin:/bin --with-superuser-path=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
91
92# Compiler flags.
93cflags := $(CPPFLAGS) $(CFLAGS)
94cflags += -DSSH_EXTRAVERSION=\"$(SSH_EXTRAVERSION)\"
95cflags_udeb := -Os
96cflags_udeb += -DSSH_EXTRAVERSION=\"$(SSH_EXTRAVERSION)\"
97confflags += --with-cflags='$(cflags)'
98confflags_udeb += --with-cflags='$(cflags_udeb)'
99
100# Linker flags.
101confflags += --with-ldflags='$(strip -Wl,--as-needed $(LDFLAGS))'
102confflags_udeb += --with-ldflags='-Wl,--as-needed'
103
104ifeq ($(shell dpkg-vendor --is Ubuntu && echo yes) $(DEB_HOST_ARCH), yes i386)
105 BUILD_PACKAGES += -Nopenssh-tests
106endif
107
108%:
109 dh $@ --with=autoreconf,systemd,runit $(BUILD_PACKAGES)
110
111autoreconf:
112 autoreconf -f -i
113 cp -f /usr/share/misc/config.guess /usr/share/misc/config.sub ./
114
115override_dh_autoreconf-arch:
116 dh_autoreconf debian/rules -- autoreconf
117
118override_dh_autoreconf-indep:
119
120override_dh_auto_configure-arch:
121 dh_auto_configure -Bdebian/build-deb -- $(confflags)
122ifeq ($(filter noudeb,$(DEB_BUILD_PROFILES)),)
123 dh_auto_configure -Bdebian/build-udeb -- $(confflags_udeb)
124 # Avoid libnsl linkage. Ugh.
125 perl -pi -e 's/ +-lnsl//' debian/build-udeb/config.status
126 cd debian/build-udeb && ./config.status
127endif
128
129override_dh_auto_configure-indep:
130
131override_dh_auto_build-arch:
132 $(MAKE) -C debian/build-deb $(PARALLEL) ASKPASS_PROGRAM='/usr/bin/ssh-askpass'
133 $(MAKE) -C debian/build-deb regress-prep
134 $(MAKE) -C debian/build-deb $(PARALLEL) regress-binaries
135ifeq ($(filter noudeb,$(DEB_BUILD_PROFILES)),)
136 $(MAKE) -C debian/build-udeb $(PARALLEL) ASKPASS_PROGRAM='/usr/bin/ssh-askpass' ssh scp sftp sshd ssh-keygen
137endif
138
139ifeq ($(filter pkg.openssh.nognome,$(DEB_BUILD_PROFILES)),)
140 $(MAKE) -C contrib gnome-ssh-askpass3 CC='$(CC) $(CPPFLAGS) $(CFLAGS) -Wall -Wl,--as-needed $(LDFLAGS)' PKG_CONFIG=$(PKG_CONFIG)
141endif
142
143override_dh_auto_build-indep:
144
145override_dh_auto_test-arch:
146ifeq ($(RUN_TESTS),yes)
147 $(MAKE) -C debian/build-deb unit compat-tests
148 $(MAKE) -C debian/keygen-test
149endif
150
151override_dh_auto_test-indep:
152
153override_dh_auto_clean:
154 rm -rf debian/build-deb debian/build-udeb
155ifeq ($(RUN_TESTS),yes)
156 $(MAKE) -C debian/keygen-test clean
157endif
158 $(MAKE) -C contrib clean
159
160override_dh_auto_install-arch:
161 $(MAKE) -C debian/build-deb DESTDIR=`pwd`/debian/tmp install-nokeys
162
163override_dh_auto_install-indep:
164
165override_dh_install-arch:
166 rm -f debian/tmp/etc/ssh/sshd_config
167
168 dh_install -Nopenssh-client-udeb -Nopenssh-server-udeb --fail-missing
169ifeq ($(filter noudeb,$(DEB_BUILD_PROFILES)),)
170 dh_install -popenssh-client-udeb -popenssh-server-udeb \
171 --sourcedir=debian/build-udeb
172endif
173
174 # Remove version control tags to avoid unnecessary conffile
175 # resolution steps for administrators.
176 sed -i '/\$$OpenBSD:/d' \
177 debian/openssh-server/etc/ssh/moduli \
178 debian/openssh-client/etc/ssh/ssh_config
179
180# We'd like to use dh_install --fail-missing here, but that doesn't work
181# well in combination with dh-exec: it complains that files generated by
182# dh-exec for architecture-dependent packages aren't installed.
183override_dh_install-indep:
184 rm -f debian/tmp/etc/ssh/sshd_config
185 dh_install
186
187override_dh_installdocs:
188 dh_installdocs -Nopenssh-server -Nopenssh-sftp-server
189 dh_installdocs -popenssh-server -popenssh-sftp-server \
190 --link-doc=openssh-client
191 # Avoid breaking dh_installexamples later.
192 mkdir -p debian/openssh-server/usr/share/doc/openssh-client
193
194override_dh_systemd_enable:
195 dh_systemd_enable -popenssh-server --name ssh ssh.service
196 dh_systemd_enable -popenssh-server --name ssh --no-enable ssh.socket
197
198override_dh_installinit:
199 dh_installinit -R --name ssh
200
201debian/openssh-server.sshd.pam: debian/openssh-server.sshd.pam.in
202ifeq ($(DEB_HOST_ARCH_OS),linux)
203 sed 's/^@IF_KEYINIT@//' $< > $@
204else
205 sed '/^@IF_KEYINIT@/d' $< > $@
206endif
207
208override_dh_installpam: debian/openssh-server.sshd.pam
209 dh_installpam --name sshd
210
211override_dh_runit:
212 dh_runit -popenssh-server
213
214override_dh_fixperms-arch:
215 dh_fixperms
216 chmod u+s debian/openssh-client/usr/lib/openssh/ssh-keysign
217
218# Tighten libssl dependencies to match the check in entropy.c.
219override_dh_shlibdeps:
220 dh_shlibdeps
221 debian/adjust-openssl-dependencies
222
223override_dh_gencontrol:
224 dh_gencontrol -- -V'openssh-server:Recommends=$(server_recommends)'
225
226debian/faq.html:
227 wget -O - http://www.openssh.com/faq.html | \
228 sed 's,\(href="\)\(txt/\|[^":]*\.html\),\1http://www.openssh.com/\2,g' \
229 > debian/faq.html
diff --git a/debian/run-tests b/debian/run-tests
new file mode 100755
index 000000000..2b787ef60
--- /dev/null
+++ b/debian/run-tests
@@ -0,0 +1,39 @@
1#! /bin/sh
2# Run installed OpenSSH regression tests.
3
4tmp="$1"
5if [ -z "$tmp" ]; then
6 tmp="$(mktemp -d)"
7 cleanup () {
8 rm -rf "$tmp"
9 }
10 trap cleanup EXIT
11fi
12
13# Copy the regression tests to a fresh directory; this is easier than trying
14# to pick apart which ones need write access.
15cp -a /usr/lib/openssh/regress "$tmp/regress"
16
17ret=0
18make -C "$tmp/regress" \
19 .OBJDIR="$tmp/regress" \
20 .CURDIR="$tmp/regress" \
21 BUILDDIR="$tmp/regress" \
22 OBJ="$tmp/regress" \
23 SUDO=sudo \
24 TEST_SHELL=sh \
25 TEST_SSH_SFTPSERVER=/usr/lib/openssh/sftp-server \
26 TEST_SSH_PLINK=plink \
27 TEST_SSH_PUTTYGEN=puttygen \
28 TEST_SSH_CONCH=conch3 \
29 TEST_SSH_IPV6=yes \
30 TEST_SSH_ECC=yes \
31 tests interop-tests </dev/zero || ret="$?"
32if [ "$ret" -ne 0 ]; then
33 for log in failed-regress.log failed-ssh.log failed-sshd.log; do
34 if [ -e "$tmp/regress/$log" ]; then
35 tail -v -n+0 "$tmp/regress/$log"
36 fi
37 done
38fi
39exit "$ret"
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 000000000..163aaf8d8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
3.0 (quilt)
diff --git a/debian/source/include-binaries b/debian/source/include-binaries
new file mode 100644
index 000000000..df5790e2e
--- /dev/null
+++ b/debian/source/include-binaries
@@ -0,0 +1 @@
debian/ssh-askpass-gnome.png
diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides
new file mode 100644
index 000000000..1a0c77d41
--- /dev/null
+++ b/debian/source/lintian-overrides
@@ -0,0 +1,2 @@
1# openssh-server/password-authentication is preseeding-only, at least for now.
2openssh source: untranslatable-debconf-templates openssh-server.templates: 20
diff --git a/debian/ssh-argv0 b/debian/ssh-argv0
new file mode 100644
index 000000000..945530c24
--- /dev/null
+++ b/debian/ssh-argv0
@@ -0,0 +1,31 @@
1#! /bin/sh
2set -e
3
4# Copyright (c) 2001 Natalie Amery.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions
8# are met:
9# 1. Redistributions of source code must retain the above copyright
10# notice, this list of conditions and the following disclaimer.
11# 2. Redistributions in binary form must reproduce the above copyright
12# notice, this list of conditions and the following disclaimer in the
13# documentation and/or other materials provided with the distribution.
14#
15# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25
26if [ "${0##*/}" = "ssh-argv0" ]
27then
28 echo 'ssh-argv0: This script should not be run like this, see ssh-argv0(1) for details' 1>&2
29 exit 1
30fi
31exec ssh "${0##*/}" "$@"
diff --git a/debian/ssh-argv0.1 b/debian/ssh-argv0.1
new file mode 100644
index 000000000..fec9ff3f7
--- /dev/null
+++ b/debian/ssh-argv0.1
@@ -0,0 +1,64 @@
1.Dd September 7, 2001
2.Dt SSH-ARGV0 1
3.Os Debian Project
4.Sh NAME
5.Nm ssh-argv0
6.Nd replaces the old ssh command-name as hostname handling
7.Sh SYNOPSIS
8.Ar hostname | user@hostname
9.Op Fl l Ar login_name
10.Op Ar command
11.Pp
12.Ar hostname | user@hostname
13.Op Fl afgknqstvxACNTX1246
14.Op Fl b Ar bind_address
15.Op Fl c Ar cipher_spec
16.Op Fl e Ar escape_char
17.Op Fl i Ar identity_file
18.Op Fl l Ar login_name
19.Op Fl m Ar mac_spec
20.Op Fl o Ar option
21.Op Fl p Ar port
22.Op Fl F Ar configfile
23.Oo Fl L Xo
24.Sm off
25.Ar port :
26.Ar host :
27.Ar hostport
28.Sm on
29.Xc
30.Oc
31.Oo Fl R Xo
32.Sm off
33.Ar port :
34.Ar host :
35.Ar hostport
36.Sm on
37.Xc
38.Oc
39.Op Fl D Ar port
40.Op Ar command
41.Sh DESCRIPTION
42.Nm
43replaces the old ssh command-name as hostname handling.
44If you link to this script with a hostname then executing the link is
45equivalent to having executed ssh with that hostname as an argument.
46All other arguments are passed to ssh and will be processed normally.
47.Sh OPTIONS
48See
49.Xr ssh 1 .
50.Sh FILES
51See
52.Xr ssh 1 .
53.Sh AUTHORS
54OpenSSH is a derivative of the original and free
55ssh 1.2.12 release by Tatu Ylonen.
56Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos,
57Theo de Raadt and Dug Song
58removed many bugs, re-added newer features and
59created OpenSSH.
60Markus Friedl contributed the support for SSH
61protocol versions 1.5 and 2.0.
62Natalie Amery wrote this ssh-argv0 script and the associated documentation.
63.Sh SEE ALSO
64.Xr ssh 1
diff --git a/debian/ssh-askpass-gnome.desktop b/debian/ssh-askpass-gnome.desktop
new file mode 100644
index 000000000..eba7a67d1
--- /dev/null
+++ b/debian/ssh-askpass-gnome.desktop
@@ -0,0 +1,12 @@
1[Desktop Entry]
2Version=1.0
3Encoding=UTF-8
4Name=SSH AskPass
5GenericName=ssh-add
6Comment=Enter passphrase to authenticate to the ssh agent
7Exec=/usr/bin/ssh-add
8TryExec=ssh-add
9Terminal=false
10Type=Application
11Icon=ssh-askpass-gnome
12Categories=Network;Security;
diff --git a/debian/ssh-askpass-gnome.examples b/debian/ssh-askpass-gnome.examples
new file mode 100644
index 000000000..66fd8c0e4
--- /dev/null
+++ b/debian/ssh-askpass-gnome.examples
@@ -0,0 +1 @@
debian/ssh-askpass-gnome.desktop
diff --git a/debian/ssh-askpass-gnome.install b/debian/ssh-askpass-gnome.install
new file mode 100755
index 000000000..8715aafaf
--- /dev/null
+++ b/debian/ssh-askpass-gnome.install
@@ -0,0 +1,3 @@
1#! /usr/bin/dh-exec
2contrib/gnome-ssh-askpass3 => usr/lib/openssh/gnome-ssh-askpass
3debian/ssh-askpass-gnome.png usr/share/pixmaps
diff --git a/debian/ssh-askpass-gnome.manpages b/debian/ssh-askpass-gnome.manpages
new file mode 100644
index 000000000..7749f13bb
--- /dev/null
+++ b/debian/ssh-askpass-gnome.manpages
@@ -0,0 +1 @@
debian/gnome-ssh-askpass.1
diff --git a/debian/ssh-askpass-gnome.png b/debian/ssh-askpass-gnome.png
new file mode 100644
index 000000000..06f75764e
--- /dev/null
+++ b/debian/ssh-askpass-gnome.png
Binary files differ
diff --git a/debian/ssh-askpass-gnome.postinst b/debian/ssh-askpass-gnome.postinst
new file mode 100644
index 000000000..8a454e520
--- /dev/null
+++ b/debian/ssh-askpass-gnome.postinst
@@ -0,0 +1,48 @@
1#! /bin/sh
2# postinst script for ssh-askpass-gnome
3#
4# see: dh_installdeb(1)
5
6set -e
7
8# summary of how this script can be called:
9# * <postinst> `configure' <most-recently-configured-version>
10# * <old-postinst> `abort-upgrade' <new version>
11# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
12# <new-version>
13# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
14# <failed-install-package> <version> `removing'
15# <conflicting-package> <version>
16# for details, see /usr/share/doc/packaging-manual/
17#
18# quoting from the policy:
19# Any necessary prompting should almost always be confined to the
20# post-installation script, and should be protected with a conditional
21# so that unnecessary prompting doesn't happen if a package's
22# installation fails and the `postinst' is called with `abort-upgrade',
23# `abort-remove' or `abort-deconfigure'.
24
25case "$1" in
26 configure)
27 update-alternatives --quiet \
28 --install /usr/bin/ssh-askpass ssh-askpass \
29 /usr/lib/openssh/gnome-ssh-askpass 30 \
30 --slave /usr/share/man/man1/ssh-askpass.1.gz \
31 ssh-askpass.1.gz /usr/share/man/man1/gnome-ssh-askpass.1.gz
32 ;;
33
34 abort-upgrade|abort-remove|abort-deconfigure)
35 ;;
36
37 *)
38 echo "postinst called with unknown argument \`$1'" >&2
39 exit 0
40 ;;
41esac
42
43# dh_installdeb will replace this with shell code automatically
44# generated by other debhelper scripts.
45
46#DEBHELPER#
47
48exit 0
diff --git a/debian/ssh-askpass-gnome.prerm b/debian/ssh-askpass-gnome.prerm
new file mode 100644
index 000000000..0adcfc76b
--- /dev/null
+++ b/debian/ssh-askpass-gnome.prerm
@@ -0,0 +1,39 @@
1#! /bin/sh
2# prerm script for ssh-askpass-gnome
3#
4# see: dh_installdeb(1)
5
6set -e
7
8# summary of how this script can be called:
9# * <prerm> `remove'
10# * <old-prerm> `upgrade' <new-version>
11# * <new-prerm> `failed-upgrade' <old-version>
12# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
13# * <deconfigured's-prerm> `deconfigure' `in-favour'
14# <package-being-installed> <version> `removing'
15# <conflicting-package> <version>
16# for details, see /usr/share/doc/packaging-manual/
17
18case "$1" in
19 remove|deconfigure)
20 update-alternatives --quiet --remove ssh-askpass /usr/lib/openssh/gnome-ssh-askpass
21 ;;
22 upgrade)
23 ;;
24 failed-upgrade)
25 ;;
26 *)
27 echo "prerm called with unknown argument \`$1'" >&2
28 exit 0
29 ;;
30esac
31
32# dh_installdeb will replace this with shell code automatically
33# generated by other debhelper scripts.
34
35#DEBHELPER#
36
37exit 0
38
39
diff --git a/debian/ssh.maintscript b/debian/ssh.maintscript
new file mode 100644
index 000000000..efd370e25
--- /dev/null
+++ b/debian/ssh.maintscript
@@ -0,0 +1 @@
symlink_to_dir /usr/share/doc/ssh /usr/share/doc/openssh-client 1:6.6p1-8~
diff --git a/debian/systemd/rescue-ssh.target b/debian/systemd/rescue-ssh.target
new file mode 100644
index 000000000..9501b7fd0
--- /dev/null
+++ b/debian/systemd/rescue-ssh.target
@@ -0,0 +1,6 @@
1[Unit]
2Description=Rescue with network and ssh
3Documentation=man:systemd.special(7)
4Requires=network-online.target ssh.service
5After=network-online.target ssh.service
6AllowIsolate=yes
diff --git a/debian/systemd/ssh-agent.override b/debian/systemd/ssh-agent.override
new file mode 100644
index 000000000..2905494b6
--- /dev/null
+++ b/debian/systemd/ssh-agent.override
@@ -0,0 +1 @@
manual
diff --git a/debian/systemd/ssh-agent.service b/debian/systemd/ssh-agent.service
new file mode 100644
index 000000000..cdc10bb47
--- /dev/null
+++ b/debian/systemd/ssh-agent.service
@@ -0,0 +1,11 @@
1[Unit]
2Description=OpenSSH Agent
3Documentation=man:ssh-agent(1)
4Before=graphical-session-pre.target
5ConditionPathExists=/etc/X11/Xsession.options
6Wants=dbus.socket
7After=dbus.socket
8
9[Service]
10ExecStart=/usr/lib/openssh/agent-launch start
11ExecStopPost=/usr/lib/openssh/agent-launch stop
diff --git a/debian/systemd/ssh-session-cleanup b/debian/systemd/ssh-session-cleanup
new file mode 100755
index 000000000..f283cc967
--- /dev/null
+++ b/debian/systemd/ssh-session-cleanup
@@ -0,0 +1,11 @@
1#! /bin/sh
2
3ssh_session_pattern='sshd: \S.*@pts/[0-9]+'
4
5IFS="$IFS@"
6pgrep -a -f "$ssh_session_pattern" | while read pid daemon user pty; do
7 echo "Found ${daemon%:} session $pid on $pty; sending SIGTERM"
8 kill "$pid" || true
9done
10
11exit 0
diff --git a/debian/systemd/ssh-session-cleanup.service b/debian/systemd/ssh-session-cleanup.service
new file mode 100644
index 000000000..b86727227
--- /dev/null
+++ b/debian/systemd/ssh-session-cleanup.service
@@ -0,0 +1,13 @@
1[Unit]
2Description=OpenBSD Secure Shell session cleanup
3Wants=network.target
4After=network.target
5
6[Service]
7ExecStart=/bin/true
8ExecStop=/usr/lib/openssh/ssh-session-cleanup
9RemainAfterExit=yes
10Type=oneshot
11
12[Install]
13WantedBy=multi-user.target
diff --git a/debian/systemd/ssh.service b/debian/systemd/ssh.service
new file mode 100644
index 000000000..7495d9a81
--- /dev/null
+++ b/debian/systemd/ssh.service
@@ -0,0 +1,22 @@
1[Unit]
2Description=OpenBSD Secure Shell server
3Documentation=man:sshd(8) man:sshd_config(5)
4After=network.target auditd.service
5ConditionPathExists=!/etc/ssh/sshd_not_to_be_run
6
7[Service]
8EnvironmentFile=-/etc/default/ssh
9ExecStartPre=/usr/sbin/sshd -t
10ExecStart=/usr/sbin/sshd -D $SSHD_OPTS
11ExecReload=/usr/sbin/sshd -t
12ExecReload=/bin/kill -HUP $MAINPID
13KillMode=process
14Restart=on-failure
15RestartPreventExitStatus=255
16Type=notify
17RuntimeDirectory=sshd
18RuntimeDirectoryMode=0755
19
20[Install]
21WantedBy=multi-user.target
22Alias=sshd.service
diff --git a/debian/systemd/ssh.socket b/debian/systemd/ssh.socket
new file mode 100644
index 000000000..5a766dcab
--- /dev/null
+++ b/debian/systemd/ssh.socket
@@ -0,0 +1,12 @@
1[Unit]
2Description=OpenBSD Secure Shell server socket
3Before=ssh.service
4Conflicts=ssh.service
5ConditionPathExists=!/etc/ssh/sshd_not_to_be_run
6
7[Socket]
8ListenStream=22
9Accept=yes
10
11[Install]
12WantedBy=sockets.target
diff --git a/debian/systemd/ssh@.service b/debian/systemd/ssh@.service
new file mode 100644
index 000000000..f7fec1f6f
--- /dev/null
+++ b/debian/systemd/ssh@.service
@@ -0,0 +1,11 @@
1[Unit]
2Description=OpenBSD Secure Shell server per-connection daemon
3Documentation=man:sshd(8) man:sshd_config(5)
4After=auditd.service
5
6[Service]
7EnvironmentFile=-/etc/default/ssh
8ExecStart=-/usr/sbin/sshd -i $SSHD_OPTS
9StandardInput=socket
10RuntimeDirectory=sshd
11RuntimeDirectoryMode=0755
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 000000000..8bc480a74
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,10 @@
1Tests: regress
2Restrictions: needs-root allow-stderr
3Depends: devscripts,
4 haveged,
5 openssh-tests,
6 openssl,
7 putty-tools,
8 python3-twisted,
9 sudo,
10 sysvinit-utils,
diff --git a/debian/tests/regress b/debian/tests/regress
new file mode 100755
index 000000000..418bf55a6
--- /dev/null
+++ b/debian/tests/regress
@@ -0,0 +1,67 @@
1#! /bin/sh
2set -e
3
4if [ "$(id -un)" != openssh-tests ]; then
5 TMP="$AUTOPKGTEST_TMP/user"
6 CREATED_RUN_SSHD=false
7 STARTED_HAVEGED=false
8
9 cleanup () {
10 if $STARTED_HAVEGED; then
11 if [ -d /run/systemd/system ] && \
12 which systemctl >/dev/null 2>&1; then
13 systemctl disable haveged || true
14 systemctl stop haveged || true
15 else
16 start-stop-daemon --stop --quiet \
17 --retry=TERM/30/KILL/5 \
18 --pidfile "$AUTOPKGTEST_TMP/haveged.pid" \
19 --name haveged
20 fi
21 fi
22 rm -f /etc/sudoers.d/openssh-tests
23 if id openssh-tests >/dev/null 2>&1; then
24 deluser --remove-home openssh-tests
25 fi
26
27 if $CREATED_RUN_SSHD; then
28 rm -rf /run/sshd
29 fi
30 }
31 trap cleanup EXIT
32
33 adduser --disabled-password --gecos 'OpenSSH tests' openssh-tests
34 cat >/etc/sudoers.d/openssh-tests <<EOF
35openssh-tests ALL = (ALL:ALL) NOPASSWD: ALL
36EOF
37 chmod 440 /etc/sudoers.d/openssh-tests
38 mkdir -p "$TMP"
39 chown -R openssh-tests:openssh-tests "$TMP"
40
41 # Depending on how the environment is configured, our test
42 # dependency on openssh-server may not actually started sshd and
43 # thus may not have caused /run/sshd to be created.
44 if [ ! -d /run/sshd ]; then
45 mkdir -m755 /run/sshd
46 CREATED_RUN_SSHD=:
47 fi
48
49 # If we're running in a container, haveged may not have started
50 # automatically.
51 if [ -d /run/systemd/system ] && which systemctl >/dev/null 2>&1; then
52 systemctl enable haveged || true
53 systemctl start haveged || true
54 STARTED_HAVEGED=:
55 elif ! pidof haveged >/dev/null; then
56 start-stop-daemon --start --quiet \
57 --pidfile "$AUTOPKGTEST_TMP/haveged.pid" \
58 --exec /usr/sbin/haveged -- \
59 -p "$AUTOPKGTEST_TMP/haveged.pid"
60 STARTED_HAVEGED=:
61 fi
62
63 sudo -u openssh-tests env TMP="$TMP" "$0" "$@"
64 exit "$?"
65fi
66
67annotate-output +%H:%M:%S.%N /usr/lib/openssh/regress/run-tests "$TMP"
diff --git a/debian/upstream/signing-key.asc b/debian/upstream/signing-key.asc
new file mode 100644
index 000000000..974ad55f8
--- /dev/null
+++ b/debian/upstream/signing-key.asc
@@ -0,0 +1,41 @@
1-----BEGIN PGP PUBLIC KEY BLOCK-----
2
3mQGdBFKmggUBDICUNqm4cNh7tdEbwaNhbnwqLiHpILeXT6sddGI0Stz5ofB1uvIH
4m9kXYG5XUUwlc5ywjIZm2JeuKqrd/6wAz5laLagFA6k86EZzzuBE3b5FxSQ4EN4K
55XZEJo61xASEF7z1mQCiqoA6/F407ht7nNoiVE95kOmqJlv4cqbpCw3n8f2VW+mV
6UH6MYRZVrYAC9NnJWv24rem2fjgFhNT1/bx44G7H9bVJqL7hMEGa+xYQBI3YT/ul
7Eu9HYmLFVeiZm1gB1eKXW7jS4ctLl5uPrxayA5DX/qNB2yqgVVlIKFwUm8gGPGPO
8nsNKo0xBseE7E0F/KeGpaT5aS9yFgPm9A652Jx9felYgb0e9Ipt3lxriPQwgF/cx
9LGuP/WEbN5fpWFnuV0ViklusuVI2e8GHJGU5bQD5AlzvWu4Sv6oBOcDCabScydY7
10IxPBk/XBWCF9QDIa2qa32Mc9dYc8EnJszPeVCHX5hG23omDRmdLGLwH7F+CuBvCx
11AKCymZtJl5DhRmnhdzRg9d+0VG4hLF7O06ANABEBAAG0H0RhbWllbiBNaWxsZXIg
12PGRqbUBtaW5kcm90Lm9yZz6JAc0EEwECACcCGwMFCQ1H67ECHgECF4AFAlKmjJwE
13CwkIBwYVCgkICwIFFgIDAQAACgkQ0+X1a22SDTB2TAx9E1ozPJKUGWJPZefqsSr8
14KsO6Dp3QuPrw2Zwgo2QfeCT+uzNA5AKCDIAaYEpVbQsvu4sDy8dAW1+HENCxVrMX
15WG+SH41lcdAdI4io0PGHVQDl42R5jX3e9pfjYCQALVv5BDXddK6054nyxEmudQ3I
16CFCYXIcqQbA1nfj3Uk06jGhuM99B2/akbxCoFSiUX9uHDZKNYAGpU7/FCF9xCZF4
17Kd9Twvyy17jDIg7km3/Q4Jy++VP8FyvE5JjBdLRQSBzSG9GCjv9fyKWW7S0bMY4D
183SKKt/Jm1XchEMgpRr4eBpgCs3rxO1hXjzqm3te97uy6/q8CuJUtupJsPKc9Wh4+
19ogUZifC0ta7UrxZp8yZTRvPSUxYrlvDzM32VDLQ3FX6Y2i4VNo48PSJMA+BPUx7D
20TcZKIXt457zsLD4jF4sRdwOk/QF/GXCkH2GAyKHWCPXIOe+jIXgiuajcqZm9cAWj
21L3hidSohKfefvKkzsg75mDmjhvAtDncIbmImJNjXIe2PQU4iY9Vq5i0vlaVKgBgK
22SrkBnQRSpoIFAQyA1OdwfpwXKch+O00W1FsQSMcEjahGmo84WTroM/qjTd7Ysld3
2300PMv3wkQn2WdhyTca/EmkW0fVTGSYs7Z3v5SpPf0prYSjmfu8WlXoz64ApdXqGH
24jj9KAeq2OuUtWrwobgiQEzU4Hxlz94X/65BgG5k7OTyE3J6bgRcMwJCgCkwjK85w
25bbBkGH+Jo9o/Zw9TPczQcE7BmGYkkLNAXbw7omKBOL4Z6w9sXToz9UnQ0EB9s4Tv
26AbHGKX9y2PEQjZN+wkzR3DavWB7ql8vHZIRmspAsDAJvDT1ofsNtu8MB8wJcxvZa
27oZ7j9wULYpnaNYx9xxEhgbB9o1mBcYsdDj3xz5jrgtq/cpdgGC6bg+awDc/ylQ1m
28NglKfY8P9hFIhIANZilnmAlk5GSoWclP/69m+u34KKoHU4Yc3I1pPNcL6Nyi0bh8
29mHqe9WedKfod7Y4yM1S20fXaS4vrLIlKgxbsDpWiWrk0ltV03uyC7eqDe3nzzGW/
302GLTHj5xsA2+HwGtPom5mmzjvV5PFNpS7a90JQARAQABiQG1BBgBAgAPBQJSpoIF
31AhsMBQkNR+uxAAoJENPl9Wttkg0wEScMf2QjDWm3XawJxNA8pqqxrFeTEo+GESzn
32VRTUeprrUFd1GHw33qaAvqLixZ+x8cr+1Gj/fJd5eiIVJfRLYbXlC8su8JZXngfX
330VhuMcUob/FTikfpcoYkRzriUsJEB3/OmjlLjGgnQm5Gz9TV1ityF3bzoHkR8svW
34EKKKzNoIEPHLU3y7bqSkOrjnY3bZfdVRh618XbjV28NMuoZsV8E4pOuQoy+3s5Ij
35mIf/mkSiFE3VJwdaPem23UsXatFb/eoC/Ahi0iCd/8ioFwi+oHT2Pnt9HrzVF6E8
36gBVO3vKo6UJgDTr9Qt27Nc6eHL0O5j50ins9ob/3DoOC3P5A08zhl+w466yGEv5+
37Es/usUAs/4ng4ksI3DTLK9Ygj70l5oBuMFYd3b5KGVfAIlGc5mwIOIG41YLIzZTr
38GuOuTymjwCdC9cUZJ6R2Cv/Vx0htZ0hqDdyaDO0Io9OG/W2s2T7160tY9ic4MwBC
39FemzwFELIBIIHNY/n/wsmxQGkI3Oj86JpOVVgR5lXWR+BrGcBjkSEyg=
40=1M/J
41-----END PGP PUBLIC KEY BLOCK-----
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 000000000..9e2a44eb3
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
1version=3
2opts=pgpsigurlmangle=s/$/.asc/ \
3https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-(.*)\.tar\.gz