Simply so, where can I find the public key?
Public-Key Basics
By default, the private key is stored in ~/. ssh/id_rsa and the public key is stored in ~/. ssh/id_rsa.
Beside above, how do I find my public SSH key Mac? To generate SSH keys in Mac OS X, follow these steps:
- Enter the following command in the Terminal window: ssh-keygen -t rsa -b 4096.
- Press the ENTER key to accept the default location. The ssh-keygen utility prompts you for a passphrase.
- Type in a passphrase.
Regarding this, can I get public key from private key?
In practice, yes, you can get the public key from the private key. In principle, it would be possible to create an RSA private key from which the corresponding public key cannot be easily obtained, but this would require using both a non-standard key generation method and a non-standard private key storage format.
Where do I put SSH public key?
SSH keys are typically configured in an authorized_keys file in . ssh subdirectory in the user's home directory. Typically a system administrator would first create a key using ssh-keygen and then install it as an authorized key on a server using the ssh-copy-id tool.
