I mentioned that you shouldn't try to edit any of these folders or files without knowing exactly what you are doing and what it will do because ssh will literally create new folders itself. To make sure, I would do a search in Finder for these two folders. If you don't find these folders or even the ssh folder, then you probably don't have ssh capacity, or maybe these folders are located somewhere else. If it has more, it's fine, but it must have these three folders. Click it, and it should contain three folders: moduli, ssh_config, and sshd_config. Once you are there, you should have an ssh folder named ssh. This folder should be greyed out.Ĭlick it. There are other things you can do to find out for sure if you even have ssh capacity on your computer.Īlong side the users folder, there should another folder named etc. If you do the above command and it gives you some kind of error such as no such directory or something like that, it means you don't have that folder for real. This command will immediately bring you into the folder if it exists, and if you want to add stuff to it manually, I advise against it for now. If you are not able to find it, then to make sure that you don't have it and you are just not a very good searcher, go to your terminal app and run the following command: cd. It should also be greyed out because it's hidden. Maybe you named it, Tom, Jake, or whatever, but your user should be in this users folder.Īfter clicking it, scroll up until you see the folder named. Click on the users folder, then click on your user, whatever you named it. For me, on High Sierra, this command works perfectly.Īfter that, grey files should appear. If this command doesn't work for you, find out if there are any new commands that do that for your macOS version.
This will reveal hidden files, and the goal at this point is to simply do that. usually Macintosh HD, disk1, or whatever it's named.įrom there, hold down Shift Cmd. ssh in High Sierra, and possibly even up to the latest macOS, do the following: You are all now set up to use Git and GitHub.To locate. It will then start to clone the project to your directory.If you created a passphrase when you were generating the public key, then it will ask you to enter it.Open a terminal and type $ git clone It will ask you if you want to continue to connect, type yes Paste the public SSH key in the key textbox.Then enter a title name - can be anything, e.g.Click the button which says ‘New SSH key’.
How to upload your public SSH key to GitHub This will copy the contents of the id_rsa.pub file to your clipboard. Open a terminal and type $ pbcopy < ~/.ssh/id_rsa.pub In order to authenticate yourself and your device with GitHub, you need to upload your public SSH key which you generated above to your GitHub account.
Type the following command ssh-keygen -t rsa Go to your home directory by typing cd ~/.How to generate SSH key for GitHub authorization This will print the version of Git installed on your machine. To confirm the installation, type $ git -version
Open a terminal and type $ brew install git
In this step-by-step Git Tutorial, we will go through how to install Git on a Mac machine, how to generate SSH keys and upload your public SSH key to your GitHub account for authorization.