NEW

Deploy Django to DreamCompute on Ubuntu with Apache – Part 5

In the final part of this tutorial, we’ll talk about how to set up a secure HTTPS connection on Apache with an SSL certificate from Let’s Encrypt.

Deploy Django to DreamCompute on Ubuntu with Apache – Part 4

In the previous part of this tutorial, we set up and configured Django. With everything now set up, it is time to install and configure Apache.

Deploy Django to DreamCompute on Ubuntu with Apache – Part 3

In the previous tutorial we got PuTTY and FileZilla set up. In this tutorial, we’ll be focusing on using the Shell terminal to get Django installed and set up.

Deploy Django to DreamCompute on Ubuntu with Apache – Part 2

In the first part of this tutorial, we set up a DreamCompute Instance. In this part, we’ll walk through connecting to the system Shell and SFTP.

Deploy Django to DreamCompute on Ubuntu with Apache – Part 1

In this five-part tutorial, I’m going to show you how to deploy a Django application to DreamCompute on Ubuntu with Apache and an SSL certificate.

The Google Pop-up Experience

When I've first heard about Google opening up a hardware store in Chicago's Bucktown during mid-October, I was very excited. I've been following Google's development for quite some time now in the industry. I, myself, am a big fan of smart devices and find the...

VO Manager Pro – Released

You can now purchase the VO Manager Pro on the Unity Asset Store at http://u3d.as/1ee5 for $14.99!

View My Map

View My Map is an online web application that gathers Facebook user’s checked-in location data and places them on a Google Map. The app also allows the user to export screenshots of their map as well as share them online via a generated link.

Balancing School and Work

It’s no joke when it comes to balancing school and work. It can be difficult, and I have a hard time myself. How do any of us do it? Sheer willpower of course! As true as that may sound, there’s more to it than sheer willpower.

Deploy Django to DreamCompute on Ubuntu with Apache – Part 2

In the first part of this tutorial, Deploy Django to DreamCompute on Ubuntu with Apache – Part 1, we walked through setting up our first DreamCompute Instance.

In this part, we’ll walk through how to connect to the system’s Shell and SFTP.

Note: This part of the tutorial is written using a Windows operating system. Instructions, software, and results may vary based on your operating system.


Downloading PuTTY and PuTTYgen

Before we can connect to the system’s Shell or SFTP, we first need to install PuTTY and PuTTYgen. Both software is found and downloaded here.

Generating Our Private Key with PuTTYgen

PuTTYgen's interface.

Once we got both software downloaded and installed, launch PuTTYgen. We will need to generate a Private Key to connect to our system’s Shell or SFTP successfully.

To do this click on the Load button and locate the key pair file we’ve downloaded from the previous tutorial. This file is the file with the .pem extension.

Note: You might have to select “All Files(.)” on Windows to be able to choose the key pair file.

Once the key pair file is loaded, you’ll get a pop-up notice saying that it imported successfully. Press OK then press Save private key. Give your private key a name and store it somewhere safe. You will need access to this file each time you access the system’s Shell or SFTP.

Accessing The System’s Shell with PuTTY

PuTTY's interface.

Now that we got our private key generated, it is time to connect to the system’s Shell. To do this, launch PuTTY.

Once launched, our default view should be under Session. The first thing we would want to do is copy and paste in our IP Address from our Instance to Host Name (or IP address). We got this from the previous part of this tutorial.

Before we’re able to connect, the next step is to load in the private key we just generated. On the left-hand site expand SSH and click on Auth.

Under Private key file for authentication, click on Browse and select our private key.

When our private key is loaded, click back on Session. We can now type in a session name in the Saved Sessions box and hit Save. We can now load up the same settings each time by selecting the Session and pressing Load to prevent us from having to enter the IP Address and selecting the private key manually each time.

A terminal will open up, and the very first thing it will ask you is to login as. By default, all Ubuntu Instances will have ubuntu as the username.

If you’ve successfully connected you should see:

ubuntu@instance_name:~$

Where instance_name is the name of your Instance.

Accessing SFTP

FileZilla's interface.

To access our FTP, or SFTP in this case, we first must install an FTP client. For this tutorial, we’ll be using FileZilla. You can download FileZilla here.

Once installed, launch FileZilla. When FileZilla open up, press the Site Manager button, the button that is directly below the File menu option and is the first left button on the toolbar.

A new window will open. Press on the New Site button and give it a name. Under Protocol select SFTP – SSH File Transfer Protocol. Enter our Instance’s IP Address in the Host field. Then under Logon Type select Normal and enter ubuntu as the User.

Press OK once the information is in place.

Note: Pressing the Connect button will generate errors.

To connect to our Instance without errors, we must tell FileZilla to load in our private key.

To do this, hover over Edit on the top menu and press on Settings. A new window is going to pop up. On the left-hand side, select SFTP under Connection.

Click on the Add key file button and load in our private key and when the private key is loaded press OK to close out the window.

We can now connect to our Instance by clicking the Connect button under Site Manager or by clicking on the dropdown arrow by the Site Manager button and selecting the site we’ve just saved.

You’ve now successfully connected to the Instance via SFTP.

Note: We will not be using SFTP throughout the remainder of this tutorial. However, this is useful information to have if you are uploading a local Django project.

Previous

Next

Submit a Comment

Your email address will not be published. Required fields are marked *