Posts

Showing posts from June, 2021

Setup the ssh connection with github

Image
Generate the ssh key  $ ssh-keygen -t ed25519 -C "your_email@example.com"   Save the ssh key   > Enter a file in which to save the key (/Users/you/.ssh/id_ed25519): [Press enter]   Type a secure passphrase   > Enter passphrase (empty for no passphrase): [Type a passphrase] > Enter same passphrase again: [Type passphrase again]   Add ssh key to ssh-agent   $ eval "$(ssh-agent -s)"   $ open ~/.ssh/config if not exist, create it.   $ vi ~/.ssh/config   Host * AddKeysToAgent yes UseKeychain yes IdentityFile ~/.ssh/id_ed25519    Note: If you see an error like this /Users/USER/.ssh/config: line 16: Bad configuration option: usekeychain    add IgnoreUnknown UseKeychain in .ssh/config     Copy the SSH public key to your clipboard. more ~/.ssh/id_ed25519.pub   Select an copy your pub key and place in your github account   In the user settings sidebar, click SSH and GPG keys.  Click New SSH key...