

Insert your hardware security key into your computer. 2/5 in a series on SSH and key pair authentication. For more information, see " Error: Unknown key type." A tutorial on configuring SSH Server to Authenticate with Private/Public Keys using Ubuntu Linux.
SSH KEYGEN WINDOWS TO UBUNTU INSTALL
If you are using macOS or Linux, you may need to update your SSH client or install a new SSH client prior to generating a new SSH key.

Generating a new SSH key for a hardware security key For more information, see " Adding a new SSH key to your GitHub account."

$ ssh-add ~/.ssh/id_ed25519Īdd the SSH key to your account on GitHub. If you created your key with a different name, or if you are adding an existing key that has a different name, replace id_ed25519 in the command with the name of your private key file. Host *Īdd your SSH private key to the ssh-agent. If your SSH key file has a different name or path than the example code, modify the filename or path to match your current setup. Open your ~/.ssh/config file, then modify the file to contain the following lines. If the file doesn't exist, create the file. > The file /Users/ you/.ssh/config does not exist. If you're using macOS Sierra 10.12.2 or later, you will need to modify your ~/.ssh/config file to automatically load keys into the ssh-agent and store passphrases in your keychain.įirst, check to see if your ~/.ssh/config file exists in the default location. For example, you may need to use root access by running sudo -s -H before starting the ssh-agent, or you may need to use exec ssh-agent bash or exec ssh-agent zsh to run the ssh-agent. $ eval "$(ssh-agent -s)"ĭepending on your environment, you may need to use a different command.
