diff options
author | Colin Watson <cjwatson@debian.org> | 2010-03-31 10:46:28 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2010-03-31 10:46:28 +0100 |
commit | efd3d4522636ae029488c2e9730b60c88e257d2e (patch) | |
tree | 31e02ac3f16090ce8c53448677356b2b7f423683 /regress/keygen-convert.sh | |
parent | bbec4db36d464ea1d464a707625125f9fd5c7b5e (diff) | |
parent | d1a87e462e1db89f19cd960588d0c6b287cb5ccc (diff) |
* New upstream release (LP: #535029).
- After a transition period of about 10 years, this release disables SSH
protocol 1 by default. Clients and servers that need to use the
legacy protocol must explicitly enable it in ssh_config / sshd_config
or on the command-line.
- Remove the libsectok/OpenSC-based smartcard code and add support for
PKCS#11 tokens. This support is enabled by default in the Debian
packaging, since it now doesn't involve additional library
dependencies (closes: #231472, LP: #16918).
- Add support for certificate authentication of users and hosts using a
new, minimal OpenSSH certificate format (closes: #482806).
- Added a 'netcat mode' to ssh(1): "ssh -W host:port ...".
- Add the ability to revoke keys in sshd(8) and ssh(1). (For the Debian
package, this overlaps with the key blacklisting facility added in
openssh 1:4.7p1-9, but with different file formats and slightly
different scopes; for the moment, I've roughly merged the two.)
- Various multiplexing improvements, including support for requesting
port-forwardings via the multiplex protocol (closes: #360151).
- Allow setting an explicit umask on the sftp-server(8) commandline to
override whatever default the user has (closes: #496843).
- Many sftp client improvements, including tab-completion, more options,
and recursive transfer support for get/put (LP: #33378). The old
mget/mput commands never worked properly and have been removed
(closes: #270399, #428082).
- Do not prompt for a passphrase if we fail to open a keyfile, and log
the reason why the open failed to debug (closes: #431538).
- Prevent sftp from crashing when given a "-" without a command. Also,
allow whitespace to follow a "-" (closes: #531561).
Diffstat (limited to 'regress/keygen-convert.sh')
-rw-r--r-- | regress/keygen-convert.sh | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/regress/keygen-convert.sh b/regress/keygen-convert.sh new file mode 100644 index 000000000..ad0e9c637 --- /dev/null +++ b/regress/keygen-convert.sh | |||
@@ -0,0 +1,33 @@ | |||
1 | # $OpenBSD: keygen-convert.sh,v 1.1 2009/11/09 04:20:04 dtucker Exp $ | ||
2 | # Placed in the Public Domain. | ||
3 | |||
4 | tid="convert keys" | ||
5 | |||
6 | for t in rsa dsa; do | ||
7 | # generate user key for agent | ||
8 | trace "generating $t key" | ||
9 | rm -f $OBJ/$t-key | ||
10 | ${SSHKEYGEN} -q -N "" -t $t -f $OBJ/$t-key | ||
11 | |||
12 | trace "export $t private to rfc4716 public" | ||
13 | ${SSHKEYGEN} -q -e -f $OBJ/$t-key >$OBJ/$t-key-rfc || \ | ||
14 | fail "export $t private to rfc4716 public" | ||
15 | |||
16 | trace "export $t public to rfc4716 public" | ||
17 | ${SSHKEYGEN} -q -e -f $OBJ/$t-key.pub >$OBJ/$t-key-rfc.pub || \ | ||
18 | fail "$t public to rfc4716 public" | ||
19 | |||
20 | cmp $OBJ/$t-key-rfc $OBJ/$t-key-rfc.pub || \ | ||
21 | fail "$t rfc4716 exports differ between public and private" | ||
22 | |||
23 | trace "import $t rfc4716 public" | ||
24 | ${SSHKEYGEN} -q -i -f $OBJ/$t-key-rfc >$OBJ/$t-rfc-imported || \ | ||
25 | fail "$t import rfc4716 public" | ||
26 | |||
27 | cut -f1,2 -d " " $OBJ/$t-key.pub >$OBJ/$t-key-nocomment.pub | ||
28 | cmp $OBJ/$t-key-nocomment.pub $OBJ/$t-rfc-imported || \ | ||
29 | fail "$t imported differs from original" | ||
30 | |||
31 | rm -f $OBJ/$t-key $OBJ/$t-key.pub $OBJ/$t-key-rfc $OBJ/$t-key-rfc.pub \ | ||
32 | $OBJ/$t-rfc-imported $OBJ/$t-key-nocomment.pub | ||
33 | done | ||