


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. A: You can verify the fingerprint of the public key uploaded with the one displayed in your profile through the following ssh-keygen command run against your public key using the bash command line. Enter file in which to save the key (/home/you/.
#GITHUB SSH KEYGEN MAC MAC OS#
Open your ~/.ssh/config file, then modify the file to contain the following lines. USING MAC OS or Linux Step i: Using the SSH-KEYGEN Here I have named my key gcpdeeplearngpu located in /.ssh/ and srpa3180 is my username You can enter a passphrase if youd like or leave it blank by just hitting Enter/return key Location to your public key is as highlighted above in red, and can be accessed with the following cat command in Step 2. Mac terminal cd /.ssh ssh ssh-keygen -t rsa -C '' Creates a new ssh key using the provided email Generating public/private rsa key pair. 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. Go back to your terminal: nano /.

Let’s force your machine to use proper key for Github SSH connection. 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. Type name of your key (something like Work MacBook) and paste contents of your public key. As far as I can tell, when a user wants to interact with GitHub or some other Git remote using ssh protocols, it is necessary to run these two lines the terminal: eval '(ssh-agent -s)' ssh-add -K /. $ eval "$(ssh-agent -s)"ĭepending on your environment, you may need to use a different command. In the newer Mac OS, the user accounts dont have ssh-agent launched within each session and the user key is not remembered.
