- install ec2 tools
cd ~/.ec2
ssh -i /Users/XXX/.ec2/ec2.pem ec2-user@ec2-XXX.compute-1.amazonaws.com
sudo yum install screen (why?) - For moving data to & from the EC2 instance, simply use scp which runs on top of ssh like so:This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
# For moving data to & from the EC2 instance, simply use scp which runs on top of ssh like so: $ scp -i /Users/XXX/.ec2/ec2.pem ec2-user@ec2-XXX.compute-1.amazonaws.com:/path/to/file/to/get/from/ec2/instance.txt /path/to/local/folder/for/storage/ $ scp -i /Users/XXX/.ec2/ec2.pem /path/to/file/to/push/to/ec2/instance.txt ec2-user@ec2-XXX.compute-1.amazonaws.com:/path/to/ec2/folder/for/storage/ - A lot of images will flunk all ssh connection attempts! It seems like this has nothing to do with the permissions on the pem file that you use to connect to them or opening up port 22 by default in their security policies. They just don't work even after all that, all the attempts spit out:
- either, Permission denied (publickey,gssapi-keyex,gssapi-with-mic)
- or, Net::SSH::AuthenticationFailed
- ami-31d41658, Red Hat Enterprise Linux 6.1, x86_64
- ami-8f4083e6, RHEL-5.6-Starter-EBS-x86_64-11-Hourly2
Monday, December 5, 2011
EC2 Bare Minimum
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment