CMPSCI 677: Instructions to login on EC2 instance
- Each group has a group-id and you would have received your private-key if you have sent the TA your group-details.
- There are two servers on EC2 with the necessary environment for execution of code. To avoid overload we have split the groups between these servers
- SERVER1="ec2-184-72-73-60.compute-1.amazonaws.com" (odd numbered groups, i.e group1, group3, ...)
- SERVER2="ec2-50-17-75-230.compute-1.amazonaws.com" (even numbered groups, i.e. group2, group4, ... )
- one can ssh into the server using their group's key. For e.g. let us assume that your project_group_id=1 then your login id will be group1; let us say that your private ssh-key is stored in a file named group1.key, then you will ssh into any of the server as follows
- ssh -i group1.key group1@ec2-50-17-29-133.compute-1.amazonaws.com
- Although all of you can log into both the servers but please stick your assigned server to avoid overload.
- Both the servers have following ports open: 10000 - 12000. To avoid port conflict we have alloted each group 40 portswith the following rule: group-n will have ports {10000 + (n-1)*40 - 10000 + (n*40)-1}; this means that group1 will have ports {10000 - 10039} and group2:{10040 - 10079}.
- I think there are not more than 30 groups so ... ports from 11200 .. 12000 can be used by anyone who needs more ports.
- WARNING: Do not make changes to your code on the server, because these are not EBS backed servers .... which means that if the server crashes whatever is kept on the server will be lost.