Menu
Ssh Key Github
Adding your SSH key to the ssh-agent. Before adding a new SSH key to the ssh-agent to manage your keys, you should have checked for existing SSH keys and generated a new SSH key. When adding your SSH key to the agent, use the default macOS ssh-add command, and not an application installed by macports, homebrew, or some other external source. If you don't already have an SSH key, you must generate a new SSH key.If you're unsure whether you already have an SSH key, check for existing keys. If you don't want to reenter your passphrase every time you use your SSH key, you can add your key to the SSH agent, which manages your SSH keys and remembers your passphrase.
Mac and Linux
Generate Ssh Key Windows
- Open Terminal
- Check if you already have a SSH keypair generated. Do the following:If the files exist, you already have SSH installed. IMPORTANT: But if you wish to regenerate the SSH key pair, at least back up your old SSH keys.
- Generate a 4096-bit key pair - yes, use the higher bit
- Enter a file in which you want to save your keys. You can press enter and the default
~/.ssh/id_rsa
will be used. - Enter a passphrase. Read Github working with SSH key passphrase articule on why you should use a passphrase and at the same time you don't have to enter the passphase everytime you use your SSH key.
- From here on your SSH key pair is generated, your SSH public key is
~/.ssh/id_rsa.pub
- the one with thepub
extension. BE EXTRA CAREFUL when using your~/.ssh/id_rsa
file. This is your private key, guard it properly.
Generating Ssh Key For Github
Windows
Github Generate Ssh Key
- Install Git for Windows
- Open Git Bash and repeat the above instructions