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/sftp-badcmds.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/sftp-badcmds.sh')
-rw-r--r-- | regress/sftp-badcmds.sh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/regress/sftp-badcmds.sh b/regress/sftp-badcmds.sh index b48b1cb01..08009f26b 100644 --- a/regress/sftp-badcmds.sh +++ b/regress/sftp-badcmds.sh | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: sftp-badcmds.sh,v 1.3 2008/03/24 21:46:54 djm Exp $ | 1 | # $OpenBSD: sftp-badcmds.sh,v 1.4 2009/08/13 01:11:55 djm Exp $ |
2 | # Placed in the Public Domain. | 2 | # Placed in the Public Domain. |
3 | 3 | ||
4 | tid="sftp invalid commands" | 4 | tid="sftp invalid commands" |
@@ -13,13 +13,13 @@ rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd | |||
13 | 13 | ||
14 | rm -f ${COPY} | 14 | rm -f ${COPY} |
15 | verbose "$tid: get nonexistent" | 15 | verbose "$tid: get nonexistent" |
16 | echo "get $NONEXIST $COPY" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \ | 16 | echo "get $NONEXIST $COPY" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ |
17 | || fail "get nonexistent failed" | 17 | || fail "get nonexistent failed" |
18 | test -f ${COPY} && fail "existing copy after get nonexistent" | 18 | test -f ${COPY} && fail "existing copy after get nonexistent" |
19 | 19 | ||
20 | rm -f ${COPY}.dd/* | 20 | rm -f ${COPY}.dd/* |
21 | verbose "$tid: glob get to nonexistent directory" | 21 | verbose "$tid: glob get to nonexistent directory" |
22 | echo "get /bin/l* $NONEXIST" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \ | 22 | echo "get /bin/l* $NONEXIST" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ |
23 | || fail "get nonexistent failed" | 23 | || fail "get nonexistent failed" |
24 | for x in $GLOBFILES; do | 24 | for x in $GLOBFILES; do |
25 | test -f ${COPY}.dd/$x && fail "existing copy after get nonexistent" | 25 | test -f ${COPY}.dd/$x && fail "existing copy after get nonexistent" |
@@ -27,13 +27,13 @@ done | |||
27 | 27 | ||
28 | rm -f ${COPY} | 28 | rm -f ${COPY} |
29 | verbose "$tid: put nonexistent" | 29 | verbose "$tid: put nonexistent" |
30 | echo "put $NONEXIST $COPY" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \ | 30 | echo "put $NONEXIST $COPY" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ |
31 | || fail "put nonexistent failed" | 31 | || fail "put nonexistent failed" |
32 | test -f ${COPY} && fail "existing copy after put nonexistent" | 32 | test -f ${COPY} && fail "existing copy after put nonexistent" |
33 | 33 | ||
34 | rm -f ${COPY}.dd/* | 34 | rm -f ${COPY}.dd/* |
35 | verbose "$tid: glob put to nonexistent directory" | 35 | verbose "$tid: glob put to nonexistent directory" |
36 | echo "put /bin/l* ${COPY}.dd" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \ | 36 | echo "put /bin/l* ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ |
37 | || fail "put nonexistent failed" | 37 | || fail "put nonexistent failed" |
38 | for x in $GLOBFILES; do | 38 | for x in $GLOBFILES; do |
39 | test -f ${COPY}.dd/$x && fail "existing copy after nonexistent" | 39 | test -f ${COPY}.dd/$x && fail "existing copy after nonexistent" |
@@ -41,7 +41,7 @@ done | |||
41 | 41 | ||
42 | rm -f ${COPY} | 42 | rm -f ${COPY} |
43 | verbose "$tid: rename nonexistent" | 43 | verbose "$tid: rename nonexistent" |
44 | echo "rename $NONEXIST ${COPY}.1" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \ | 44 | echo "rename $NONEXIST ${COPY}.1" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ |
45 | || fail "rename nonexist failed" | 45 | || fail "rename nonexist failed" |
46 | test -f ${COPY}.1 && fail "file exists after rename nonexistent" | 46 | test -f ${COPY}.1 && fail "file exists after rename nonexistent" |
47 | 47 | ||
@@ -49,7 +49,7 @@ rm -rf ${COPY} ${COPY}.dd | |||
49 | cp $DATA $COPY | 49 | cp $DATA $COPY |
50 | mkdir ${COPY}.dd | 50 | mkdir ${COPY}.dd |
51 | verbose "$tid: rename target exists (directory)" | 51 | verbose "$tid: rename target exists (directory)" |
52 | echo "rename $COPY ${COPY}.dd" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \ | 52 | echo "rename $COPY ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ |
53 | || fail "rename target exists (directory) failed" | 53 | || fail "rename target exists (directory) failed" |
54 | test -f ${COPY} || fail "oldname missing after rename target exists (directory)" | 54 | test -f ${COPY} || fail "oldname missing after rename target exists (directory)" |
55 | test -d ${COPY}.dd || fail "newname missing after rename target exists (directory)" | 55 | test -d ${COPY}.dd || fail "newname missing after rename target exists (directory)" |
@@ -59,7 +59,7 @@ rm -f ${COPY}.dd/* | |||
59 | rm -rf ${COPY} | 59 | rm -rf ${COPY} |
60 | cp ${DATA2} ${COPY} | 60 | cp ${DATA2} ${COPY} |
61 | verbose "$tid: glob put files to local file" | 61 | verbose "$tid: glob put files to local file" |
62 | echo "put /bin/l* $COPY" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 | 62 | echo "put /bin/l* $COPY" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 |
63 | cmp ${DATA2} ${COPY} || fail "put successed when it should have failed" | 63 | cmp ${DATA2} ${COPY} || fail "put successed when it should have failed" |
64 | 64 | ||
65 | rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd | 65 | rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd |