Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
3bd3a16b
Commit
3bd3a16b
authored
Jun 10, 2000
by
Niels Möller
Browse files
* src/ssh-conv: New script.
Rev: src/ssh-conv:1.1
parent
5c0b3fae
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ssh-conv
0 → 100755
View file @
3bd3a16b
#! /bin/sh
SSH_CONV
=
`
PATH
=
$PATH
:.
\t
ype
-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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment