Next: , Previous: , Up: Task 1---Deploy the Lab Infrastructure   [Contents][Index]


3.3.2 Connect to Your Lightsail Instance Using SSH

There are two ways to access a Lightsail Linux instance:

  1. Connect to your Lightsail instance using either method; if you use your own preferred SSH client:
  2. In the AWS Management Console, on the ‘Services’ menu, click ‘Lightsail
  1. Download Your SSH Key
    1. At the top right of the screen, click ‘Account’, then ‘Account’ again.
    2. On the horizontal menu, select ‘SSH Keys’; there will be a list of available keys. Lightsail will create a default key for any Region in which you have previously deployed an instance.
    3. Next to the Region your lab was launched in (“MyRegion”), click ‘Download’.
    4. The key file will have the extension .pem and will be named LightsailDefaultPrivateKey-Region.pem where Region is the Region from which you downloaded the key. Note that while default keys might share the same name, they are unique for each Lightsail account.
  2. Obtain Your Instance IP Address
    1. At the top of the screen, click ‘Home’. Your instance IP address is located on your PHP-fe-1 card.
    2. Copy the IP address and create an environment variable:
      IP=$(pbpaste)
      
    3. Change the key’s file mode:
      chmod 600 ./ssh/LightsailDefaultPrivateKey-us-west-2.pem
      

      Issue the SSH command to access the instance using the user name bitnami and the copied IP address:

      ssh -i ./ssh/LightsailDefaultPrivateKey-us-west-2.pem bitnami@$IP
      

Next: , Previous: , Up: Task 1---Deploy the Lab Infrastructure   [Contents][Index]