

If the new file is shown in the list of Keyfiles, then continue to the next step.Click Yes, then give the file a name and store it somewhere. A message box will appear asking your permission to convert the file into ppk format.Got to Edit (Preferences) > Settings > Connection > SFTP.The easiest way to copy files from your local machine to the remote instance is using FileZilla. Note: pm2 is a production runtime and process manager for Reactjs applications which will be used to run our application instead of npm start Copying your React app to AWS EC2Īt this stage, the instance is ready to host the application so you need to copy the react application files to launch it. Install npm(Node.js package manager): sudo apt- get install npm Once your EC2 instance is up and running, lets SSH into it ssh -i “ my-key-pair.pem” 1.Īfter you connect to the instance, you will need to install following software, required to run your application. Configuring your EC2 serverįor information on how to setup, refer Setting Up with Amazon EC2 in the Amazon EC2 User Guide for Linux Instances. Please refer to your documentation for your agent in this case.Here we will discuss systematic procedure to deploy a react application through pm2 (using FileZilla for SFTP) in an AWS EC2 instance running Amazon Linux. For everything elseįileZilla supports almost any SSH Agent, if the SSH_AUTH_SOCK is set in the environment variables. button.įileZilla will convert this file from Password protected to no password during the importation. In the Connection - SFTP tab, look for Add key file.Open FileZilla, and it should find Pageant running so it will take your private key and authenticate to your server.Look for you private key, will ask you for your password, then accept.

