In our earlier videos, we configured the Amazon EC2 command line tools. The command line tools are great, but sometimes it is also nice to use a graphical user interface.
ElasticFox is a handy tool that provides exactly that. In the video below, we will illustrate how to configure this tool for Mac OS X.
February 27th, 2009 at 1:15 pm
I’m having trouble establishing the ssh connection. I’m getting
> ssh -i /home/dwalend/ec2-keys/id_dwalend3 root@ec2-75-101-244-122.compute-1.amazonaws.com
Warning: Identity file /home/dwalend/ec2-keys/id_dwalend3 not accessible: No such file or directory.
…
at the prompt.
In ec2-keys:
ls -al
total 40
drwx–x–x 2 dwalend users 4096 Feb 27 16:00 ./
drwxr-xr-x 26 dwalend users 8192 Feb 27 16:00 ../
-rw——- 1 dwalend users 4096 Feb 27 16:00 ._id-dwalend3
-rw——-@ 1 dwalend users 1672 Feb 27 16:00 id-dwalend3
which is a bit odd.
ls -al@
drwx–x–x 2 dwalend users 4096 Feb 27 16:00 ./
drwxr-xr-x 26 dwalend users 8192 Feb 27 16:00 ../
-rw——- 1 dwalend users 4096 Feb 27 16:00 ._id-dwalend3
-rw——-@ 1 dwalend users 1672 Feb 27 16:00 id-dwalend3
com.apple.quarantine 46
xattr -d com.apple.quarantine id-dwalend3
gets rid of the quarantine.
ls -al@
drwx–x–x 2 dwalend users 4096 Feb 27 16:13 ./
drwxr-xr-x 26 dwalend users 8192 Feb 27 16:00 ../
-rw——- 1 dwalend users 1672 Feb 27 16:00 id-dwalend3
but still no love from ssh:
ssh -i /home/dwalend/ec2-keys/id_dwalend3 root@ec2-75-101-244-122.compute-1.amazonaws.com
Warning: Identity file /home/dwalend/ec2-keys/id_dwalend3 not accessible: No such file or directory.
Permission denied (publickey,gssapi-with-mic).
Any thoughts on what to try next?
Thanks,
Dave
February 27th, 2009 at 2:04 pm
Hmmm, well my permissions look slightly different for the key. They are:
-rw-r–r– 1 ericlee staff 1675 Feb 23 17:38 newkey.pem
I know Mac OS X is pretty picky about permissions, so not having group read might be causing the problem?
March 1st, 2009 at 7:21 pm
Thanks for replying.
I’ve got the same problem on Ubuntu (plus the annoying quick close of the terminal).
Using the home lap top instead of the work machine (and my own account instead of the company’s), MacOS, and now Ubuntu via parallels. The file permissions on Ubuntu are just rw.
Any thoughts on what might be wrong? Only thing I can guess is that I’m repeatedly mistyping the secret.
Thanks,
Dave
March 1st, 2009 at 7:26 pm
That could be it - one quick thing to check is when you cut-and-paste the secret from the Amazon web site, you often get a leading or trailing space. That will mess things up. I usually copy it into a text editor and remove spaces.
Thanks!
Eric.
March 2nd, 2009 at 8:09 am
I don’t think that’s it. With a space in the secret, I don’t see any images. I’m able to see them and start them. I just can’t log in.
No luck with the pure ubuntu machine either.
What else should I check? I’m going to try the ec2 java tools. If no luck there, I’ll do some deep reading about ssh.
Thanks,
Dave
March 2nd, 2009 at 8:42 am
Found it. Underscores vs. hyphens. EC2 and ElasticFox use both. The key pairs are id_your-string.
Thanks for the help,
Dave
March 2nd, 2009 at 12:31 pm
Ah gotcha, glad you were able to find the problem.
Thanks!
Eric.
March 2nd, 2009 at 12:32 pm
Oh I should mention - have you tried the Amazon EC2 Console yet? It was released after I made this video - it is really nice and worth giving a try.
https://console.aws.amazon.com/ec2/home
April 9th, 2009 at 8:20 am
Thanks for the chmod tip, I was getting the
WARNING: UNPROTECTED PRIVATE KEY FILE!
and that fixed it
chmod go-rw id_[Your keyname]
April 14th, 2009 at 5:34 pm
Glad to help; yeah that one got me stuck for a bit too. I’ve only ever seen that on the Mac.