Category : General Programming Toggle

Uploading web files to a new Amazon EC2 instance

Uploading your web files

  1. Using the SFTP client of your choice (I prefer Transmit or Cyberduck, depending on what I’m doing), connect to your EC2 instance over SFTP using the following credentials:
    – Hostname: {public-hostname}
    – User: ec2-user
    – Key: {path-to-keypair-pem}

  2. Move to the /var/www/html directory.
  3. Drag your web files into this directory to upload them. index.html will be loaded as the homepage when you load the public hostname in your web browser.
ShutDown