1) Generate a pair of RSA keys

lab46:~$ ssh-keygen -t rsa -C "email@corning-cc.edu" 

2) launch an instance of ssh-agent

Note: This will take you to a clean prompt.

lab46:~$ ssh-agent /bin/sh 

3) add your private RSA key to your 'keyring'

$ ssh-add ~/.ssh/id_rsa

4) Exit your ssh-agent instance

$ exit

5) Copy the public key to your clipboard from lab46 *note, this is not the only way to do it, and is in no way secure because it will print the key to the console, this is bad*

lab46:~$ cat < ~/.ssh/id_rsa.pub 
ssh-rsa <WHOLE LOT OF STUFF> you@corning-cc.edu

6) In a browser navigate to https://bitbucket.org/account/user/YOURUSERNAME/ssh-keys/

7) Add your key with the tag lab46

8) Back in lab46 you may now clone your bitbucket repo with ssh via the command

lab46:~$ hg clone ssh://hg@bitbucket.org/YOURUSERNAME/YOURREPONAME
[exampleoutput]
destination directory: cscs1240f12
requesting all changes
adding changesets
adding manifests
adding file changes
added 37 changesets with 69 changes to 30 files
updating to branch default
16 files updated, 0 files merged, 0 files removed, 0 files unresolved

9) ???

10) “profit”