Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old November 21st, 2011, 05:43 PM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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
Reply With Quote
  #2 (permalink)  
Old November 21st, 2011, 06:30 PM
Registered User
Points: 6, Level: 1
Points: 6, Level: 1 Points: 6, Level: 1 Points: 6, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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.
Reply With Quote
  #3 (permalink)  
Old November 25th, 2011, 12:46 PM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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.
Reply With Quote
  #4 (permalink)  
Old November 28th, 2011, 05:33 PM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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
Reply With Quote
  #5 (permalink)  
Old January 20th, 2012, 03:57 PM
Registered User
Points: 6, Level: 1
Points: 6, Level: 1 Points: 6, Level: 1 Points: 6, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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
Reply With Quote
  #6 (permalink)  
Old February 7th, 2012, 12:10 PM
Authorized User
Points: 98, Level: 1
Points: 98, Level: 1 Points: 98, Level: 1 Points: 98, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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?
Reply With Quote
  #7 (permalink)  
Old February 10th, 2012, 04:49 PM
Authorized User
Points: 98, Level: 1
Points: 98, Level: 1 Points: 98, Level: 1 Points: 98, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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.
Reply With Quote
  #8 (permalink)  
Old September 4th, 2012, 09:55 PM
Registered User
Points: 6, Level: 1
Points: 6, Level: 1 Points: 6, Level: 1 Points: 6, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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



All times are GMT -4. The time now is 01:36 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.