diff options
Diffstat (limited to 'src/samizdat-ssh-uid')
-rwxr-xr-x | src/samizdat-ssh-uid | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/samizdat-ssh-uid b/src/samizdat-ssh-uid index c87232b..2b4b311 100755 --- a/src/samizdat-ssh-uid +++ b/src/samizdat-ssh-uid | |||
@@ -9,7 +9,7 @@ PEMFILE="${SSH_USER_AUTH}.tmp" | |||
9 | 9 | ||
10 | sed -ne 's/^publickey //p' < "${SSH_USER_AUTH}" > "${PEMFILE}" || die "could not rewrite SSH_USER_AUTH file" | 10 | sed -ne 's/^publickey //p' < "${SSH_USER_AUTH}" > "${PEMFILE}" || die "could not rewrite SSH_USER_AUTH file" |
11 | 11 | ||
12 | SSH_CLIENT_FINGERPRINT=$(ssh-keygen -r . -f "${PEMFILE}" | sed -ne 's/^. IN SSHFP [0-9]* 1 //p') && | 12 | SSH_CLIENT_FINGERPRINT=$(ssh-keygen -r . -f "${PEMFILE}" | sed -ne 's/^. IN SSHFP [0-9]* 2 //p') && |
13 | [ "$SSH_CLIENT_FINGERPRINT" ] || die "could not determine ssh client fingerprint" | 13 | [ "$SSH_CLIENT_FINGERPRINT" ] || die "could not determine ssh client fingerprint" |
14 | 14 | ||
15 | read keytype keydata < "${PEMFILE}" || die "reading from PEMFILE=$PEMFILE" | 15 | read keytype keydata < "${PEMFILE}" || die "reading from PEMFILE=$PEMFILE" |