RESTful and HTTP APIs in Pyramid Transcripts
Chapter: Deploying your REST service to DigitalOcean on Ubuntu
Lecture: Creating your ssh key

Login or purchase this course to watch this video and the rest of the course contents.
0:01 Now the next thing we want to do is create our server but before we can do that, we need to give it an ssh key
0:07 that we can use to log in, after it's created, this is a much easier and safer way than just using usernames and passwords.
0:13 So click here, it's going to say let's create a new ssh key, and you click this link, it takes you over here and it says
0:20 the first thing you are going to do is ssh keygen rsa. Now that's close to what we want, it's not exactly really what we're going to need,
0:26 so what we're going to do is we're going to do ssh-keygen -t ssh-rsa, not just straight rsa, and it's going to ask us for our files
0:35 we'll say use/screecaster/ .ssh/ and let's call it digital_ocean_course_demo.key
0:45 call it whatever you want, I'm calling it that, no passwords and it's all good to go.00:48 Now if we look in here, we'll see we have a couple of these,
0:52 we have the private key and we have the public key, now I'm going to delete this key from my account afterwards anyway
0:59 but let me just offline grab the value and put it into where it's supposed to go. Okay I've taken the contents of the public key
1:06 and I put it in here where it's asking for the new ssh key details, so that's what we're going to use for creating this server.

Talk Python's Mastodon Michael Kennedy's Mastodon