Mac OS X "permission denied" on first attempt to connect

I am trying to connect for the first time to the wowza instance on ec2 that was generated by the aws console. I ran this command:

ec2-add-keypair wowza-keypair

and got a keypair. I saved this as wowza-keypair in my .ec2 folder.

I ran chmod 600 on it, then

ssh -i wowza-keypair root@[amazon instance name.com]

and I get this:

Warning: Identity file wowza-keypair not accessible: No such file or directory.

Permission denied (publickey,gssapi-with-mic).

Any suggestions?

I think this file needs to be in the same folder from which you are running the ssh command. See if that helps.

Charlie

If you are using the ElasticFox console, you can generate a keypair, and associate it with an instance when you start it. It’s very easy, no moving it around or chmod.

Richard