Protecting your Keys on your Mac
In the last lesson we saw how to create a private public key using the mac terminal. Before we wrap up our mac only conversation I wanted to talk about protecting the files on your own computer (the private/public keys). What we want to do is change the access level of the file itself to validate no one but you can access it.
Video Transcript
00:00Before we wrap up this conversation that is literally only for the our Mac users, let's exit,
00:06let's log out of our our account and go back into that folder. So we're back in that SSH folder,
00:12I'm even going to take a step back back into my home folder. It's really important to protect your
00:18server and protect your files. Now, if you have more than one user on this Mac, any user might have
00:25access to this file and you want to make sure that only this specific user could even see the file.
00:30To make that happen, what we're going to do is we're going to change the configurations of this file.
00:36To do that, I'm going to change my CH mode, which basically and we're going to get into the details
00:41of how that works because we're going to do it again on our Linux itself with our file in the
00:46following video. So we'll talk about how it works really soon. But what I want to do is I want to
00:51set this folder to be 700. And we'll talk about why in a few minutes. So I'm just going to set here my
00:57folder dot SSH. And I'm going to go I'm going to I want to sit set to my next file that's inside of it to 600.
01:06And I'm going to just go into my SSH folder. And I'm going to select my ID RSA and make that private.
01:14So basically what I'm doing right here in these two lines is I'm making sure that only I only this
01:19user, only Ben Fala, could have access to this private key and only Ben Fala could have access to
01:25this folder in general. Okay, and we'll talk about the details of what it is and how it works in a
01:30previous video. And that's it. That's all I really wanted you to do because this is if you have more
01:34than one person working on this computer, it's a big security breach if you don't configure this
01:39to make sure that only you have access to it. So that's it. That's all we have about our conversation
01:44on the Mac side. Log into your log into the server and we'll see you in the next video, not the next
01:50one, which is going to be for our Windows users. But the one right after that where we're going to
01:55continue exactly from this point after after uploading the file onto the server itself. So see you
02:01now in the next video, but in the next one, next, next one, unless you want to see how you do this
02:06also on Windows.
