diff options
Diffstat (limited to 'zshfunc/fpr')
-rw-r--r-- | zshfunc/fpr | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/zshfunc/fpr b/zshfunc/fpr new file mode 100644 index 0000000..1d53d03 --- /dev/null +++ b/zshfunc/fpr @@ -0,0 +1,8 @@ +## vim:ft=zsh:foldmethod=marker + +fpr() { + ( + ssh-keygen -r '' -f =( ssh-keyscan -t rsa $1 2>/dev/null | sed -e 's/^[^ ]* //'); + ssh-keygen -r '' -f =( ssh-keyscan -t dsa $1 2>/dev/null | sed -e 's/^[^ ]* //'); + ) | sed -e 's/^[^ ]* //' +} |