Wrox Programmer Forums
|
BOOK: Beginning Building Mobile Application Development in the Cloud
This is the forum to discuss the Wrox book Beginning Building Mobile Application Development in the Cloud by Richard Rodger ; ISBN: 978-1-1180-3469-9
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Building Mobile Application Development in the Cloud section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 21st, 2011, 05:43 PM
Registered User
 
Join Date: Nov 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default ssh

Everything has been going swimmingly as I work my way through the exercises in this excellent resource; however, I am unable to make ssh work in Cygwin in order to connect to my AWS instance. Any clues? Thanks! :dj
 
Old November 21st, 2011, 06:30 PM
Registered User
 
Join Date: Nov 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I haven't tried Cygwin but in the past I successfully connected to an AWS instance using PuTTY from a Windows OS. I found this blog post helpful when I was struggling getting SSH to work.
 
Old November 25th, 2011, 12:46 PM
Registered User
 
Join Date: Nov 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default ssh

You might check firewall settings for an installed firewall, to make sure it giving cygwin full permissions.
 
Old November 28th, 2011, 05:33 PM
Registered User
 
Join Date: Nov 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default ssh with ubuntu instance

Thanks for the posts, cman123 & jhrobbin. I couldn't see any firewall issues, so I downloaded PuTTY and got a bit farther along with the help of the blog that jhrobbin referenced.

Now it seems that I can login to default AMI instances with PuTTY SSH, but when I try to login to an Ubuntu instance via Alestic, my key private key is not accepted by the server. Any clues?

I'm also wondering if there's some way to start nginx on a non-Ubuntu instance. Has anyone tried that? Thanks! :dj
 
Old January 20th, 2012, 03:57 PM
Registered User
 
Join Date: Jan 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default SSH login and aws

I assume you are using the right private key. You also need to use the right user name with your key as follows:

ubuntu - for ubuntu servers
ec2-user - for Amazon provided AMIs
 
Old February 7th, 2012, 12:10 PM
Authorized User
 
Join Date: Dec 2011
Posts: 23
Thanks: 3
Thanked 0 Times in 0 Posts
Default

How do you get past

Code:
$ cd C:\Cygwin\
>chmod go-r yourkey.pem
-bash: cd: C:Cygwinchmod: No such file or directory
When you have put yourkey.pem in that directory?
 
Old February 10th, 2012, 04:49 PM
Authorized User
 
Join Date: Dec 2011
Posts: 23
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Frodo View Post
How do you get past

Code:
$ cd C:\Cygwin\
>chmod go-r yourkey.pem
-bash: cd: C:Cygwinchmod: No such file or directory
When you have put yourkey.pem in that directory?
I got past that. Now I am stuck on the ssh key command: I answer "yes" and I get "permission denied(publickey)" after it tells me it is now saving the ec-2blahblah as a permanent whatchamacallit.
 
Old September 4th, 2012, 08:55 PM
Registered User
 
Join Date: Aug 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by joyced9001 View Post
Everything has been going swimmingly as I work my way through the exercises in this excellent resource; however, I am unable to make ssh work in Cygwin in order to connect to my AWS instance. Any clues? Thanks! :dj
I found that ssh is not included in the default cygwin install.

Once I chose a mirror site and was in the "select packages" dialog box, I typed "openssh" into the search box. The package that contains it was shown. I clicked on it and set it to install the binary for the ssh command in addition to the default install.

I also found that in cygwin I had to change the "apt-get install nginx" command in the book to "aptitude install nginx".

Later on, I had to do a chmod 755 on the draw folder and the draw.html and draw.js files before I could successfully run the app from the ec2 instance.





Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh read output as it is cloudsuser Linux 0 June 3rd, 2010 02:47 AM
ssh - execute the script remotely / File not found: '' cloudsuser Linux 0 May 28th, 2010 02:00 AM
API for Secure FTP (SFTP/SSH) redbudval Pro VB.NET 2002/2003 2 December 7th, 2007 06:27 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.