diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2013-10-09 22:24:09 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-06-07 04:27:30 +0200 |
commit | f9cfa0de8a281328c4e834059b225e9a0f025c2a (patch) | |
tree | e2a4090932c08d40d76dbfebfd1bd7612ad04967 /sshfprs.sh | |
parent | 529eee61e485ad305ae78f4c54ee3377e0bd6b44 (diff) |
Use a udeb to partition the disk.
Diffstat (limited to 'sshfprs.sh')
-rwxr-xr-x | sshfprs.sh | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/sshfprs.sh b/sshfprs.sh deleted file mode 100755 index a0aaabe..0000000 --- a/sshfprs.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh - -# Like ssh-keygen -lf, but for a file such as authorized_keys, which -# may contain multiple keys. -# -# Usage: sshfprs.sh file [prefix] -# -# -# Copyright 2013 Guilhem Moulin <guilhem@fripost.org> -# -# Licensed under the GNU GPL version 3 or higher. - -set -ue - -file="$1" -prefix="${2:-}" - -while read pk; do - # ssh-keygen can't read from STDIN, and ash doesn't have the '<<<' - # construct, so we save each pubkey in a temporary file - pkf=$(mktemp) - echo "$pk" > "$pkf" - echo "${prefix}$(ssh-keygen -lf $pkf)" - rm "$pkf" -done < "$file" |