I'm working for a client here who has set up an EC2 instance for me to configure. I've installed the software asked for, now all I need to do is open up some ports. I'm currently SSH'd into the machine, it's running Ubuntu 10.04.
I've installed the
ec2-ami-tools and the
ec2-api-tools packages, and have tried running the following, as has been recommended elsewhere:
ec2-authorize -p 1024 default
Unfortunately, this just fails and leaves me with this nasty error message:
Required option '-K, --private-key KEY' missing (-h for usage).'
Evidently I need a key to do this, so I copied my PEM key which I received with the instance to the server and ran it again with the key:
ec2-authorize -p 1024 -K mykey.pem default
Now it's asking for a certificate:
Reqired option `-C, --cert CERT' missing (-h for usage).`
Ugh. I don't really have a certificate, so what exactly is it asking me for? I don't have access to the EC2 web interface, so how can I open a port from the Ubuntu server itself?