Skip to content

Instantly share code, notes, and snippets.

@IsoLinearCHiP
Created November 7, 2014 16:05
Show Gist options
  • Select an option

  • Save IsoLinearCHiP/ccd718e16cbc774e6dfd to your computer and use it in GitHub Desktop.

Select an option

Save IsoLinearCHiP/ccd718e16cbc774e6dfd to your computer and use it in GitHub Desktop.
oneliner for SSH Host fingerprints, hostname and IP
echo "$(hostname): "; ip a | sed -n "/inet.*eth./ p"; for f in /etc/ssh/ssh_host_*_key; do echo -n "$f: "; ssh-keygen -l -f $f; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment