Skip to content

Commit

Permalink
upstream: The script that cooks up PuTTY format host keys does not
Browse files Browse the repository at this point in the history
understand the new key format so convert back to old format to create the
PuTTY key and remove it once done.

OpenBSD-Regress-ID: 2a449a18846c3a144bc645135b551ba6177e38d3
  • Loading branch information
daztucker authored and djmdjm committed Aug 10, 2018
1 parent e1b26ce commit 2f4766c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions regress/test-exec.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $OpenBSD: test-exec.sh,v 1.63 2018/05/22 00:22:49 djm Exp $
# $OpenBSD: test-exec.sh,v 1.64 2018/08/10 01:35:49 dtucker Exp $
# Placed in the Public Domain.

#SUDO=sudo
Expand Down Expand Up @@ -531,10 +531,13 @@ if test "$REGRESS_INTEROP_PUTTY" = "yes" ; then
>> $OBJ/authorized_keys_$USER

# Convert rsa2 host key to PuTTY format
${SRC}/ssh2putty.sh 127.0.0.1 $PORT $OBJ/rsa > \
cp $OBJ/rsa $OBJ/rsa_oldfmt
${SSHKEYGEN} -p -N '' -m PEM -f $OBJ/rsa_oldfmt >/dev/null
${SRC}/ssh2putty.sh 127.0.0.1 $PORT $OBJ/rsa_oldfmt > \
${OBJ}/.putty/sshhostkeys
${SRC}/ssh2putty.sh 127.0.0.1 22 $OBJ/rsa >> \
${SRC}/ssh2putty.sh 127.0.0.1 22 $OBJ/rsa_oldfmt >> \
${OBJ}/.putty/sshhostkeys
rm -f $OBJ/rsa_oldfmt

# Setup proxied session
mkdir -p ${OBJ}/.putty/sessions
Expand Down

0 comments on commit 2f4766c

Please sign in to comment.