SSH to EC2 Instance

I have been working with AWS (Amazon Web Services) with EC2 (Elastic Computing) instances (Cloud Instances). I had some trouble connecting to them. So I thought of sharing how you could do this in few easy ways.

At the point of creating the instance you can associate an existing key pair or can create one for you. When you create the key file your key will automatically start downloading. Keep that safe and use it to connect. This will have the “pem” extension. Let’s say the file is AWS.pem
  • Linux Shell

This is the easiest way as long as you are on linux or cygwin on windows. Assuming you are connecting to an Ubuntu Server instance.

# using a google IP for demonstration purposes

# Using Elastic IP
ssh -i AWS.pem ubuntu@

# Using Public DNS
ssh -i AWS.pem
  • Using Putty

Pinehead has a nice video explaining everything about using Putty. Only difference is the user name is root. For ubuntu server you can’t connect as root. It’s always “sudo” after connecting using the user “ubuntu”


  • Other

Other commercial tools such as XShell which provides free access for non-commercial/personal/student basis have the support built-in. You can just select the keyfile to use when connecting with the user:ubuntu/root and the Elastic IP/Public DNS

Should we take on Fedora

Fedora is the community version of RedHat if I say in civilized manner. To be more rude I can say that Fedora is the bleeding beta version of RedHat where the community will test and fix the bugs for them before they release the next stable enterprise version. Actually when RedHat went from being free and opensource to a licensed OS, they created fedora to keep the opensource part of the OS active.

But, Fedora is the operating system which is closest to being a real opensource operating system compared to distributions like Ubuntu which has more commercial purpose.
Continue reading “Should we take on Fedora”

Can not login to MSN with pidgin on Ubuntu/Linux: Fixed

When I try to login to MSN/Live with Ubuntu the following error comes;
After digging online and trying different things I managed to get it working again.

The certificate for could not be validated. The certificate chain presented is invalid.

Seems like the certificate for MSN has expired, so you need to add the new one.
To resolve this, open a new terminal (or Ctrl+Alt+t) and run the below commands respectively;

rm $HOME/.purple/certificates/x509/tls_peers/
wget ""
mv $HOME/.purple/certificates/x509/tls_peers/

කවදාද ෆෙඩෝරා එන්නේ……

ෆෙඩෝරා 13 වන නිකුතුව “GODDARD” සංකේත නාමය යටතේ නිකුත් වීමට නියමිතයි. ටික කලකට පෙරද මම බ්ලොග් සටහනක් මේ ගැන ලියුවෙමි. කලින් තිබුණු අයුරින් එය නිකුත් වීමට තිබුනේ 2010 මැයි මස 18 වන දිනයි. නමුත් Fedora දැන් පුරුද්දක් කරගෙන සිටින දිගින් දිගටම දිනය පසු කෙරීමේ ක්‍රියාවලිය නිසා නැවතත් එය පමා වී ඇත. මම කලින් වර මෙන් දිනයක් පවසන්නේ නැත. මෙහි පහලින් දක්වා ඇති බැනරය ඔවුන්ගේ කල සටහනට අනුව හැඩගැසෙන්නකි. YouTube වීඩියෝ වලට අනුව නම් මෙය භාවිතයට සුදුසු බවක් පෙන්නුවද, වෙලාවට වැඩක් කරන්නට බැරි කම නිසා තිබු විශ්වාසය පලුදු වූ බව නම් කිවිය යුතුය.

Fedora 13 GODDARD

Fedora is the freedom in Operating Systems as far as I see, which is one of the top players in Linux distributions.

The latest version of Fedora, Fedora 13 code named “GODDARD” is about to be released and the project plan can be found at their site which has changed the initial release date from the 11th of May 2010 to the 18th of May 2010.

If you are eager you can get the latest beta of fedora from the pre-releases section in their site.

As a developer I really fell in love with this version after seeing this video and I will definitely be moving to 13 as soon as it’s released.

YouTube Video – Thanks to thisweekinlinux