browse by category or date

Setup SSH Connection

There are many tools that enables you to have SSH session with your EC2 instance. But I won’t review them all here, I’ll just discuss my choice of tools. Which are:

  1. PuttyGen: This tool is used to generate private key from previously downloaded Key-Pair file (e.g. wpkey.pem)
  2. Putty: This tool is used to establish SSH connection.
  3. FileZilla: This tool is an FTP client that capable connecting to SFTP protocol

Putty and PuttyGen can be downloaded HERE. Filezilla’s download page is HERE.

Generate Private Key

Run PuttyGen:

Click Load button, select the .pem file.


Change the Number of bits in a generated key to 2048. Click the Save private key button and name the file wpkey.ppk

Establish SSH Connection

Run Putty:

Go to Connection -> SSH -> Auth. We need to set the Private key for authentication with the .ppk file that we generate before. Click browse, and find the file. After that go to Session

Set the Hostname (or IP address) with the IP address obtained in previous page. Or you could use the Public DNS value shown in your Instance detail. Leave the default value (22) for Port. Under the Saved Session, give name to this connection (e.g. ec2), then click Save. Finally, click Open to initiate connection.

Putty will prompted you whether this connection can be trusted:

Click Yes. To login, use ubuntu as username.

Congratulations! You are now connected to your Ubuntu server through SSH.

Establish SFTP Connection

Run FileZilla, go to Edit -> Settings. In the Settings window, go to Connection -> SFTP. Press Add keyfile button. Select the same .ppk file as the one used by Putty.


Next, go to Sites Manager. Add connection to your instance by following configuration similar to below and save it for future usage.

Alright, so far so good. We now can connect to our instance and transfer files. Next, let’s start configuring our server for WordPress.

GD Star Rating
loading...
How To Migrate Your WordPress Blog from GoDaddy Shared Hosting To Amazon EC2 Micro, 5.0 out of 5 based on 1 rating

About Hardono

Howdy! I'm Hardono. I am working as a Software Developer. I am working mostly in Windows, dealing with .NET, conversing in C#. But I know a bit of Linux, mainly because I need to keep this blog operational. I've been working in Logistics/Transport industry for more than 11 years.

Incoming Search

linux, nginx, ubuntu, wordpress

1 Trackback

 

No Comment

Add Your Comment