Step 1: Logging into an EC2 node
- Download classkey.pem (attached to go to Tools -> Attachments or click on the paper clip on the upper left hand side of this page), and save it somewhere you'll remember
- Preparing the key file (Windows Instructions)
- Run puttygen.exe, and click "Load"
- Change the file type to "All files (*.*)" and select classkey.pem.
- You should get a message about successfully importing the key.
- Add a password to your key (this isn't strictly necessary, but is good practice).
- Click "Save private key", and save the key somewhere you'll remember it (call it classkey.ppk).
- Exit puttygen
- Preparing the key file (Mac and Linux instructions)
- Open a terminal
- Run "chmod 600 classkey.pem" (you may need to replace classkey.pem with the path to that file). If you're interested in what's going on here, you can check out sections 5.1 and 5.2 of the unix tutorial.
- Log into the node (Windows instructions)
- Open putty (not puttygen)
- Paste ec2-user@ec2-23-21-1-36.compute-1.amazonaws.com into the box labeled "Host Name (or IP address)
- On the left side, under "Connections" click on "SSH", and then on "Auth". Click "Browse" to select your private key file, and select classkey.ppk (not classkey.pem).
- Click "Open" at the bottom of the window.
- On the prompt, agree to continue connecting
- Enter the passcode you created for your key
- Log into the node (Mac and Linux instructions)
- Open a terminal
- Run "ssh -i classkey.pem ec2-user@ec2-23-21-1-36.compute-1.amazonaws.com" (again, you may need to replace classkey.pem with the path to that file). The -i option says that classkey.pem is the "identity file" (aka private key) that you will use to identify yourself to the EC2 node.
- Say you are sure you want to connect.
- You should now be logged in. If you are not, email josilber@mit.edu so we can troubleshoot. If you are, save a screenshot of your login screen.
...