Security News > 2020 > November > How to view your SSH keys in Linux, macOS, and Windows

There are two easy ways to view your SSH public key in Linux.
The above command will print out your SSH key on your Linux machine, without prompting you for your key authentication password.
How to view your SSH public key on macOS. Viewing your keys on macOS can be done in similar fashion as Linux.
That's all there is to viewing your SSH public and private keys on Linux, macOS, and Windows.
If you do accidentally release that private key, you'll need to remove the public key from the authorized keys file from every server that uses the keypair, delete the public and private keys on the host, generate a new keypair, and send it to the servers you need to log in to with SSH key authentication.
News URL
Related news
- Rogue npm Packages Mimic Telegram Bot API to Plant SSH Backdoors on Linux Systems (source)
- Microsoft fixes Linux boot issues on dual-boot Windows systems (source)
- Windows 11 and Red Hat Linux hacked on first day of Pwn2Own (source)
- Microsoft open-sources Windows Subsystem for Linux at Build 2025 (source)
- The Windows Subsystem for Linux goes open source (source)
- New PumaBot Botnet Targets Linux IoT Devices to Steal SSH Credentials and Mine Crypto (source)
- Chaos RAT Malware Targets Windows and Linux via Fake Network Tool Downloads (source)