If you don't want to type your password each time you use the key, you'll need to add it to the ssh-agent.Įnter ssh-add followed by the path to the private key file: The command displays two files, one for the public key (for example id_rsa.pub) and one for the private key (for example, id_rsa). You should see something like the following: Your public key has been saved in /c/Users/emmap1/.ssh/id_rsa.pub. Your identification has been saved in /c/Users/emmap1/.ssh/id_rsa. The whole interaction looks similar to this:Įnter file in which to save the key (/c/Users/emmap1/.ssh/id_rsa):Ĭreated directory '/c/Users/emmap1/.ssh'.Įnter passphrase (empty for no passphrase): The command creates your default identity with its public and private keys. Enter and re-enter a passphrase when prompted. For example, to create a key called my-new-ssh-key, enter the Windows path, shown here:Įnter file in which to save the key (/c/Users/emmap1/.ssh/id_rsa): c:\Users\emmap1\.ssh\my-new-ssh-keyģ. To create a key with a non-default name or path, specify the full path to the key. We recommend keeping the default key name unless you have a reason to change it.