- (dtucker) [contrib/cygwin/ssh-{host,user}-config] Add ECDSA key
[openssh-git.git] / regress / host-expand.sh
bloba0188363dc6944d90f1cecb0f59917b9ec1abe8e
1 # Placed in the Public Domain.
3 tid="expand %h and %n"
5 echo 'PermitLocalCommand yes' >> $OBJ/ssh_proxy
6 printf 'LocalCommand printf "%%%%s\\n" "%%n" "%%h"\n' >> $OBJ/ssh_proxy
8 cat >$OBJ/expect <<EOE
9 somehost
10 127.0.0.1
11 EOE
13 for p in 1 2; do
14 verbose "test $tid: proto $p"
15 ${SSH} -F $OBJ/ssh_proxy -$p somehost true >$OBJ/actual
16 diff $OBJ/expect $OBJ/actual || fail "$tid proto $p"
17 done