Installing and verifying the software stack  

The next step is to remote log into the EC2 instance, and install Apache Tomcat and the MySQL client libraries. We will use the private key file created and downloaded under Creating EC2 Instance Key Pairs in an earlier step.

  • Assign rights to the private key: Copy the private key file to the .ssh folder in your home directory, if for some reason it does not exists then create it and make sure that it has read/write/executable rights assigned for the owner (drwx-----). To log in from your command line, type in the following to assign correct rights to the private key file downloaded earlier. This assigns read/write and execution rights only to the file owner. Unless the rights are changed, it ...

Get Learning AWS - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.