Created
July 5, 2021 02:46
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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