AI_DL_Assignment / 29. BONUS - Create a Computer Vision API & Web App Using Flask and AWS /7. Using FileZilla to transfer files to your EC2 Instance.html
| <h4><strong>Using FileZilla to Connect to Your EC2 Instance to Allow Transferring of Files</strong></h4><p><br></p><p><strong>Step 1: Install FileZilla</strong></p><ul><li><p>Windows and Mac Users can go here and download and install - <a href="https://filezilla-project.org/" rel="noopener noreferrer" target="_blank">https://filezilla-project.org/</a></p></li><li><p>Ubuntu users can open the Terminal and install as follows:</p></li><li><pre class="prettyprint linenums">sudo apt-get update | |
| sudo apt-get install filezilla </pre></li></ul><figure>After installing you can find and launch FileZilla by simply searching for it:<img src="https://udemy-images.s3.amazonaws.com:443/redactor/raw/2019-04-23_05-17-59-4136243a8af88a3f38b752a9adbeb7bb.JPG"></figure><p><strong>Step 2:</strong> Let's load our SSH Key into FileZilla. Open FileZilla, and click Preferences in the main toolbar (should be the same for Windows and Mac users)</p><figure><img src="https://udemy-images.s3.amazonaws.com:443/redactor/raw/2019-04-23_05-17-59-392a1cbb6dc5cd76196f692d6a2bca80.JPG"></figure><p><strong>Step 3A: </strong>In the left panel, select <strong>SFTP </strong>and then click <strong>Add key file...</strong></p><figure><img src="https://udemy-images.s3.amazonaws.com:443/redactor/raw/2019-04-23_05-17-59-b8ac3f9c8b4d1633f472204099911d28.JPG"></figure><p><strong>Step 3B: </strong>To find your ssh key, navigate to your "./ssh" directory, as it is a hidden directory, in Ubuntu, you can hit CTRL+L which changes the Location bar to an address bar. Simply type ".ssh/" as shown below to find your ssh key directory. </p><figure><img src="https://udemy-images.s3.amazonaws.com:443/redactor/raw/2019-04-23_05-17-59-fd67f533da61e4b6e6a3f8173c7fd18f.JPG"></figure><figure><img src="https://udemy-images.s3.amazonaws.com:443/redactor/raw/2019-04-23_05-17-59-e861aeafa0d05fdc4b1221c283cd52fd.JPG"></figure><p><strong>Step 4A: Connecting to your EC2.</strong> Now that you've added your key we can create a new connection.</p><p>On the main toolbar again, click <strong>File </strong>and <strong>Site Manager</strong></p><figure><img src="https://udemy-images.s3.amazonaws.com:443/redactor/raw/2019-04-23_05-17-59-7094ce39622c5205fc7a199c97eabead.JPG"></figure><p><strong>Step 4B: </strong>This brings up the Site Manager window. Click<strong> New Site</strong> as shown below</p><figure><img src="https://udemy-images.s3.amazonaws.com:443/redactor/raw/2019-04-23_05-17-24-3ebedc419bfba9facc83d3ca94ee6aed.JPG"></figure><p><strong>Step 4C: </strong>Enter the IP (<strong>IPv4 Public IP)</strong> of your EC2 Instance (can be found under Instances in your AWS Console Manager).</p><figure><img src="https://udemy-images.s3.amazonaws.com:443/redactor/raw/2019-04-23_05-17-24-119a9990f34809b4d270b44a0920be88.JPG"></figure><p><strong>Step 4D: </strong>Change the <strong>Protocol </strong>to <strong>SFTP</strong></p><figure><img src="https://udemy-images.s3.amazonaws.com:443/redactor/raw/2019-04-23_05-17-24-c70e300f0e3bea0e4e019569b9aae7cb.JPG"></figure><p><strong>Step 4E:</strong> Change the<strong> Logon Type</strong> to <strong>Normal </strong></p><figure><img src="https://udemy-images.s3.amazonaws.com:443/redactor/raw/2019-04-23_05-17-24-5ec407abfc844c69d20c216b7e701bfb.JPG"></figure><p><strong>Step 4F:</strong> Put the <strong>Username </strong>as <strong>ubuntu.</strong> Leave the password field alone.</p><figure><img src="https://udemy-images.s3.amazonaws.com:443/redactor/raw/2019-04-23_05-17-24-272f537a13d6ca250ac3e5e12035f2cd.JPG"></figure><p><strong>Step 4G:</strong> <strong>Check </strong>the "Always trust this host, add the key to the cache box" and click on <strong>OK</strong>.</p><figure><img src="https://udemy-images.s3.amazonaws.com:443/redactor/raw/2019-04-23_05-17-24-7deb4172c6ab15ff64fa4e6de5bcc977.JPG"></figure><p><strong>Step 5: We've Connected! </strong></p><p>The numbered boxes below show the main windows we'll be using in FileZilla. </p><p>1. Is the connection status box that shows the logs as the system connects to your EC2 instance.</p><p>2. These are your local files on your system</p><p>3. These are the files on your EC2 VM. By default both these </p><figure><img src="https://udemy-images.s3.amazonaws.com:443/redactor/raw/2019-04-23_05-17-24-382888a7caaa7e085dbed8ba415276ee.JPG"></figure><p><strong>Step 6: </strong>Navigate to your Flask python files you downloaded in the previous resource section and drag them accross to your EC2 home directory (default directory).</p><figure><img src="https://udemy-images.s3.amazonaws.com:443/redactor/raw/2019-04-23_05-36-01-9339191f4d972516df58fda9846a758f.JPG"></figure><p><strong>Great! You're almost ready to have a fully working CV API live on the web!</strong></p><p>Next, we need to change the security group of our EC2 to allow HTTP inbound traffic.</p> |