Conceivably, you can share the public key with anyone without compromising the private key you store it on the remote system in a. You keep the private key a secret and store it on the computer you use to connect to the remote system. SSH public key authentication relies on asymmetric cryptographic algorithms that generate a pair of separate keys (a key pair), one 'private' and the other 'public'. Using SSH public key authentication to connect to a remote system is a robust, more secure alternative to logging in with an account password or passphrase. Set up public key authentication using PuTTY on a Windows 11, Windows 10, or Windows 8.x computer.Set up public key authentication using SSH on a Linux or macOS computer.