How to Generate Ssh Key in Linux?
Contents 3. Generate a New Key Open a Terminal on Your Local Computer and Enter the Following: Ssh-Keygen -T Rsa -C “[Email Protected]” Just Press to Accept...
Contents
3. Generate a new key
- Open a terminal on your local computer and enter the following: ssh-keygen -t rsa -C “[email protected]”
- Just press <Enter> to accept the default location and file name.
- Enter, and re-enter, a passphrase when prompted.
- You’re done!
How do I generate a public SSH key?
To generate an SSH key with PuTTYgen, follow these steps:
- Open the PuTTYgen program.
- For Type of key to generate, select SSH-2 RSA.
- Click the Generate button.
- Move your mouse in the area below the progress bar.
- Type a passphrase in the Key passphrase field.
- Click the Save private key button to save the private key.
Must Read
How do I generate a SSH key in GitHub?
How to set up your SSH key with GitHub
- Login to your terminal via SSH.
- Generate a key pair by running the following command, substituting in your GitHub email address between the quotes ssh-keygen -t rsa -b 4096 -C “[email protected]”
- When you’re prompted to “Enter a file in which to save the key,” press Enter to save it in the default location.