- (dtucker) [contrib/cygwin/ssh-{host,user}-config] Add ECDSA key
[openssh-git.git] / regress / brokenkeys.sh
blob3e70c348ac36ff0e52cc1f2aef5d51333b2cf165
1 # $OpenBSD: brokenkeys.sh,v 1.1 2004/10/29 23:59:22 djm Exp $
2 # Placed in the Public Domain.
4 tid="broken keys"
6 KEYS="$OBJ/authorized_keys_${USER}"
8 start_sshd
10 mv ${KEYS} ${KEYS}.bak
12 # Truncated key
13 echo "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEABTM= bad key" > $KEYS
14 cat ${KEYS}.bak >> ${KEYS}
15 cat $OBJ/$t.pub >> $OBJ/authorized_keys_$USER
17 ${SSH} -2 -F $OBJ/ssh_config somehost true
18 if [ $? -ne 0 ]; then
19 fail "ssh connect with protocol $p failed"
22 mv ${KEYS}.bak ${KEYS}