concept .pem file in category nlp

appears as: .pem file
Natural Language Processing in Action: Understanding, analyzing, and generating text with Python

This is an excerpt from Manning's book Natural Language Processing in Action: Understanding, analyzing, and generating text with Python.

  • If you haven’t previously created an instance with AWS, it’ll ask you to create a new key pair (see figure E.9). The key pair allows you to ssh into the machine without a password. By default, EC2 instances don’t allow password login, so you’ll need to save the .pem file in your $HOME/.ssh/ folder and keep a copy of it in a safe place (such as your password manager) or you won’t be able to access your running server and will have to start over.
  • You’ll want to record the public IP address for your instance (see figure E.11) alongside the .pem file for the key pair you generated earlier. A good place to store this is in your password manager with the .pem file. You’ll also want to put it within your $HOME/.ssh/config file, so you can give your instance a host name so you don’t have to find the IP address in the future. A typical config file will look something like what is shown in the following listing. You’ll want to change the HostName value to the public IP address (from the EC2 Dashboard) or fully qualified domain name (from your “Route 53” Dashboard on AWS) for your EC2 instance that you just launched.
    Listing E.1. $HOME/.ssh/config
    Host totalgood
        User ubuntu
        HostName INSTANCE_PUBLIC_IP                                     1
        Port 22
        IdentityFile ~/.ssh/nlp-in-action.pem                           2
        # ssh -i ~/.ssh/nlp-in-action.pem ubuntu@INSTANCE_PUBLIC_IP     3
    • 1 Replace INSTANCE_PUBLIC_IP with your public IP address.
    • 2 The path to the .pem file you downloaded goes here.
    • 3 You can leave notes as comments in your config file.