
How to use cloud computing 61
$:chmod 400 ssh-keypair.pem
$:ssh -i ssh-keypair.pem username@ec2-xxx-xxx-xxx-xxx.
compute-1.amazonaws.com
ssh-ke y pair.p e m is the public key le and “username” is the
account name to log in to the Linux system. The default account name
is “root” for Redhat Linux system, and “ubuntu” for the Ubuntu
system. If the AMI is prepared by Amazon, the default account
usually is “ec2-user”.
PuTTY
1
can be used to connect the instance from the Windows
machine. The PuTTY les can be downloaded from its of-
cial Web site.
2
In this example, PuTTYgen is needed to convert
theAmazonkey pair into a private key and P ...