Skip to content

Instantly share code, notes, and snippets.

@lukejjh
Created July 5, 2021 02:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukejjh/1946761a7ef9faa8ce3792fd1e0868e6 to your computer and use it in GitHub Desktop.
Save lukejjh/1946761a7ef9faa8ce3792fd1e0868e6 to your computer and use it in GitHub Desktop.
Get all SSH server fingerprints, both in SHA256 and MD5, on Windows using PowerShell.
"sha256","md5" | % { $h = $_; gi "${env:ProgramData}\SSH\ssh_host_*_key.pub" | % { ssh-keygen -lf $_.FullName -E $h } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment