Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a laptop running ChromeOS. I'm looking to do some work with Python on AWS but I'm not entirely certain how to SSH to the box. If anyone can give me details on how to connect I'd be grateful. Thanks.

share|improve this question
    
Do you have the IP address and an SSH client such as chrome.google.com/webstore/detail/secure-shell/… ? –  ekaj Apr 3 '13 at 1:30
    
Yes. I can get that information. I haven't assigned an IP to it but I can get one. I can also just use the public name that they assign I believe. –  rschapman Apr 3 '13 at 2:13
    
If it's a domain name like xx.com or xx.net, you can. If it's "InstanceEC214", you can't. Try downloading that plugin for chrome and see if you can SSH into the server that way. –  ekaj Apr 3 '13 at 14:02

1 Answer 1

up vote 1 down vote accepted

On your Chromebook:

  1. Download your private key, for example: myKey.pem.

  2. Connect to your EC2 instance from crosh. Press Ctrl+Alt+T to start it, then:

    crosh>ssh
    ssh>user your-user
    ssh>host your-host
    ssh>key your-key
    ssh>connect
    

    your-user is either:

    • ubuntu if your instance is Ubuntu, or
    • ec2-user if your instance is of Amazon AMI type.


    your-host is a string like this: ec2-number-numbers-numbers-numbers.eu-west-1.compute.amazonaws.com. You'll find that in your AWS console under Running instances, under Public DNS.

    your-key is myKey if you downloaded it like myKey.pem.

  3. Once you are connected to your instance you can work from there (from crosh); or you could make a public key from your private key, in order to connect using secure shell (Secure shell saves your user, host, and keys so you don't have to repeat 'em every time)

  4. Make your public key. On any Linux machine where you have your private myKey.pem, run this:

    ssh-keygen -y -f myKey.pem > myKey.pub
    
  5. Now install secure shell on your chromebook.

    Run it. Fill user and host. On Identity click Import..., and select BOTH miKey.pem and miKey.pub. Click [ENTER] Connect and you're done.

Sources: Connecting to EC2 from Chrome’s Secure Shell using only a PEM file

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.