Python for Entrepreneurs Transcripts
Chapter: Source Control and Git
Lecture: SSH Key Management in Windows

Login or purchase this course to watch this video and the rest of the course contents.
0:01 If you're using Windows, you can download an application
0:03 that will generate SSH keys for you, there's nothing built into the operating system
0:07 that will allow you to create a key pair like ssh-keygen on Linux or Mac
0:11 but we can use a separate program to do this for us.
0:15 So that's what we're going to do in this video,
0:16 if you are using Linux or Mac feel free to skip this one.
0:20 At your Windows desktop, click on your browser of choice,
0:23 and bring out, that's
0:29 Click the link to download PuTTY but we don't want the putty.exe file,
0:35 what we want is PuTTYgen, so go ahead and download that file,
0:42 save it, and we can run it.
0:45 A newer versions of Windows may tell you that you can't run the file
0:50 because you don't have appropriate permissions,
0:52 but in our case we do want "more info" and we want to say "run anyway".
0:55 This is the PuTTY Key Generator, you can think of it like a user interface
0:59 that's very similar to ssh-keygen on Linux or Mac.
1:02 Make sure that "SSH-2 RSA" is selected and then click generate.
1:07 And we want to randomly move our mouse around
1:09 and that will allow us to have some randomness that will be input into the key.
1:14 Just go ahead keep moving your mouse around
1:16 until the green bar is all the way over to the right side.
1:24 After we've moved our mouse around enough to generate randomness,
1:29 we'll get the key generated, now what you'll see here is the public key
1:34 for pasting into an authorized key file or for uploading to GitHub,
1:39 so we can copy and paste that and put that wherever we want.
1:42 This is public key, so anyone can have this, this file can be shared publicly.
1:46 Now just like with the ssh-keygen command, we can add a pass phrase if we choose.
1:52 For a development key, I typically say that you should use a pass phrase,
1:55 now if you're automating a deployment, you may not want a pass phrase,
1:58 but in our case, for a development key, we do want to add a key phrase,
2:02 add a secure pass phrase, it has to be the same on both,
2:08 and then you can select save public key and we can save this wherever,
2:12 under downloads you might want to call it just
2:19 and we can save our private key and we call this just entrepreneurs.
2:26 We can bring this up in our downloads folder, this is the public key,
2:31 we can share this widely, we'll copy and paste this into GitHub
2:34 and then we have our private key.
2:36 So that's how we generate public and private keys on Windows
2:40 using the PuTTYgen application.