Skip to content

Logging into Amazon Cloud

Obi Griffith edited this page Nov 14, 2015 · 44 revisions

#0-v. Logging into the Amazon cloud

  • This will ONLY occur once we are in the classroom as it costs to have these servers running. Instructions will be provided in class.

  • Each student will launch their own instance from a preconfigured AMI. In order to log in to your instance, you will need a security certificate.

  • You will be provided with a key file called: "CSHL.pem". See the Course Wiki page.

  • It is very important that you use only your own instance (ip address) when logging in! If two people log into the same Amazon machine they may have collisions as they try to write files to the same places and this will cause errors and confusion.

  • On the cloud, we are going to use the default username: "ubuntu"

##Logging in with ssh (Mac/Linux)

  • Make sure the permissions on your certificate are secure. Use chmod on your downloaded certificate:
chmod 400 CBW.pem
  • To log in to the node, use the -i command line argument to specify your certificate:
ssh -Y -i CSHL.pem ubuntu@[your ip address]

-i selects a file from which the public key authentication is read. ubuntu is the name of a user on the system you are logging into (a default user of the Ubuntu operating system). [your ip address] is the address of the linux system on Amazon that you are logging into.

##Copying files to your computer

  • To copy files from a node, use scp in a similar fashion (in this case to copy a file called nice_alignments.bam):
scp -i CSHL.pem ubuntu@[your ip address]:nice_alignments.bam .
  • Everything created in your workspace on the cloud is also available by a web server on your cloud instance. Simply go to the following in your browser:

http://[your ip address]/

##File system layout

When you log in, you will notice that you have two directories: "bin" and "workspace".

  • The "bin" directory contains the tools that you will need to complete your lab assignments. Actually you are going to learn to install your own copies of all these tools but these are in place as a backup.
  • The "workspace" directory is where we will keep our temporary files and analysis results.

| Previous Section | This Section | Next Section | |:---------------------------:|:--------------------------------------------------------:|:-----------------------------------------------------:| | Syntax | Logging into Amazon Cloud | Environment |