Commit 3bd3a16b authored by Niels Möller's avatar Niels Möller
Browse files

* src/ssh-conv: New script.

Rev: src/ssh-conv:1.1
parent 5c0b3fae
#! /bin/sh
SSH_CONV=`PATH=$PATH:. \type -path lsh-decode-key`
if [ -z $SSH_CONV ] ; then
echo "Can't find the lsh-decode-key program"
exit 1
fi
awk 'BEGIN { state = 0; }
state == 0 && /^---- BEGIN SSH2 PUBLIC KEY/ { state = 1; next; }
state == 1 && $0 ~ /^---- END SSH2 PUBLIC KEY/ { state = 2 }
state == 1 && $0 !~ /:/ { print }
state == 2 { next }' \
| $SSH_CONV -b
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment