diff options
author | Colin Watson <cjwatson@debian.org> | 2020-02-21 11:57:14 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2020-02-21 11:57:14 +0000 |
commit | f0de78bd4f29fa688c5df116f3f9cd43543a76d0 (patch) | |
tree | 856b0dee3f2764c13a32dad5ffe2424fab7fef41 /regress/sshcfgparse.sh | |
parent | 4213eec74e74de6310c27a40c3e9759a08a73996 (diff) | |
parent | 8aa3455b16fddea4c0144a7c4a1edb10ec67dcc8 (diff) |
Import openssh_8.2p1.orig.tar.gz
Diffstat (limited to 'regress/sshcfgparse.sh')
-rw-r--r-- | regress/sshcfgparse.sh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/regress/sshcfgparse.sh b/regress/sshcfgparse.sh index 2c00b64ef..fc72a0a71 100644 --- a/regress/sshcfgparse.sh +++ b/regress/sshcfgparse.sh | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: sshcfgparse.sh,v 1.5 2019/07/23 13:32:48 dtucker Exp $ | 1 | # $OpenBSD: sshcfgparse.sh,v 1.6 2019/12/21 02:33:07 djm Exp $ |
2 | # Placed in the Public Domain. | 2 | # Placed in the Public Domain. |
3 | 3 | ||
4 | tid="ssh config parse" | 4 | tid="ssh config parse" |
@@ -94,5 +94,15 @@ if [ "$dsa" = "1" ]; then | |||
94 | expect_result_absent "$f" "ssh-dss-cert-v01.*" | 94 | expect_result_absent "$f" "ssh-dss-cert-v01.*" |
95 | fi | 95 | fi |
96 | 96 | ||
97 | verbose "agentforwarding" | ||
98 | f=`${SSH} -GF none host | awk '/^forwardagent /{print$2}'` | ||
99 | expect_result_present "$f" "no" | ||
100 | f=`${SSH} -GF none -oforwardagent=no host | awk '/^forwardagent /{print$2}'` | ||
101 | expect_result_present "$f" "no" | ||
102 | f=`${SSH} -GF none -oforwardagent=yes host | awk '/^forwardagent /{print$2}'` | ||
103 | expect_result_present "$f" "yes" | ||
104 | f=`${SSH} -GF none '-oforwardagent=SSH_AUTH_SOCK.forward' host | awk '/^forwardagent /{print$2}'` | ||
105 | expect_result_present "$f" "SSH_AUTH_SOCK.forward" | ||
106 | |||
97 | # cleanup | 107 | # cleanup |
98 | rm -f $OBJ/ssh_config.[012] | 108 | rm -f $OBJ/ssh_config.[012] |