From 845adad38c477bf3edd08f746b75842c3885bef7 Mon Sep 17 00:00:00 2001 From: Artem Sheremet Date: Fri, 7 Dec 2018 16:55:30 +0100 Subject: [PATCH] Add `ssh-fp` alias to print host SSH fingerprints! --- .bashrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.bashrc b/.bashrc index 4b240a5..3df3a82 100644 --- a/.bashrc +++ b/.bashrc @@ -133,6 +133,7 @@ pretransfer: %{time_pretransfer} | \ starttransfer: %{time_starttransfer} | \ total: %{time_total} | \ size: %{size_download}\n"' +alias ssh-fp='echo /etc/ssh/ssh_host_*_key.pub | xargs -n1 ssh-keygen -l -f' function ds() { du -sh "$@" | sort -rh