summaryrefslogtreecommitdiff
path: root/zshfunc/fpr
blob: 38afc3bd3054c17a24f1e74af3d834d872b96f3c (plain)
1
2
3
4
5
6
## vim:ft=zsh:foldmethod=marker

(
	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/^[^ ]* //'