helper for receiving fingerprint

This commit is contained in:
madmaurice 2017-05-27 17:21:36 +02:00
parent 73b6ff93cc
commit 8bf2d85f9d

View file

@ -28,3 +28,10 @@ gitall() {
md5dir() {
find $1 -type f -print0 | xargs -0 md5sum
}
ssh-fingerprint() {
SERVER=$1
PORT=${2:-22}
ssh-keygen -lf <(ssh-keyscan -p $PORT $SERVER 2>/dev/null)
}