Setup SSH Connection
Contents
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:
- PuttyGen: This tool is used to generate private key from previously downloaded Key-Pair file (e.g. wpkey.pem)
- Putty: This tool is used to establish SSH connection.
- 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.
loading...
About Hardono
Incoming Search
linux, nginx, ubuntu, wordpress