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

**URL:** <https://community.wowza.com/t/mac-os-x-permission-denied-on-first-attempt-to-connect/542>\
**Category:** Wowza Streaming Engine\
**Created:** [January 27, 2009, 3:35pm UTC](https://community.wowza.com/t/mac-os-x-permission-denied-on-first-attempt-to-connect/542 "2009-01-27T15:35:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/system/32/447_2.png) [@system](https://community.wowza.com/u/system)\
**Post date:** [January 27, 2009, 3:35pm UTC](https://community.wowza.com/t/mac-os-x-permission-denied-on-first-attempt-to-connect/542/1 "2009-01-27T15:35:27Z")

</div>

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](http://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?

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [January 27, 2009, 1:43pm UTC](https://community.wowza.com/t/mac-os-x-permission-denied-on-first-attempt-to-connect/542/2 "2009-01-27T13:43:26Z")

</div>

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

Charlie

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [January 27, 2009, 9:46pm UTC](https://community.wowza.com/t/mac-os-x-permission-denied-on-first-attempt-to-connect/542/3 "2009-01-27T21:46:36Z")

</div>

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
