helper for receiving fingerprint
This commit is contained in:
parent
73b6ff93cc
commit
8bf2d85f9d
1 changed files with 7 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue